diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-16 17:26:50 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:53 +0800 |
commit | f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644 (patch) | |
tree | 29064c95d8e2639f277098e9a20a75f00e86ae68 /core/vm/evm.go | |
parent | dfd3d209ddb5c48ced410eb543ee9b17cffc575e (diff) | |
download | go-tangerine-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar go-tangerine-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar.gz go-tangerine-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar.bz2 go-tangerine-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar.lz go-tangerine-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar.xz go-tangerine-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar.zst go-tangerine-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.zip |
core: fix light node synchronization issue (#30)
InsertChain() need to record the correct roundHeight mapping in order to
process snapshotRoundHeight() governance method correctly.
Diffstat (limited to 'core/vm/evm.go')
-rw-r--r-- | core/vm/evm.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/vm/evm.go b/core/vm/evm.go index 865ab0d5b..64f71e530 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -479,3 +479,6 @@ func (evm *EVM) Create2(caller ContractRef, code []byte, gas uint64, endowment * // ChainConfig returns the environment's chain configuration func (evm *EVM) ChainConfig() *params.ChainConfig { return evm.chainConfig } + +// IsBlockProposer returns whether or not we are a block proposer. +func (evm *EVM) IsBlockProposer() bool { return evm.vmConfig.IsBlockProposer } |