aboutsummaryrefslogtreecommitdiffstats
path: root/tests/util.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-06-30 15:13:16 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-06-30 16:52:11 +0800
commit4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d (patch)
tree4bb5055690cae276a5480572b463cd06fa219f23 /tests/util.go
parentbe935bff84d54cd7a7f4074e2326d62f664ba4e3 (diff)
downloaddexon-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.gz
dexon-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.zst
dexon-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.zip
Use uint64 for block header timestamp
Diffstat (limited to 'tests/util.go')
-rw-r--r--tests/util.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/util.go b/tests/util.go
index 67650c188..ccdba57e0 100644
--- a/tests/util.go
+++ b/tests/util.go
@@ -120,7 +120,7 @@ type Env struct {
coinbase common.Address
number *big.Int
- time int64
+ time uint64
difficulty *big.Int
gasLimit *big.Int
@@ -150,7 +150,7 @@ func NewEnvFromMap(state *state.StateDB, envValues map[string]string, exeValues
//env.parent = common.Hex2Bytes(envValues["previousHash"])
env.coinbase = common.HexToAddress(envValues["currentCoinbase"])
env.number = common.Big(envValues["currentNumber"])
- env.time = common.Big(envValues["currentTimestamp"]).Int64()
+ env.time = common.Big(envValues["currentTimestamp"]).Uint64()
env.difficulty = common.Big(envValues["currentDifficulty"])
env.gasLimit = common.Big(envValues["currentGasLimit"])
env.Gas = new(big.Int)
@@ -163,7 +163,7 @@ func (self *Env) BlockNumber() *big.Int { return self.number }
//func (self *Env) PrevHash() []byte { return self.parent }
func (self *Env) Coinbase() common.Address { return self.coinbase }
-func (self *Env) Time() int64 { return self.time }
+func (self *Env) Time() uint64 { return self.time }
func (self *Env) Difficulty() *big.Int { return self.difficulty }
func (self *Env) State() *state.StateDB { return self.state }
func (self *Env) GasLimit() *big.Int { return self.gasLimit }