Skip to content

Commit

Permalink
fix debug_storageRangeAt (erigontech#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgelb authored Dec 29, 2021
1 parent ac2b30f commit 2d9fe6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions turbo/transactions/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ func ComputeTxEnv(ctx context.Context, block *types.Block, cfg *params.ChainConf
// Ensure any modifications are committed to the state
// Only delete empty objects if EIP158/161 (a.k.a Spurious Dragon) is in effect
_ = statedb.FinalizeTx(vmenv.ChainRules(), reader)

if idx+1 == len(block.Transactions()) {
// Return the state from evaluating all txs in the block, note no msg or TxContext in this case
return nil, BlockContext, vm.TxContext{}, statedb, reader, nil
}
}
return nil, vm.BlockContext{}, vm.TxContext{}, nil, nil, fmt.Errorf("transaction index %d out of range for block %x", txIndex, blockHash)
}
Expand Down

0 comments on commit 2d9fe6c

Please sign in to comment.