Browse Source

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.
0.8
Wladimir J. van der Laan 11 years ago committed by Warren Togami
parent
commit
8f16782290
  1. 4
      src/wallet.cpp

4
src/wallet.cpp

@ -743,6 +743,10 @@ void CWalletTx::AddSupportingTransactions()
{ {
tx = *mapWalletPrev[hash]; tx = *mapWalletPrev[hash];
} }
else
{
continue;
}
int nDepth = tx.SetMerkleBranch(); int nDepth = tx.SetMerkleBranch();
vtxPrev.push_back(tx); vtxPrev.push_back(tx);

Loading…
Cancel
Save