Skip to content

Commit c594580

Browse files
committed
Add braces around AddToCompactExtraTransactions
1 parent 1ccfe9b commit c594580

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/net_processing.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,10 +1741,12 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
17411741
// See https://github.com/bitcoin/bitcoin/issues/8279 for details.
17421742
assert(recentRejects);
17431743
recentRejects->insert(tx.GetHash());
1744-
if (RecursiveDynamicUsage(*ptx) < 100000)
1744+
if (RecursiveDynamicUsage(*ptx) < 100000) {
17451745
AddToCompactExtraTransactions(ptx);
1746-
} else if (tx.HasWitness() && RecursiveDynamicUsage(*ptx) < 100000)
1746+
}
1747+
} else if (tx.HasWitness() && RecursiveDynamicUsage(*ptx) < 100000) {
17471748
AddToCompactExtraTransactions(ptx);
1749+
}
17481750

17491751
if (pfrom->fWhitelisted && GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY)) {
17501752
// Always relay transactions received from whitelisted peers, even

0 commit comments

Comments
 (0)