Skip to content

Commit

Permalink
dropped unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
lmittmann committed Apr 30, 2024
1 parent 952df4d commit b23b721
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions w3vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,6 @@ func (v *VM) buildMessage(msg *w3types.Message, skipAccChecks bool) (*core.Messa
nil
}

func (vm *VM) fetcherHashFunc(fetcher Fetcher) vm.GetHashFunc {
return func(blockNumber uint64) common.Hash {
hash, _ := fetcher.HeaderHash(blockNumber)
return hash
}
}

func newBlockContext(h *types.Header, getHash vm.GetHashFunc) *vm.BlockContext {
var random *common.Hash
if h.Difficulty == nil || h.Difficulty.Sign() == 0 {
Expand Down

0 comments on commit b23b721

Please sign in to comment.