mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02: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
00cfc9f074
commit
d3ef9b00ec
1 changed files with 4 additions and 0 deletions
|
|
@ -765,6 +765,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…
Add table
Add a link
Reference in a new issue