aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
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 /cmd
parentbe935bff84d54cd7a7f4074e2326d62f664ba4e3 (diff)
downloadgo-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar
go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.gz
go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.bz2
go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.lz
go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.xz
go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.zst
go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.zip
Use uint64 for block header timestamp
Diffstat (limited to 'cmd')
-rw-r--r--cmd/evm/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index 7c9d27fac..f6ec8c21e 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -106,7 +106,7 @@ type VMEnv struct {
depth int
Gas *big.Int
- time int64
+ time uint64
logs []vm.StructLog
}
@@ -115,7 +115,7 @@ func NewEnv(state *state.StateDB, transactor common.Address, value *big.Int) *VM
state: state,
transactor: &transactor,
value: value,
- time: time.Now().Unix(),
+ time: uint64(time.Now().Unix()),
}
}
@@ -123,7 +123,7 @@ func (self *VMEnv) State() *state.StateDB { return self.state }
func (self *VMEnv) Origin() common.Address { return *self.transactor }
func (self *VMEnv) BlockNumber() *big.Int { return common.Big0 }
func (self *VMEnv) Coinbase() common.Address { return *self.transactor }
-func (self *VMEnv) Time() int64 { return self.time }
+func (self *VMEnv) Time() uint64 { return self.time }
func (self *VMEnv) Difficulty() *big.Int { return common.Big1 }
func (self *VMEnv) BlockHash() []byte { return make([]byte, 32) }
func (self *VMEnv) Value() *big.Int { return self.value }