aboutsummaryrefslogtreecommitdiffstats
path: root/core/tx_pool.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-02-25 19:35:06 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit4ce8adb190ae3351a507be54f38afa6b47ce18a3 (patch)
tree585b6f4bb5ee06b0fdab0f8e68f34e15b6ae0fed /core/tx_pool.go
parent0ac79d780ba63c574d648552f887c9411fdd76fe (diff)
downloaddexon-4ce8adb190ae3351a507be54f38afa6b47ce18a3.tar
dexon-4ce8adb190ae3351a507be54f38afa6b47ce18a3.tar.gz
dexon-4ce8adb190ae3351a507be54f38afa6b47ce18a3.tar.bz2
dexon-4ce8adb190ae3351a507be54f38afa6b47ce18a3.tar.lz
dexon-4ce8adb190ae3351a507be54f38afa6b47ce18a3.tar.xz
dexon-4ce8adb190ae3351a507be54f38afa6b47ce18a3.tar.zst
dexon-4ce8adb190ae3351a507be54f38afa6b47ce18a3.zip
core: vm: flatten governance
Diffstat (limited to 'core/tx_pool.go')
-rw-r--r--core/tx_pool.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tx_pool.go b/core/tx_pool.go
index 0a1b3f132..1719b4b4e 100644
--- a/core/tx_pool.go
+++ b/core/tx_pool.go
@@ -397,7 +397,7 @@ func (pool *TxPool) reset(oldHead, newHead *types.Header) {
} else {
round -= dexCore.ConfigRoundShift
}
- state := &vm.GovernanceStateHelper{StateDB: statedb}
+ state := &vm.GovernanceState{StateDB: statedb}
height := state.RoundHeight(new(big.Int).SetUint64((round))).Uint64()
block := pool.chain.GetBlockByNumber(height)
if block == nil {
@@ -409,7 +409,7 @@ func (pool *TxPool) reset(oldHead, newHead *types.Header) {
log.Error("Failed to get txpool state for min gas price", "err", err)
panic("cannot get state for new round's min gas price")
}
- govState := &vm.GovernanceStateHelper{StateDB: configState}
+ govState := &vm.GovernanceState{StateDB: configState}
pool.setGovPrice(govState.MinGasPrice())
}