From 1eb11e32e82deec9a85b77b3969684739f4a5d4e Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 4 Dec 2013 15:30:23 +0100 Subject: Prevent empty transactions from being added to vtxPrev CWalletTx::AddSupportingTransactions() was adding empty transaction to vtxPrev in some cases. Skip over these. Part one of the solution to #3190. This prevents invalid vtxPrev from entering the wallet, but not current ones being transmitted. --- src/wallet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallet.cpp b/src/wallet.cpp index a519c7a17f..1c5fb528ba 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -740,6 +740,10 @@ void CWalletTx::AddSupportingTransactions() { tx = *mapWalletPrev[hash]; } + else + { + continue; + } int nDepth = tx.SetMerkleBranch(); vtxPrev.push_back(tx); -- cgit v1.2.3