Skip to content

Commit

Permalink
Add braces around AddToCompactExtraTransactions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Jan 17, 2017
1 parent 1ccfe9b commit c594580
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/net_processing.cpp
Expand Up @@ -1741,10 +1741,12 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
// See https://github.com/bitcoin/bitcoin/issues/8279 for details.
assert(recentRejects);
recentRejects->insert(tx.GetHash());
if (RecursiveDynamicUsage(*ptx) < 100000)
if (RecursiveDynamicUsage(*ptx) < 100000) {
AddToCompactExtraTransactions(ptx);
} else if (tx.HasWitness() && RecursiveDynamicUsage(*ptx) < 100000)
}
} else if (tx.HasWitness() && RecursiveDynamicUsage(*ptx) < 100000) {
AddToCompactExtraTransactions(ptx);
}

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

0 comments on commit c594580

Please sign in to comment.