mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +01:00
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.
This commit is contained in:
parent
f1e8edc966
commit
8f16782290
@ -743,6 +743,10 @@ void CWalletTx::AddSupportingTransactions()
|
||||
{
|
||||
tx = *mapWalletPrev[hash];
|
||||
}
|
||||
else
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
int nDepth = tx.SetMerkleBranch();
|
||||
vtxPrev.push_back(tx);
|
||||
|
Loading…
Reference in New Issue
Block a user