aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/node.cpp
diff options
context:
space:
mode:
authorJohn Newbery <[email protected]>2020-06-18 15:19:12 -0400
committerJohn Newbery <[email protected]>2020-06-18 15:45:48 -0400
commitf52d403b81e758e9bc33847560b5740b22d95fff (patch)
tree3b66bcbf2f9739fe582a98e3c7498d1f2d55221f /src/interfaces/node.cpp
parentMerge #19071: doc: Separate repository for the gui (diff)
downloaddiscoin-f52d403b81e758e9bc33847560b5740b22d95fff.tar.xz
discoin-f52d403b81e758e9bc33847560b5740b22d95fff.zip
[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 'src/interfaces/node.cpp')
0 files changed, 0 insertions, 0 deletions