aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-29 10:20:00 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit3ea93f56e7edcb50a44060ebe5bd022cd2efd205 (patch)
tree398d525dfc339b53f4ab4e458bae785eceb33f5e /core
parentd00250d9631c4408d7f27f1a20a308788e36698d (diff)
downloaddexon-3ea93f56e7edcb50a44060ebe5bd022cd2efd205.tar
dexon-3ea93f56e7edcb50a44060ebe5bd022cd2efd205.tar.gz
dexon-3ea93f56e7edcb50a44060ebe5bd022cd2efd205.tar.bz2
dexon-3ea93f56e7edcb50a44060ebe5bd022cd2efd205.tar.lz
dexon-3ea93f56e7edcb50a44060ebe5bd022cd2efd205.tar.xz
dexon-3ea93f56e7edcb50a44060ebe5bd022cd2efd205.tar.zst
dexon-3ea93f56e7edcb50a44060ebe5bd022cd2efd205.zip
Fix lint
Diffstat (limited to 'core')
-rw-r--r--core/genesis.go4
-rw-r--r--core/governance.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/core/genesis.go b/core/genesis.go
index c3bb976d3..1d14011e1 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -260,7 +260,7 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block {
db = ethdb.NewMemDatabase()
}
statedb, _ := state.New(common.Hash{}, state.NewDatabase(db))
- govStateHelper := vm.GovernanceStateHelper{statedb}
+ govStateHelper := vm.GovernanceStateHelper{StateDB: statedb}
totalStaked := big.NewInt(0)
@@ -438,7 +438,7 @@ func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis {
common.BytesToAddress([]byte{6}): {Balance: big.NewInt(1)}, // ECAdd
common.BytesToAddress([]byte{7}): {Balance: big.NewInt(1)}, // ECScalarMul
common.BytesToAddress([]byte{8}): {Balance: big.NewInt(1)}, // ECPairing
- faucet: {Balance: new(big.Int).Sub(new(big.Int).Lsh(big.NewInt(1), 256), big.NewInt(9))},
+ faucet: {Balance: new(big.Int).Sub(new(big.Int).Lsh(big.NewInt(1), 256), big.NewInt(9))},
},
}
}
diff --git a/core/governance.go b/core/governance.go
index dcc390eb4..4b625c0fa 100644
--- a/core/governance.go
+++ b/core/governance.go
@@ -54,7 +54,7 @@ func (g *Governance) GetHeadHelper() *vm.GovernanceStateHelper {
log.Error("Governance head state not ready", "err", err)
panic(err)
}
- return &vm.GovernanceStateHelper{headState}
+ return &vm.GovernanceStateHelper{StateDB: headState}
}
func (g *Governance) getHelperAtRound(round uint64) *vm.GovernanceStateHelper {
@@ -71,7 +71,7 @@ func (g *Governance) getHelperAtRound(round uint64) *vm.GovernanceStateHelper {
log.Error("Governance state not ready", "round", round, "height", height, "err", err)
panic(err)
}
- return &vm.GovernanceStateHelper{s}
+ return &vm.GovernanceStateHelper{StateDB: s}
}
func (g *Governance) GetConfigHelper(round uint64) *vm.GovernanceStateHelper {