WIP: trade-bot: fix empty bitcoin wallet edge case when finding UTXOs

This commit is contained in:
catbref 2020-08-04 12:26:09 +01:00
parent 25bf315e23
commit 91518464c2

View File

@ -293,6 +293,9 @@ public class BTC {
// Fully spent key - case (a)
btc.spentKeys.add(key);
wallet.getActiveKeyChain().markKeyAsUsed((DeterministicKey) key);
} else {
// Key never been used - case (b)
areAllKeysSpent = false;
}
continue;