diff --git a/webcash/walletclient.py b/webcash/walletclient.py index 6505bfe..1d013dc 100755 --- a/webcash/walletclient.py +++ b/webcash/walletclient.py @@ -380,7 +380,7 @@ def recover(gaplimit): if reported_walletdepth > last_used_walletdepth + 1: print(f"Something may have gone wrong: reported walletdepth was {reported_walletdepth} but only found up to {last_used_walletdepth} depth") - if reported_walletdepth < last_used_walletdepth: + if reported_walletdepth <= last_used_walletdepth: webcash_wallet["walletdepths"][chain_code] = last_used_walletdepth + 1 # TODO: only save the wallet when it has been modified?