Compare commits

...

1 Commits

Author SHA1 Message Date
ytx1991 9a5218ceaf
Fix DID resync 2023-07-01 09:47:54 -07:00
1 changed files with 4 additions and 0 deletions

View File

@ -985,6 +985,10 @@ class WalletStateManager:
assert wallet.did_info.origin_coin is not None
if origin_coin.name() == wallet.did_info.origin_coin.name():
return WalletIdentifier.create(wallet)
if coin_state.spent_height is not None:
# The first coin we received for DID wallet is spent.
# This means the wallet is in a resync process, skip the coin
return None
did_wallet = await DIDWallet.create_new_did_wallet_from_coin_spend(
self,
self.main_wallet,