diff options
author | Matt Corallo <git@bluematt.me> | 2017-01-16 23:00:58 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-01-16 23:00:58 -0500 |
commit | c5945804ca7e5edd9fce8c6de9b1f0ef775f9e79 (patch) | |
tree | b6ed71d4a9ce0c15d6c5786bda5909040a8de994 /src | |
parent | 1ccfe9b1c93460e3d345948c3740cfeca45e2ee3 (diff) |
Add braces around AddToCompactExtraTransactions
Diffstat (limited to 'src')
-rw-r--r-- | src/net_processing.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 6025615e44..b1e606abae 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -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 |