diff options
author | John Newbery <john@johnnewbery.com> | 2020-06-18 15:19:12 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2020-06-18 15:45:48 -0400 |
commit | f52d403b81e758e9bc33847560b5740b22d95fff (patch) | |
tree | 3b66bcbf2f9739fe582a98e3c7498d1f2d55221f /doc/bitcoin_logo_doxygen.png | |
parent | c2bcb99c1d113ac090914e87b6f5676b5b55f82e (diff) |
[net] split PushInventory()
PushInventory() is currently called with a CInv object, which can be a
MSG_TX or MSG_BLOCK. PushInventory() only uses the type to determine
whether to add the hash to setInventoryTxToSend or
vInventoryBlockToSend.
Since the caller always knows what type of inventory they're pushing,
the CInv is wastefully constructed and thrown away, and tx/block relay
is being split out, we split the function into PushTxInventory() and
PushBlockInventory().
Diffstat (limited to 'doc/bitcoin_logo_doxygen.png')
0 files changed, 0 insertions, 0 deletions