good morning!!!!

Skip to content
Snippets Groups Projects
Commit be977858 authored by Felix Lange's avatar Felix Lange
Browse files

cmd/evm: add dummy implementation for GetHash

Fixes the build. AFAIK evm does not bother keeping a chain and
cannot provide a real implementation.
parent fde0ddb3
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,12 @@ func (self *VMEnv) Value() *big.Int { return self.value }
func (self *VMEnv) GasLimit() *big.Int { return big.NewInt(1000000000) }
func (self *VMEnv) Depth() int { return 0 }
func (self *VMEnv) SetDepth(i int) { self.depth = i }
func (self *VMEnv) GetHash(n uint64) []byte {
if self.block.Number().Cmp(big.NewInt(int64(n))) == 0 {
return self.block.Hash()
}
return nil
}
func (self *VMEnv) AddLog(log state.Log) {
self.state.AddLog(log)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment