Skip to content

Also show block number when on state not found error. #9277

@asdacap

Description

@asdacap

Is your feature request related to a problem? Please describe.

On state not found error, when the error looks like this:

Error response handling JsonRpc Id:439 Method:eth_call | Code: -32002 Message: No state available for block 0xe7b1e5b5b5c730816ef2b9627a85c227f6924f27504f1b36cc7328bff79ecc6e

Unfortunately it does not say which block number is this, making debugging harder.

Describe the solution you'd like

Also print out the block number. There is a helper ToString method, ToString(Short) something like that for BlockHeader.

Check all occurrence of HasStateForBlock, that is where it usually make the error message. Bonus point for making a util for this.

Additional context

Taiko alethia issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions