diff --git a/lib/coinchooser.py b/lib/coinchooser.py index 0db5be8f..7c5b2ae1 100644 --- a/lib/coinchooser.py +++ b/lib/coinchooser.py @@ -223,7 +223,7 @@ class CoinChooserOldestFirst(CoinChooserBase): def choose_buckets(self, buckets, sufficient_funds, penalty_func): '''Spend the oldest buckets first.''' # Unconfirmed coins are young, not old - adj_height = lambda height: 99999999 if height == 0 else height + adj_height = lambda height: 99999999 if height <= 0 else height buckets.sort(key = lambda b: max(adj_height(coin['height']) for coin in b.coins)) selected = []