Use uint64 for block header timestamp

This commit is contained in:
Gustav Simonsson
2015-06-30 09:13:16 +02:00
parent be935bff84
commit 4c490db6af
12 changed files with 24 additions and 25 deletions

View File

@ -444,7 +444,7 @@ func (self *Vm) Run(context *Context, input []byte) (ret []byte, err error) {
case TIMESTAMP:
time := self.env.Time()
stack.push(big.NewInt(time))
stack.push(new(big.Int).SetUint64(time))
case NUMBER:
number := self.env.BlockNumber()