Browse Source
8639a96243 When selecting utxos in yg, count in that change should be above dust threshold already on the first try (Kristaps Kaupe)
Pull request description:
<del>Should reduce number of</del> <ins>Eliminates</ins> the following errors for yield generators in cases when mixdepth with too low number of satoshis above cj amount + dust is choosen instead of different one with bigger balance.
```
2021-05-06 10:00:01,998 [INFO] filling offer, mixdepth=X, amount=YYY
2021-05-06 10:00:02,236 [INFO] sending output to address=ZZZ
2021-05-06 10:00:02,428 [INFO] dont have the required UTXOs to make a output above the dust threshold, quitting
2021-05-06 10:00:02,428 [INFO] Maker refuses to continue on receiving auth.
```
Also makes code simpler. Test suite has specific tests for this case (that `if change_value <= jm_single().DUST_THRESHOLD` path in old code is chosen), they pass.
Top commit has no ACKs.
Tree-SHA512: 3e4f59fed41843baa783e80382f8e85d50fb8b7a88e1107155cda02ac43e27a859a0986f5a616230613babc77d6ba33606663c9132c2c1b651138c1e7a043b34
master
1 changed files with 6 additions and 17 deletions
Loading…
Reference in new issue