aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-17 11:08:49 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-17 11:49:23 +0800
commit916a530eb7d0e1f69b817d44659ee8f76568bcf0 (patch)
tree7990ed9f248436f8f0259528d23a0037de1bc652
parentabffdd7a5e23316403779dda6bd99909dd1a031b (diff)
downloaddexon-916a530eb7d0e1f69b817d44659ee8f76568bcf0.tar.gz
dexon-916a530eb7d0e1f69b817d44659ee8f76568bcf0.tar.zst
dexon-916a530eb7d0e1f69b817d44659ee8f76568bcf0.zip
core: vm: reorder minGasPriceLoc
-rw-r--r--core/vm/oracle_contracts.go2
-rw-r--r--params/config.go8
2 files changed, 5 insertions, 5 deletions
diff --git a/core/vm/oracle_contracts.go b/core/vm/oracle_contracts.go
index d983cdfc8..56e82f7df 100644
--- a/core/vm/oracle_contracts.go
+++ b/core/vm/oracle_contracts.go
@@ -75,6 +75,7 @@ const (
miningVelocityLoc
nextHalvingSupplyLoc
lastHalvedAmountLoc
+ minGasPriceLoc
blockGasLimitLoc
lambdaBALoc
lambdaDKGLoc
@@ -84,7 +85,6 @@ const (
minBlockIntervalLoc
fineValuesLoc
finedRecordsLoc
- minGasPriceLoc // TODO(w): reorder this before mainnet
)
func publicKeyToNodeKeyAddress(pkBytes []byte) (common.Address, error) {
diff --git a/params/config.go b/params/config.go
index ef8da3f52..d058120d0 100644
--- a/params/config.go
+++ b/params/config.go
@@ -26,10 +26,10 @@ import (
// Genesis hashes to enforce below configs on.
var (
- MainnetGenesisHash = common.HexToHash("0xc3320be1e1e83f6e2116ec3f46966502a09655d8939967450c345507350bedc8")
- TestnetGenesisHash = common.HexToHash("0xe338c08039a92fb146c4af646ecbae4a50aac048249894d4eebb2c54ab369e06")
- TaipeiGenesisHash = common.HexToHash("0xc7bef94f43a1350da382b67d0bc7dd32ceb30b7c33820afc74c3716a2189a1e4")
- YilanGenesisHash = common.HexToHash("0xae0aac389776b6e35aff2569a2b9be234f6703a5c923e48cf42edffa7c1a24fc")
+ MainnetGenesisHash = common.HexToHash("0x075918a1da88f5d7bed21362e22b780d6b04739b04c7fd0aa25d33b86f56a87f")
+ TestnetGenesisHash = common.HexToHash("0x4e8e72e73b70f096f31910f0f9b930f65291fcff8b344c93dada282df90bb99f")
+ TaipeiGenesisHash = common.HexToHash("0x8c074f5f0d434e23feda0ba238a8915a2457c6d169a14020afc05e0f7ee812e3")
+ YilanGenesisHash = common.HexToHash("0x6d4bc5a73bc2b665b23a06bed9d16c5239ca9598a2cbb662677d0329a0819a2d")
)
var (