aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-17 13:18:34 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:53 +0800
commitbdfdd7cd028518e0bbbc6a7e0ed8322190b80582 (patch)
treebad3cb92055806b99a11827d479ce269c1ea662a /core/genesis.go
parent1677355db643a52843a202529d0a044453b090b6 (diff)
downloaddexon-bdfdd7cd028518e0bbbc6a7e0ed8322190b80582.tar
dexon-bdfdd7cd028518e0bbbc6a7e0ed8322190b80582.tar.gz
dexon-bdfdd7cd028518e0bbbc6a7e0ed8322190b80582.tar.bz2
dexon-bdfdd7cd028518e0bbbc6a7e0ed8322190b80582.tar.lz
dexon-bdfdd7cd028518e0bbbc6a7e0ed8322190b80582.tar.xz
dexon-bdfdd7cd028518e0bbbc6a7e0ed8322190b80582.tar.zst
dexon-bdfdd7cd028518e0bbbc6a7e0ed8322190b80582.zip
core: more fix on light node synchronization (#32)
Fix gas calculation in governance contract. Correctly register round height when processing pending blocks. We should register the mapping when we get the pending block instead of waiting for block confirmation.
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 6eddf851d..5d8c54219 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -387,7 +387,7 @@ func DefaultGenesisBlock() *Genesis {
Timestamp: 1540024964,
Nonce: 0x42,
ExtraData: hexutil.MustDecode("0x5765692d4e696e6720536f6e696320426f6a696520323031382d31302d32302e"),
- GasLimit: 8000000,
+ GasLimit: 80000000,
Difficulty: big.NewInt(1),
Alloc: decodePrealloc(mainnetAllocData),
}
@@ -399,7 +399,7 @@ func DefaultTestnetGenesisBlock() *Genesis {
Config: params.TestnetChainConfig,
Nonce: 0x42,
ExtraData: hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353535"),
- GasLimit: 8000000,
+ GasLimit: 80000000,
Difficulty: big.NewInt(1),
Alloc: decodePrealloc(testnetAllocData),
}