Skip to content

Commit

Permalink
[net processing] Remove CNodeState ctor body
Browse files Browse the repository at this point in the history
It's a no-op. The ctor for RollingBloomFilter already calls reset().
  • Loading branch information
jnewbery committed Mar 12, 2021
1 parent e0bc27a commit 55966e0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,11 +598,7 @@ struct CNodeState {
//! Whether this peer relays txs via wtxid
bool m_wtxid_relay{false};

CNodeState(bool is_inbound)
: m_is_inbound(is_inbound)
{
m_recently_announced_invs.reset();
}
CNodeState(bool is_inbound) : m_is_inbound(is_inbound) {}
};

/** Map maintaining per-node state. */
Expand Down

0 comments on commit 55966e0

Please sign in to comment.