Add error codes documentation with resolution suggestions #307
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 documentation on common error codes that developers encounter when testing applications with Bitcoin Core, along with resolution suggestions for each error.
New Sections Added:
Block Validation Errors (codes 16-68)
bad-fork-prior-to-checkpoint(code 67) error mentioned in the original requestRPC Error Codes (-1 through -28)
Wallet Error Codes
Network Error Codes
Debugging Tips
Context
This PR addresses a bounty originally listed on bitcoin.org (issue #1837: "Add section with possible error codes and resolution suggestions"). Since the developer documentation was moved from bitcoin.org to developer.bitcoin.org, I'm submitting the PR here where the documentation now lives.
Original bounty: bitcoin-dot-org/Bitcoin.org#1837
The bounty specifically mentioned the error:
This error and its resolution are now documented in the Block Validation Errors section.
Payment Address
Bitcoin address for bounty payment:
bc1qax8d6etvphms3tqqc7hy52vas4af7ezv4msvqd🤖 Generated with Claude Code