From 8f167822909474f4d57e3ff22d014828ad228a5c Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 4 Dec 2013 15:30:23 +0100 Subject: [PATCH] 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 2d79b3bd90..f9ffd8ec31 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -743,6 +743,10 @@ void CWalletTx::AddSupportingTransactions() { tx = *mapWalletPrev[hash]; } + else + { + continue; + } int nDepth = tx.SetMerkleBranch(); vtxPrev.push_back(tx);