Skip to content

Commit b196152

Browse files
committed
Merge pull request #3356
d3ef9b0 Prevent empty transactions from being added to vtxPrev (Wladimir J. van der Laan)
2 parents 80ca273 + d3ef9b0 commit b196152

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wallet.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,10 @@ void CWalletTx::AddSupportingTransactions()
765765
{
766766
tx = *mapWalletPrev[hash];
767767
}
768+
else
769+
{
770+
continue;
771+
}
768772

769773
int nDepth = tx.SetMerkleBranch();
770774
vtxPrev.push_back(tx);

0 commit comments

Comments
 (0)