From 7fa90ef85676716344cc0074cdd054ed431f635a Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 5 Nov 2018 13:49:08 +0800 Subject: core: validate roundHeight mapping in governance contract --- core/vm/evm.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/vm/evm.go') 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 -- cgit v1.2.3