Fixed so tumbler can restart if no utxos in depth 0

This commit is contained in:
Jaime 2022-03-29 16:27:49 +02:00
parent bb8cd0074d
commit df429cd9b9

View file

@ -138,8 +138,8 @@ def main():
max_mix_depth)
for i in range(options['mixdepthsrc'], max_mix_to_tumble):
total_tumble_amount += wallet_service.get_balance_by_mixdepth()[i]
if total_tumble_amount == 0:
raise ValueError("No confirmed coins in the selected mixdepth(s). Quitting")
if total_tumble_amount == 0:
raise ValueError("No confirmed coins in the selected mixdepth(s). Quitting")
exp_tx_fees_ratio = (involved_parties * fee_per_cp_guess) \
/ total_tumble_amount
if exp_tx_fees_ratio > 0.05: