aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-10-21 08:31:46 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-10-21 08:31:46 +0800
commit80f26086eeb126cb87000f283cb5ccc3df95dbcc (patch)
tree298cd91b9102053a65cfb18ae4e43ca7980fb8f3 /core/vm
parent796952a49ac12caa3949587e22a7a03c30a8910c (diff)
downloaddexon-80f26086eeb126cb87000f283cb5ccc3df95dbcc.tar
dexon-80f26086eeb126cb87000f283cb5ccc3df95dbcc.tar.gz
dexon-80f26086eeb126cb87000f283cb5ccc3df95dbcc.tar.bz2
dexon-80f26086eeb126cb87000f283cb5ccc3df95dbcc.tar.lz
dexon-80f26086eeb126cb87000f283cb5ccc3df95dbcc.tar.xz
dexon-80f26086eeb126cb87000f283cb5ccc3df95dbcc.tar.zst
dexon-80f26086eeb126cb87000f283cb5ccc3df95dbcc.zip
core, tests: get_hash fix
Make sure that we're fetching the hash from the current chain and not the canonical chain.
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/environment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/environment.go b/core/vm/environment.go
index ec739b26c..299d12674 100644
--- a/core/vm/environment.go
+++ b/core/vm/environment.go
@@ -39,7 +39,7 @@ type Environment interface {
// The block number this VM is invoken on
BlockNumber() *big.Int
// The n'th hash ago from this block number
- GetHash(n uint64) common.Hash
+ GetHash(uint64) common.Hash
// The handler's address
Coinbase() common.Address
// The current time (block time)