Skip to content

Commit

Permalink
GetRequiredBlockState call ProcessBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
jstr1121 committed Oct 19, 2023
1 parent cde04f1 commit 4dcc02f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,11 @@ func (s *BlockChainAPI) GetRequiredBlockState(ctx context.Context, blockNrOrHash
// When the block doesn't exist, the RPC method should return JSON null
return nil, nil
}
state, _, err := s.b.StateAndHeaderByNumberOrHash(ctx, blockNrOrHash)
if err != nil {
return nil, nil
}
s.ProcessBlock(ctx, block, state, vm.Config{})
return s.traceBlock(ctx, block)
}

Expand Down

0 comments on commit 4dcc02f

Please sign in to comment.