Skip to content

Commit

Permalink
Merge pull request #10780 from molnard/savekeys
Browse files Browse the repository at this point in the history
Make sure used keys are saved into a file.
  • Loading branch information
molnard committed Jun 16, 2023
2 parents c5e46d6 + 68567ea commit f1dd6b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WalletWasabi/WabiSabi/Client/CoinJoinManager.cs
Expand Up @@ -514,6 +514,8 @@ private async Task MarkDestinationsUsedAsync(ImmutableList<Script> outputs)
{
w.KeyManager.SetKeyState(state, hdPubKey);
}

w.KeyManager.ToFile();
}
else
{
Expand Down
2 changes: 2 additions & 0 deletions WalletWasabi/WabiSabi/Client/KeyChain.cs
Expand Up @@ -35,6 +35,8 @@ public void TrySetScriptStates(KeyState state, IEnumerable<Script> scripts)
{
KeyManager.SetKeyState(state, hdPubKey);
}

KeyManager.ToFile();
}

public OwnershipProof GetOwnershipProof(IDestination destination, CoinJoinInputCommitmentData commitmentData)
Expand Down

0 comments on commit f1dd6b3

Please sign in to comment.