mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix tests
This commit is contained in:
parent
6164aadba8
commit
12770a1fa1
2 changed files with 2 additions and 2 deletions
|
|
@ -122,7 +122,7 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
|
||||||
// Capture errors for BLOCKHASH operation, if we haven't been supplied the
|
// Capture errors for BLOCKHASH operation, if we haven't been supplied the
|
||||||
// required blockhashes
|
// required blockhashes
|
||||||
var hashError error
|
var hashError error
|
||||||
getHash := func(num uint64) common.Hash {
|
getHash := func(num uint64, _ vm.StateDB, _ bool) common.Hash {
|
||||||
if pre.Env.BlockHashes == nil {
|
if pre.Env.BlockHashes == nil {
|
||||||
hashError = fmt.Errorf("getHash(%d) invoked, no blockhashes provided", num)
|
hashError = fmt.Errorf("getHash(%d) invoked, no blockhashes provided", num)
|
||||||
return common.Hash{}
|
return common.Hash{}
|
||||||
|
|
|
||||||
|
|
@ -474,6 +474,6 @@ func rlpHash(x interface{}) (h common.Hash) {
|
||||||
return h
|
return h
|
||||||
}
|
}
|
||||||
|
|
||||||
func vmTestBlockHash(n uint64) common.Hash {
|
func vmTestBlockHash(n uint64, _ vm.StateDB, _ bool) common.Hash {
|
||||||
return common.BytesToHash(crypto.Keccak256([]byte(big.NewInt(int64(n)).String())))
|
return common.BytesToHash(crypto.Keccak256([]byte(big.NewInt(int64(n)).String())))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue