Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. LLM Linter (✨ experimental)Possible places where named args for integral literals may be used (e.g.
Possible places where comparison-specific test macros should replace generic comparisons:
2026-11-12 13:50:40 |
fa6e112 to
fa99017
Compare
fa99017 to
fadce16
Compare
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
5555700 to
faf54f9
Compare
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
|
(fixed ralph nit) |
Zippo76
left a comment
There was a problem hiding this comment.
tACK faf54f9
Tested on macOS 27.2 arm64 (release build) against master c68583ab5a. The PR's rpc_net.py fails on master with Unexpected JSONRPC error code -1 and passes with this PR.
| Case | Calls tested | Master | PR |
|---|---|---|---|
| Integer out of range | getblockhash 99999999999999999999, getblockhash -99999999999999999999, listtransactions "*" -1, addpeeraddress 1.2.3.4 65536 |
-1 | -3 |
| Invalid argument | addnode 127.0.0.1:1 abc, setban 1.2.3.4 abc, mockscheduler 0 |
-1 | -8 |
| Simulated internal bug | -named echo arg9=trigger_internal_bug |
-1 | -32603 |
Fee estimation disabled (-blocksonly) |
estimatesmartfee 2, estimaterawfee 2 |
-32603 | -1 |
| Missing argument | getblockhash |
-1 | -1 |
| Height out of range | getblockhash 1000 |
-8 | -8 |
| Invalid block hash | getblock abc |
-8 | -8 |
| Unknown method | Nonexistent RPC method | -32601 | -32601 |
| Help | help getblockhash |
OK | OK |
Error messages were identical before and after in all tested error cases; only the codes changed where shown. The node remained running after the simulated internal bug in this release build.
…C_ERROR (-1) This follows the other json type errors from commit 5556663.
Previously, the group comment was incorrectly attached to the first item in the group.
This follows all other uses of the constant, like: throw JSONRPCError(RPC_INVALID_PARAMETER, "The PSBT version can only be 2 or 0");
Also, switch the two violations to use RPC_MISC_ERROR (-1): * coinstatsindex still syncing * disabled fee estimation This follows other intermittent or user-config errors, such as: * throw JSONRPCError(RPC_MISC_ERROR, "The mempool was not loaded yet"); * throw JSONRPCError(RPC_MISC_ERROR, "Can't rescan beyond pruned data...");
This refactor does not change any behavior because a runtime_error exception is currently mapped to RPC_MISC_ERROR. Though, using explicit RPC_MISC_ERROR is clearer and follows other intermittent or user-config errors.
This refactor does not change any behavior.
faf54f9 to
face783
Compare
|
Hmm, I dropped the last three commits on my last push. Maybe they can be done in the future, but for now they are likely not worth the squeeze, as they are ~impossible to review. |
Zippo76
left a comment
There was a problem hiding this comment.
tACK face783
Repeated all checks from my previous review on macOS 27.2.1 arm64 against master 9183edd25e, after the last three commits were removed. Results are unchanged except:
-named echo arg9=trigger_internal_bugnow returns -1 on both master and this PR, consistent with the removed commits.- The additional check
estimaterawfee 2 1e999("JSON double out of range") returns -1 on master and -3 with this PR.
The PR's rpc_net.py still fails on master and passes with this PR.

Currently, rpc code may return the wrong
RPCErrorCode. This is perfectly fine, because they should be hit rarely in production.However, it could be good to be self-consistent. (Otherwise, we could just remove the different error codes and return a single one)
So fix a few error codes:
RPC_TYPE_ERROR, notRPC_MISC_ERRORRPC_INVALID_PARAMETERRPC_MISC_ERROR