Closed HerbertJordan closed 2 weeks ago
Following properties are checked:
type blockHashes struct {
Hash common.Hash
StateRoot common.Hash
ReceiptsRoot common.Hash
}
func getBlockHashes(rpcClient rpc.RpcClient, blockNumber uint64) (*blockHashes, error) {
var block *blockHashes
err := rpcClient.Call(&block, "eth_getBlockByNumber", hexutil.EncodeUint64(blockNumber), false)
if err != nil {
return nil, fmt.Errorf("failed to get block state root from RPC; %v", err)
}
return block, nil
}
This check is still present in recent version and it is executed:
https://github.com/Fantom-foundation/Norma/blob/main/driver/norma/run.go#L227-L236