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-04-09 13:49:56 +0800
commit7fa90ef85676716344cc0074cdd054ed431f635a (patch)
tree10ceb7593a465b0b1abe2b26b7a75e304657563d /core/vm/evm.go
parent117e1ec3454df4705b30b53c2a071f43abcb93e8 (diff)
downloaddexon-7fa90ef85676716344cc0074cdd054ed431f635a.tar
dexon-7fa90ef85676716344cc0074cdd054ed431f635a.tar.gz
dexon-7fa90ef85676716344cc0074cdd054ed431f635a.tar.bz2
dexon-7fa90ef85676716344cc0074cdd054ed431f635a.tar.lz
dexon-7fa90ef85676716344cc0074cdd054ed431f635a.tar.xz
dexon-7fa90ef85676716344cc0074cdd054ed431f635a.tar.zst
dexon-7fa90ef85676716344cc0074cdd054ed431f635a.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