Seems odd to reserve memory for the struct (the heaviest member being m_tx_inventory_known_filter
) when it is never used.
This also avoids sending out msg_sendtxrcncl
before disconnecting. This shouldn’t matter, as other messages, such as msg_wtxidrelay
, msg_sendaddrv2
, msg_verack
or msg_getaddr
are still sent. Though, it allows to test the changes here as a side-effect.