aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-08-25 21:49:36 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-08-25 21:54:57 +0800
commitfd512fa12c59657d9e47cc3411e6e24bd1af89cb (patch)
tree16ddada3b6ecbf26e53bb9eaf0c8b03812f7cab8 /cmd
parentdc3fb69dce674069479313837a5612045303c418 (diff)
downloadgo-tangerine-fd512fa12c59657d9e47cc3411e6e24bd1af89cb.tar
go-tangerine-fd512fa12c59657d9e47cc3411e6e24bd1af89cb.tar.gz
go-tangerine-fd512fa12c59657d9e47cc3411e6e24bd1af89cb.tar.bz2
go-tangerine-fd512fa12c59657d9e47cc3411e6e24bd1af89cb.tar.lz
go-tangerine-fd512fa12c59657d9e47cc3411e6e24bd1af89cb.tar.xz
go-tangerine-fd512fa12c59657d9e47cc3411e6e24bd1af89cb.tar.zst
go-tangerine-fd512fa12c59657d9e47cc3411e6e24bd1af89cb.zip
Merge pull request #1711 from Gustav-Simonsson/timestamp_big_intv1.1.0
Add tests for uncle timestamps and refactor timestamp type (cherry picked from commit abce09954b6901b446c004ee06b389c338922f28)
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 6639069b9..243dd6266 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -166,7 +166,7 @@ type VMEnv struct {
depth int
Gas *big.Int
- time uint64
+ time *big.Int
logs []vm.StructLog
}
@@ -175,7 +175,7 @@ func NewEnv(state *state.StateDB, transactor common.Address, value *big.Int) *VM
state: state,
transactor: &transactor,
value: value,
- time: uint64(time.Now().Unix()),
+ time: big.NewInt(time.Now().Unix()),
}
}
@@ -183,7 +183,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() uint64 { return self.time }
+func (self *VMEnv) Time() *big.Int { 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 }