For this, the evm should deal with block_hash instead of block_number when receiving the parent block.
See: https://github.com/lambdaclass/ethereum_rust/blob/main/crates/evm/evm.rs#L333
Also: https://github.com/lambdaclass/ethereum_rust/blob/0270aef928f7683fc2d23aaf39f1d525e7540d3a/crates/storage/storage.rs#L253
Let's also add a unit test for this usecase.
Endpoints that should accept non canonical blocks:
newPayload
call
another one else?
For this, the evm should deal with
block_hashinstead ofblock_numberwhen receiving the parent block.See: https://github.com/lambdaclass/ethereum_rust/blob/main/crates/evm/evm.rs#L333
Also: https://github.com/lambdaclass/ethereum_rust/blob/0270aef928f7683fc2d23aaf39f1d525e7540d3a/crates/storage/storage.rs#L253
Let's also add a unit test for this usecase.
Endpoints that should accept non canonical blocks:
newPayloadcallanother one else?