Skip to content

Commit 8c93c6b

Browse files
Merge pull request #447 from aguycalled/fix-cstake-txlist
Fixes coldstake tx amount for spending wallets
2 parents 8072efb + d98fc5f commit 8c93c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/transactionrecord.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet *
3737
QList<TransactionRecord> parts;
3838
int64_t nTime = wtx.GetTxTime();
3939
CAmount nCredit = wtx.GetCredit(ISMINE_ALL);
40-
CAmount nDebit = wtx.GetDebit((wtx.IsCoinStake() && wtx.vout[1].scriptPubKey.IsColdStaking()) ? ISMINE_STAKABLE : ISMINE_ALL);
40+
CAmount nDebit = wtx.GetDebit((wtx.IsCoinStake() && wtx.vout[1].scriptPubKey.IsColdStaking()) ? ISMINE_STAKABLE|ISMINE_SPENDABLE_STAKABLE : ISMINE_ALL);
4141
CAmount nCFundCredit = wtx.GetDebit(ISMINE_ALL);
4242
CAmount nNet = nCredit - nDebit;
4343
uint256 hash = wtx.GetHash();

0 commit comments

Comments
 (0)