Repository navigation
feat(jsonrpc): return code 3 for revert and 4444 for pruned history #7004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kuny0707
merged 12 commits into
tronprotocol:release_v4.8.3
from
0xbigapple:feature/jsonrpc-revert-and-pruned-history
Oct 15, 2026
+1,071
−165
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c164330
feat(jsonrpc): return code 3 for revert and 4444 for pruned history
0xbigapple c3fccfc
fix(jsonrpc): drop data from 4444 and remove ResultCodeUtil
0xbigapple daf0008
refactor(jsonrpc): rename lowestReceiptBlockNum to lowestBlockNumOfRe…
0xbigapple 62df032
refactor(chainbase): rename to initLowestBlockNumOfReceiptStore and m…
0xbigapple b48975b
refactor(jsonrpc): simplify pruned-history conditions
0xbigapple a795458
refactor(jsonrpc): rename pruned-history helpers
0xbigapple 294c0d4
fix(jsonrpc): validate transaction index before block lookup
0xbigapple 66b53b5
Merge remote-tracking branch 'upstream/release_v4.8.3' into feature/j…
0xbigapple 6e84880
test(jsonrpc): pin error mappings and receipt floor init
0xbigapple 96c15cb
fix(jsonrpc): address review comments
0xbigapple 9cdfaeb
Merge remote-tracking branch 'upstream/release_v4.8.3' into feature/j…
0xbigapple 5f85d8f
test(event): restore VM config after BlockEventGetTest
0xbigapple File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
common/src/main/java/org/tron/core/exception/jsonrpc/JsonRpcExecutionRevertedException.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package org.tron.core.exception.jsonrpc; | ||
|
|
||
| public class JsonRpcExecutionRevertedException extends JsonRpcException { | ||
|
|
||
| public JsonRpcExecutionRevertedException(String message) { | ||
| super(message); | ||
| } | ||
|
|
||
| public JsonRpcExecutionRevertedException(String message, Object data) { | ||
| super(message, data); | ||
| } | ||
| } |
17 changes: 17 additions & 0 deletions
17
common/src/main/java/org/tron/core/exception/jsonrpc/JsonRpcPrunedHistoryException.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| package org.tron.core.exception.jsonrpc; | ||
|
|
||
| /** | ||
| * Thrown when a request targets data the node does not have: history pruned on a LiteNode, | ||
| * or receipts and logs on a node that does not persist them. Maps to JSON-RPC error code 4444 | ||
| * "Pruned history unavailable", as standardized by the Ethereum Execution API (EIP-4444). | ||
| */ | ||
| public class JsonRpcPrunedHistoryException extends JsonRpcException { | ||
|
|
||
| public JsonRpcPrunedHistoryException(String message) { | ||
| super(message); | ||
| } | ||
|
|
||
| public JsonRpcPrunedHistoryException(String message, Object data) { | ||
| super(message, data); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.