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>2018-12-19 20:54:27 +0800
commitb04996ff14079c426a0540c38a3457de1fe36394 (patch)
tree8b7227a6517f224028788e7909af709b5ca55e63 /core/genesis.go
parent38bbf3f13901e7ff7995d16545e8c589f09f2147 (diff)
downloaddexon-b04996ff14079c426a0540c38a3457de1fe36394.tar
dexon-b04996ff14079c426a0540c38a3457de1fe36394.tar.gz
dexon-b04996ff14079c426a0540c38a3457de1fe36394.tar.bz2
dexon-b04996ff14079c426a0540c38a3457de1fe36394.tar.lz
dexon-b04996ff14079c426a0540c38a3457de1fe36394.tar.xz
dexon-b04996ff14079c426a0540c38a3457de1fe36394.tar.zst
dexon-b04996ff14079c426a0540c38a3457de1fe36394.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 832bff33e..0f560a57d 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -386,7 +386,7 @@ func DefaultGenesisBlock() *Genesis {
Timestamp: 1540024964,
Nonce: 0x42,
ExtraData: hexutil.MustDecode("0x5765692d4e696e6720536f6e696320426f6a696520323031382d31302d32302e"),
- GasLimit: 8000000,
+ GasLimit: 80000000,
Difficulty: big.NewInt(1),
Alloc: decodePrealloc(mainnetAllocData),
}
@@ -398,7 +398,7 @@ func DefaultTestnetGenesisBlock() *Genesis {
Config: params.TestnetChainConfig,
Nonce: 0x42,
ExtraData: hexutil.MustDecode("0x3535353535353535353535353535353535353535353535353535353535353535"),
- GasLimit: 8000000,
+ GasLimit: 80000000,
Difficulty: big.NewInt(1),
Alloc: decodePrealloc(testnetAllocData),
}