diff options
author | MeshCollider <dobsonsa68@gmail.com> | 2019-04-15 08:37:32 +1200 |
---|---|---|
committer | MeshCollider <dobsonsa68@gmail.com> | 2019-04-15 08:39:50 +1200 |
commit | 4f4ef3138b06b405d9d8877ddc4a3492a2512c41 (patch) | |
tree | e28f2ee1bb8674a3e4acabe1cee6df871f2e0086 /build_msvc/libbitcoin_common | |
parent | adc55dbac5b521d6c9df58d1d69075e6abf0116f (diff) | |
parent | 184f8785f710d58d9ef82e611591c9cbff5ab89d (diff) |
Merge #15557: Enhance `bumpfee` to include inputs when targeting a feerate
184f8785f wallet_bumpfee.py: add test for change key preservation (Gregory Sanders)
d08becff8 add functional tests for feerate bumpfee with adding inputs (Gregory Sanders)
0ea47ba7b generalize bumpfee to add inputs when needed (Gregory Sanders)
Pull request description:
When targeting a feerate using `bumpfee`, call a new function that directly uses `CWallet::CreateTransaction` and coin control to get the desired result. This allows us to get a superset of previous behavior, with an arbitrary RBF bump of a transaction provided it passes the preconditional checks and spare confirmed utxos are available.
Note(s):
0) The coin selection will use knapsack solver for the residual selection.
1) This functionality, just like knapsack coin selection in general, will hoover up negative-value inputs when given the chance.
2) Newly added inputs must be confirmed due to current Core policy. See error: `replacement-adds-unconfirmed`
3) Supporting this with `totalFee` is difficult since the "minimum total fee" option in `CreateTransaction` logic was (rightly)taken out in #10390 .
ACKs for commit 184f87:
jnewbery:
utACK 184f8785f710d58d9ef82e611591c9cbff5ab89d
Tree-SHA512: fb6542bdfb2c6010e328ec475cf9dcbff4eb2b1a1b27f78010214534908987a5635797196fa05edddffcbcf2987335872dc644a99261886d5cbb34a8f262ad3e
Diffstat (limited to 'build_msvc/libbitcoin_common')
0 files changed, 0 insertions, 0 deletions