Add RPC error codes documentation (fixes bitcoin-dot-org/Bitcoin.org#1837)#332
Open
zp6 wants to merge 1 commit into
Open
Add RPC error codes documentation (fixes bitcoin-dot-org/Bitcoin.org#1837)#332zp6 wants to merge 1 commit into
zp6 wants to merge 1 commit into
Conversation
Add comprehensive RPC error codes reference page including: - JSON-RPC standard errors (-32700 to -32603) - General application errors (-1 to -32) - P2P client errors (-9 to -34) - Chain errors (-33) - Wallet errors (-4 to -36) - Block validation reject reasons (bad-fork-prior-to-checkpoint, etc.) - Regtest troubleshooting section Also adds troubleshooting note to testing.rst with link to error codes page. Error codes sourced from Bitcoin Core src/rpc/protocol.h.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds comprehensive RPC error codes documentation to address bitcoin-dot-org/Bitcoin.org#1837.
Changes
New file:
reference/rpc_error_codes.rstA complete reference page documenting all Bitcoin Core RPC error codes, organized by category:
bad-fork-prior-to-checkpoint (code 67),missing-inputs,insufficient-fee, etc.bad-fork-prior-to-checkpointerror from the issue, plus other common regtest issues (removedgeneratecommand, wallet setup, insufficient funds)Each error code includes:
Modified:
reference/index.rstAdded
rpc_error_codesto the toctree.Modified:
examples/testing.rstAdded a "Troubleshooting Regtest Errors" subsection with the example from the issue (
bad-fork-prior-to-checkpoint (code 67)) and a link to the full error codes reference.Error Code Source
Error codes are sourced from
src/rpc/protocol.hin the Bitcoin Core repository.Closes bitcoin-dot-org/Bitcoin.org#1837