diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-05 13:49:08 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 1a75ec877713fb50021410a5d0474563299b16a0 (patch) | |
tree | 9d6fc5e152769faad486a0b5f4f894c68165ee1e /core/vm/evm.go | |
parent | fd48d4b21645ee8fd8cfafe63f7bd2630bb77611 (diff) | |
download | dexon-1a75ec877713fb50021410a5d0474563299b16a0.tar dexon-1a75ec877713fb50021410a5d0474563299b16a0.tar.gz dexon-1a75ec877713fb50021410a5d0474563299b16a0.tar.bz2 dexon-1a75ec877713fb50021410a5d0474563299b16a0.tar.lz dexon-1a75ec877713fb50021410a5d0474563299b16a0.tar.xz dexon-1a75ec877713fb50021410a5d0474563299b16a0.tar.zst dexon-1a75ec877713fb50021410a5d0474563299b16a0.zip |
core: validate roundHeight mapping in governance contract
Diffstat (limited to 'core/vm/evm.go')
-rw-r--r-- | core/vm/evm.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/vm/evm.go b/core/vm/evm.go index be2dabcf5..a75d0f1d3 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -18,6 +18,7 @@ package vm import ( "math/big" + "sync" "sync/atomic" "time" @@ -92,6 +93,7 @@ type Context struct { Time *big.Int // Provides information for TIME Randomness []byte // Provides information for RAND Difficulty *big.Int // Provides information for DIFFICULTY + RoundHeight sync.Map // Provides information of round height mapping. } // EVM is the Ethereum Virtual Machine base object and provides |