diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-06-30 15:13:16 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-06-30 16:52:11 +0800 |
commit | 4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d (patch) | |
tree | 4bb5055690cae276a5480572b463cd06fa219f23 /core/vm_env.go | |
parent | be935bff84d54cd7a7f4074e2326d62f664ba4e3 (diff) | |
download | go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.gz go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.zst go-tangerine-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.zip |
Use uint64 for block header timestamp
Diffstat (limited to 'core/vm_env.go')
-rw-r--r-- | core/vm_env.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm_env.go b/core/vm_env.go index 6dd83acde..24a29545f 100644 --- a/core/vm_env.go +++ b/core/vm_env.go @@ -33,7 +33,7 @@ func NewEnv(state *state.StateDB, chain *ChainManager, msg Message, header *type func (self *VMEnv) Origin() common.Address { f, _ := self.msg.From(); return f } func (self *VMEnv) BlockNumber() *big.Int { return self.header.Number } func (self *VMEnv) Coinbase() common.Address { return self.header.Coinbase } -func (self *VMEnv) Time() int64 { return int64(self.header.Time) } +func (self *VMEnv) Time() uint64 { return self.header.Time } func (self *VMEnv) Difficulty() *big.Int { return self.header.Difficulty } func (self *VMEnv) GasLimit() *big.Int { return self.header.GasLimit } func (self *VMEnv) Value() *big.Int { return self.msg.Value() } |