core, tests: get_hash fix

Make sure that we're fetching the hash from the current chain and not
the canonical chain.

Conflicts:
	core/vm/environment.go
This commit is contained in:
Jeffrey Wilcke
2015-10-21 02:31:46 +02:00
parent 587669215b
commit 33099eaeb6
3 changed files with 12 additions and 10 deletions

View File

@ -31,7 +31,9 @@ type Environment interface {
Origin() common.Address
BlockNumber() *big.Int
GetHash(n uint64) common.Hash
// The n'th hash ago from this block number
GetHash(uint64) common.Hash
// The handler's address
Coinbase() common.Address
Time() *big.Int
Difficulty() *big.Int