diff options
author | John Newbery <john@johnnewbery.com> | 2021-02-06 00:50:46 +0000 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2022-05-18 17:08:24 +0100 |
commit | 9db82f1bca0bb51c2180ca4a4ad63ba490e79da4 (patch) | |
tree | 05b2db770be69d70c1a99819126006c43a5ce971 /src/interfaces | |
parent | b0a4ac9c26f60fd4993d89f45cafffaa389db2d4 (diff) |
[net processing] Don't initialize TxRelay for non-tx-relay peers.
Delay initializing the TxRelay data structure for a peer until we receive
a version message from that peer. At that point we'll know whether it
will ever relay transactions. We only initialize the m_tx_relay
data structure if:
- this isn't an outbound block-relay-only connection; AND
- fRelay=true OR we're offering NODE_BLOOM to this peer
(NODE_BLOOM means that the peer may turn on tx relay later)
Diffstat (limited to 'src/interfaces')
0 files changed, 0 insertions, 0 deletions