fix(eth_getLogs): return EIP-4444 error code for pruned receipts#12090
fix(eth_getLogs): return EIP-4444 error code for pruned receipts#12090manusw7 wants to merge 11 commits into
Conversation
|
Claude finished @manusw7's task in 2m 39s —— View job PR Review
SummaryThe core fix is correct: Two issues found: Medium —
|
|
Lowercase is intentional — matching Geth's all-lowercase EIP-4444 messages. Also normalised the other "Pruned history unavailable" sites in the file for consistency. @claude review again |
|
Claude finished @manusw7's task in 2m 47s —— View job Claude finished @manusw7's task —— PR Review (re-review)
SummaryBoth issues from my previous review are resolved:
Low — dead code left behind
Informational —
|
… and lowercase DebugRpcModule pruned history message
LukaszRozmej
left a comment
There was a problem hiding this comment.
Can we move "pruned history unavailable" string to some global constant?
Closes #12089
Changes
EthRpcModule.cs: catchResourceNotFoundExceptionineth_getLogsand return error code4444with message"pruned history unavailable"instead of the generic-32000pathEthRpcModuleTests.cs: update the expected response inEth_get_logs_with_resourceNotFoundto match the new code and messageTypes of changes
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Updated existing unit test
Eth_get_logs_with_resourceNotFoundto assert the new4444/"pruned history unavailable"response.Documentation
Requires documentation update
Requires explanation in Release Notes