We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec0f537 commit 3359aa7Copy full SHA for 3359aa7
src/wallet/wallet.cpp
@@ -1934,9 +1934,10 @@ void CWallet::GetAvailableP2CSCoins(std::vector<COutput>& vCoins) const {
1934
1935
if (utxo.scriptPubKey.IsPayToColdStaking()) {
1936
isminetype mine = IsMine(utxo);
1937
- if (mine & ISMINE_COLD || mine & ISMINE_SPENDABLE_DELEGATED)
+ bool isMineSpendable = mine & ISMINE_SPENDABLE_DELEGATED;
1938
+ if (mine & ISMINE_COLD || isMineSpendable)
1939
// Depth is not used, no need waste resources and set it for now.
- vCoins.emplace_back(COutput(pcoin, i, 0, true));
1940
+ vCoins.emplace_back(COutput(pcoin, i, 0, isMineSpendable));
1941
}
1942
1943
0 commit comments