add CONFIRMED_UTXO_FIRST configuration to enable (default) or disable the use of confirmed utxos as first candidates for the different utxo picking strategies
implementation of confirmed first in all utxo picking strategies
unit tests to cover the logic
Testing
The new logic is tested with some new unit tests. To test the new behavior at integration level, prepare an account with utxos and remove the block_height value from most of the entries in DB, then craft a transaction. The expected result is that those with block_height should be proposed in priority.
Changes:
CONFIRMED_UTXO_FIRST
configuration to enable (default) or disable the use of confirmed utxos as first candidates for the different utxo picking strategiesTesting
The new logic is tested with some new unit tests. To test the new behavior at integration level, prepare an account with utxos and remove the block_height value from most of the entries in DB, then craft a transaction. The expected result is that those with block_height should be proposed in priority.
References