Skip to content

Commit

Permalink
wallet, pos: Flush orphaned coinstakes on wallet start
Browse files Browse the repository at this point in the history
  • Loading branch information
lateminer committed Jan 15, 2024
1 parent 5ea2caa commit 9b7e549
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3233,6 +3233,9 @@ std::shared_ptr<CWallet> CWallet::Create(WalletContext& context, const std::stri
walletInstance->CleanCoinStake();
*/

// Flush orphaned coinstakes
walletInstance->AbandonOrphanedCoinstakes();

return walletInstance;
}

Expand Down

0 comments on commit 9b7e549

Please sign in to comment.