Skip to content

Wallet: don't create transaction chains that will be rejected by mempool by default#1535

Open
tomt1664 wants to merge 1 commit intoElementsProject:elements-23.xfrom
tomt1664:fix-too-long-chain-error
Open

Wallet: don't create transaction chains that will be rejected by mempool by default#1535
tomt1664 wants to merge 1 commit intoElementsProject:elements-23.xfrom
tomt1664:fix-too-long-chain-error

Conversation

@tomt1664
Copy link
Member

Cherry pick of bitcoin/bitcoin#24502 with additional functional test to check rejection.

da2bc86 [wallet] don't create long chains by default (glozow)

Additional functional test for too-long-chains rejected.

Pull request description:

  Default mempool policy doesn't let you have chains longer than 25 transactions. This is locally configurable of course, but it's not really safe to assume that a chain longer than 25 transactions will propagate. Thus, the wallet should probably avoid creating such transactions by default; set `DEFAULT_WALLET_REJECT_LONG_CHAINS` to true.

  Closes #9752
  Closes #10004

ACKs for top commit:
  MarcoFalke:
    re-ACK da2bc86 only change is fixing typos in tests 🎏

Tree-SHA512: 65d8e4ec437fe928adf554aa7e819a52e0599b403d5310895f4e371e99bbc838219b3097c4d2f775bc870ac617ef6b4227b94291f2b376f824f14e8f2b152f31
@tomt1664 tomt1664 requested a review from delta1 February 27, 2026 12:11
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.

1 participant