aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_basic.py
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-06-19 15:22:19 +0800
committerfanquake <fanquake@gmail.com>2020-06-19 15:41:24 +0800
commit0101110f9b64fec4ee19882c4fdb5f6cd941cdfa (patch)
treea8b2747a7e3d8e27caa3901244d9b6106a452c82 /test/functional/wallet_basic.py
parent057bd3189f12be40e641023ea3a0d9ffe5079ddb (diff)
parentf52d403b81e758e9bc33847560b5740b22d95fff (diff)
downloadbitcoin-0101110f9b64fec4ee19882c4fdb5f6cd941cdfa.tar.xz
Merge #19322: [net] split PushInventory()
f52d403b81e758e9bc33847560b5740b22d95fff [net] split PushInventory() (John Newbery) Pull request description: 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(). ACKs for top commit: amitiuttarwar: utACK f52d403b81. nice cleanup, this has bothered me :) naumenkogs: utACK f52d403 sipa: utACK f52d403b81e758e9bc33847560b5740b22d95fff Tree-SHA512: 331495199a3b1a2620e6a62beb336e494291b725d8fd64bb44726c02e80807f3974ff4f329bb0f059088e65cd7d41eff276c1065806d2dd6e72c5a9f368e82cd
Diffstat (limited to 'test/functional/wallet_basic.py')
0 files changed, 0 insertions, 0 deletions