]> Untitled Git - bdk/commit
Add unit test required not enough
authorTobin Harding <me@tobin.cc>
Fri, 23 Jul 2021 00:27:16 +0000 (10:27 +1000)
committerTobin Harding <me@tobin.cc>
Fri, 23 Jul 2021 00:27:16 +0000 (10:27 +1000)
commit2db24fb8c5645111de008cd621fa6408e723d96e
treea5079887609ff886c36bec3e1d9975b0bdc08ded
parentd2d37fc06d3b70470a48b099ac070dd773faf9cf
Add unit test required not enough

Add a unit test that passes a required utxo to the coin selection
algorithm that is less than the required spend. This tests that we get
that utxo included as well as tests that the rest of the coin selection
algorithm code also executes (i.e., that we do not short circuit
incorrectly).
src/wallet/coin_selection.rs