From bcbd5676d9ca66a0201d5861e080d6bd8438a2ab Mon Sep 17 00:00:00 2001 From: Jhih-Ming Huang Date: Wed, 17 Apr 2019 13:47:28 +0800 Subject: fixup! core: vm: refactor vm config and context --- core/blockchain.go | 2 +- core/vm/vm.go | 2 +- 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, -- cgit