aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/evm.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-05 13:49:08 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit1a75ec877713fb50021410a5d0474563299b16a0 (patch)
tree9d6fc5e152769faad486a0b5f4f894c68165ee1e /core/vm/evm.go
parentfd48d4b21645ee8fd8cfafe63f7bd2630bb77611 (diff)
downloaddexon-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.go2
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