Fix DID resync

This commit is contained in:
ytx1991 2023-07-01 09:47:54 -07:00
parent 84be125e24
commit 9a5218ceaf
No known key found for this signature in database
GPG Key ID: 1B767F8CA343E501
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,