Skip to content

Commit f30c299

Browse files
committed
[Wallet] Use cold inputs to stake
1 parent cdb758b commit f30c299

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,10 @@ bool CWallet::SelectStakeCoins(std::list<std::unique_ptr<CStakeInput> >& listInp
21242124
LOCK(cs_main);
21252125
//Add PIV
21262126
std::vector<COutput> vCoins;
2127-
AvailableCoins(vCoins, true, NULL, false, STAKABLE_COINS, false, 1);
2127+
2128+
// include cold, exclude delegated
2129+
AvailableCoins(vCoins, true, NULL, false, STAKABLE_COINS, false, 1, true, false);
2130+
21282131
CAmount nAmountSelected = 0;
21292132
if (GetBoolArg("-pivstake", true) && !fPrecompute) {
21302133
for (const COutput &out : vCoins) {

0 commit comments

Comments
 (0)