mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
GetRequiredBlockState call ProcessBlock
This commit is contained in:
parent
cde04f1bc7
commit
4dcc02fcc2
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
// When the block doesn't exist, the RPC method should return JSON null
|
||||||
return nil, nil
|
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)
|
return s.traceBlock(ctx, block)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue