Skip to content

Follow-ups for Bitcoin Core v31.0 support#635

Merged
tcharding merged 4 commits into
rust-bitcoin:masterfrom
satsfy:followup-v31-fixes
Jun 18, 2026
Merged

Follow-ups for Bitcoin Core v31.0 support#635
tcharding merged 4 commits into
rust-bitcoin:masterfrom
satsfy:followup-v31-fixes

Conversation

@satsfy

@satsfy satsfy commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

These are follow-ups to the v31.0 support work, addressing review comments left after it was merged.

  • CoinbaseTransaction now uses concrete rust-bitcoin types instead of primitives. v31 gains new error types to carry the coinbase_tx conversion error.
  • Add GetWalletInfoError because 31 no longer returns paytxfee. GetWalletInfoScanning and LastProcessedBlock types it reuses are imported from v30 directly rather than through the v31 re-export.
  • Redundant logging test removed.
  • Avoid boolean arguments on get_tx_spending_prevout by drops mempool_only and return_spending_tx.

satsfy added 3 commits June 17, 2026 19:11
The field access did not assert anything. Just check that the call
deserializes into a Logging value, like the other tests in the file.
v31 getwalletinfo no longer returns paytxfee, so reusing the v30 error
left an unused PayTxFee variant. Give v31 its own GetWalletInfoError.
Reuses scanning and last processed block types from v30.
Model CoinbaseTransaction beyond primitive types so into_model does real
conversions. This needs v31 specific GetBlockVerbose error types to carry
the new coinbase_tx conversion error.
Drop the mempool_only and return_spending_tx arguments from the typed
method to match corepc style.

The test that needs return_spending_tx issues the RPC directly.
@satsfy satsfy force-pushed the followup-v31-fixes branch from 6520423 to 78a7762 Compare June 17, 2026 23:49

@tcharding tcharding left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 78a7762

@tcharding tcharding merged commit a82a2c3 into rust-bitcoin:master Jun 18, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants