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 13:49:57 +0800 |
commit | 883cf098454143a6c3dc56943feae95631b09114 (patch) | |
tree | 96d5098c5148cd4634c7b6b6fed34345a932d23c /core/vm/evm.go | |
parent | 9bbc7da93e1f845b53636a683d4b9394cceed4ab (diff) | |
download | dexon-883cf098454143a6c3dc56943feae95631b09114.tar dexon-883cf098454143a6c3dc56943feae95631b09114.tar.gz dexon-883cf098454143a6c3dc56943feae95631b09114.tar.bz2 dexon-883cf098454143a6c3dc56943feae95631b09114.tar.lz dexon-883cf098454143a6c3dc56943feae95631b09114.tar.xz dexon-883cf098454143a6c3dc56943feae95631b09114.tar.zst dexon-883cf098454143a6c3dc56943feae95631b09114.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 } |