aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJhih-Ming Huang <jm.huang@cobinhood.com>2019-04-17 13:47:28 +0800
committerJhih-Ming Huang <jm.huang@cobinhood.com>2019-05-06 12:46:44 +0800
commitbcbd5676d9ca66a0201d5861e080d6bd8438a2ab (patch)
tree6a5ea667a8200eb0ef6adb56cab1084e597fe9c8
parente715414cae9b4654b4784dfb924880a0787d1d55 (diff)
downloaddexon-bcbd5676d9ca66a0201d5861e080d6bd8438a2ab.tar
dexon-bcbd5676d9ca66a0201d5861e080d6bd8438a2ab.tar.gz
dexon-bcbd5676d9ca66a0201d5861e080d6bd8438a2ab.tar.bz2
dexon-bcbd5676d9ca66a0201d5861e080d6bd8438a2ab.tar.lz
dexon-bcbd5676d9ca66a0201d5861e080d6bd8438a2ab.tar.xz
dexon-bcbd5676d9ca66a0201d5861e080d6bd8438a2ab.tar.zst
dexon-bcbd5676d9ca66a0201d5861e080d6bd8438a2ab.zip
fixup! core: vm: refactor vm config and contextjm-vm-entry
-rw-r--r--core/blockchain.go2
-rw-r--r--core/vm/vm.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 489959691..93291de48 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -1030,7 +1030,7 @@ func (bc *BlockChain) WriteBlockWithState(block *types.Block, receipts []*types.
tt := time.Now()
log.Debug("Write gov state", "n", n, "t", tt)
govState, err := state.GetGovState(statedb, block.Header(),
- vm.GovernanceContractAddress)
+ evm.GovernanceContractAddress)
log.Debug("Get gov state finished", "n", n, "elapsed", time.Since(tt))
if err == nil {
bc.govmu.Lock()
diff --git a/core/vm/vm.go b/core/vm/vm.go
index 780320d2b..cf790db0b 100644
--- a/core/vm/vm.go
+++ b/core/vm/vm.go
@@ -57,7 +57,7 @@ func Register(idx uint8, c createFunc) {
createFuncs[idx] = c
}
-// NewExecPack creates a ExecPack instance, and create all VM instance.
+// NewExecPack creates a ExecPack instance, and create all VM instances.
func NewExecPack(context *Context, stateDB StateDB, chainConfig *params.ChainConfig, vmConfigs [NUMS]interface{}) ExecPack {
p := ExecPack{
Context: context,