mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
51a3ac242cHave OutputGroup determine the value to use (Andrew Chow)6d6d278475Change SelectCoins_test to actually test SelectCoins (Andrew Chow)9d3bd74ab4Remove CreateTransaction while loop and some related variables (Andrew Chow)6f0d5189afRemove use_bnb and bnb_used (Andrew Chow)de26eb0e1fDo both BnB and Knapsack coin selection in SelectCoinsMinConf (Andrew Chow)01dc8ebda5Have KnapsackSolver actually use effective values (Andrew Chow)bf26e018deRoll static tx fees into nValueToSelect instead of having it be separate (Andrew Chow)cc3f14b27cMove output reductions for fee to after coin selection (Andrew Chow)d97d25d950Make cost_of_change part of CoinSelectionParams (Andrew Chow)af5867c896Move some calculations to common code in SelectCoinsMinConf (Andrew Chow)1bf4a62cb6scripted-diff: rename some variables (Andrew Chow) Pull request description: Changes `KnapsackSolver` to use effective values instead of just the nominal txout value. Since fees are taken into account during the selection itself, we finally get rid of the `CreateTransaction` loop as well as a few other things that only were only necessary because of that loop. This should not change coin selection behavior at all (except maybe remove weird edge cases that were caused by the loop). In order to keep behavior the same, `KnapsackSolver` will select outputs with a negative effective value (as it did before). ACKs for top commit: ryanofsky: Code review ACK51a3ac242c. Looks good to go! instagibbs: review ACK51a3ac242cmeshcollider: re-light-utACK51a3ac242cTree-SHA512: 372c27e00edcd5dbf85177421ba88f20bfdaf1791b6e3dc022c44876ecc379403e2375ed69e71c512c49e6af87641001ff385c4b25ab93684b3a08a53bf3824e