-
Notifications
You must be signed in to change notification settings - Fork 37.7k
wallet: don't create long chains by default #24502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Previous discussion: #10015 |
Sad that #10015 never landed. fwiw not changing the error message here - I think "insufficient funds" is the right message to return if you're unable to produce a transaction that would be accepted by your mempool. |
So the change here will be:
In both cases the user will see coin selection fail, so it seems the underlying user problem still exists. Though, it is probably fine to postpone a fix for that until after #11887, in which case this pull can be reverted again. |
Concept ACK I don't think it makes sense for the wallet to by default make transactions that won't be relayed immediately. The current behavior also leads to user confusion about their balance.
I think "insufficient funds" is too generic of an error message for coin selection failures as there are a ton of different reasons why coin selection might fail. I would like to have more granular error messages, but changing that is orthogonal to this. |
ACK 9ca1de5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but I think there are typos?
9ca1de5
to
93b4a81
Compare
I've marked the remaining typos with 👀 |
93b4a81
to
da2bc86
Compare
re-ACK da2bc86 only change is fixing typos in tests 🎏 Show signatureSignature:
|
re-ACK da2bc86 |
Late ACK, thanks for updating this! We've been running with this parameter set to |
da2bc86 [wallet] don't create long chains by default (glozow) 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 bitcoin#9752 Closes bitcoin#10004 ACKs for top commit: MarcoFalke: re-ACK da2bc86 only change is fixing typos in tests 🎏 Tree-SHA512: 65d8e4ec437fe928adf554aa7e819a52e0599b403d5310895f4e371e99bbc838219b3097c4d2f775bc870ac617ef6b4227b94291f2b376f824f14e8f2b152f31
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