Skip to content

rpc: testmempoolaccept already-known for active-chain txs - #638

Merged
reardencode merged 7 commits into
masterfrom
rpc/testmempoolaccept-already-known
Sep 19, 2026
Merged

reardencode merged 7 commits into
masterfrom
rpc/testmempoolaccept-already-known

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Hero-Gamer's seam is kept; this drops the inverted PR story, the extra remine pads, and adds owner docs.

Test plan

  • cargo test -p rbitcoin-rpc --lib testmempoolaccept_active_known_vs_mempool_vs_archive
  • cargo clippy -p rbitcoin-rpc --all-targets -- -D warnings

Made with Cursor

@rearden-grok

rearden-grok Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor Author

Stacked on #637 so rpc.md / CHANGELOG do not conflict. Merge #637 first, then this, or merge this PR alone (it includes the -22 decode commits).

rearden-grok Bot and others added 7 commits September 19, 2026 08:07
Core mempool_accept.py uses testmempoolaccept(['ff00baar']) → -22.
decode_tx_hex still returns -32602 "invalid hex digit" / "tx decode: …".

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Hero-Gamer <92864860+Hero-Gamer@users.noreply.github.com>
Match decoderawtransaction so sendraw, testmempoolaccept, and
submitpackage use Core RPC_DESERIALIZATION for junk hex.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Hero-Gamer <92864860+Hero-Gamer@users.noreply.github.com>
Owner row and analog: ['ff00baar'] is TX decode failed; string
rawtxs is still rawtxs array required (mempool_accept stays skip).

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Hero-Gamer <92864860+Hero-Gamer@users.noreply.github.com>
Core mines a sendraw then expects txn-already-known with size=0.
Master reports bad-txns-inputs-missingorspent for that confirmed
spend; live mempool dups stay txn-already-in-mempool.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Hero-Gamer <92864860+Hero-Gamer@users.noreply.github.com>
Look up tip + confirmed-strong before test_accept so a mined spend
matches Core (not missingorspent). Mempool dups and archive-only
rows keep their existing reject paths.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Hero-Gamer <92864860+Hero-Gamer@users.noreply.github.com>
Owner row and CHANGELOG for the Core mempool_accept confirmed-tx needle.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Hero-Gamer <92864860+Hero-Gamer@users.noreply.github.com>
Unreleased Fixed for the active-chain vs mempool vs archive reject reasons.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Hero-Gamer <92864860+Hero-Gamer@users.noreply.github.com>
@rearden-grok
rearden-grok Bot force-pushed the rpc/testmempoolaccept-already-known branch from bb5d5f1 to 1b74096 Compare September 19, 2026 15:07
@reardencode
reardencode merged commit a001ba4 into master Sep 19, 2026
17 checks passed
@rearden-grok
rearden-grok Bot deleted the rpc/testmempoolaccept-already-known branch September 19, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rpc: testmempoolaccept reports txn-already-in-mempool for confirmed transactions

1 participant