bitcoinj/core
Sean Gilligan dce352f591 Wallet: properly handle unconnected request inputs in completeTx()
This adds a test for and fixes issue #2063.

The changes do the following:

1. Build a preliminary list of candidate UTXOs.
2. Use the preliminary list to fix unconnected/valueless inputs before
   calculating `valueNeeded`.
3. Create a new candidate list without the UTXOs that were already present
   in inputs and use it as input for generating the `CoinSelection`.

Test changes:

1. Update existing test to show the improvement (i.e. no wasted fee).
2. Add a new test (based on PR #3055) that shows no duplicate inputs.

This work is based on changes by @michael-swiggs in PR #3055.
2023-05-10 17:16:30 +02:00
..
src Wallet: properly handle unconnected request inputs in completeTx() 2023-05-10 17:16:30 +02:00
build.gradle build.gradle: use archiveClassifier if available 2023-04-24 20:18:32 +02:00
findbugs.xml Renamespace to org.bitcoinj away from com.google.bitcoin, as bitcoinj is no longer a Google project and being namespaced under com.google causes issues with Sonatype/Maven Central. 2014-09-30 17:05:07 +02:00