Skip to content

Commit f12af33

Browse files
committed
clear StakeableCoins before initializing
1 parent 9d95c16 commit f12af33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2414,6 +2414,8 @@ bool CWallet::StakeableCoins(std::vector<CStakeableOutput>* pCoins)
24142414
const bool fIncludeColdStaking = !sporkManager.IsSporkActive(SPORK_19_COLDSTAKING_MAINTENANCE) &&
24152415
gArgs.GetBoolArg("-coldstaking", DEFAULT_COLDSTAKING);
24162416

2417+
if (pCoins) pCoins->clear();
2418+
24172419
LOCK2(cs_main, cs_wallet);
24182420
for (const auto& it : mapWallet) {
24192421
const uint256& wtxid = it.first;

0 commit comments

Comments
 (0)