diff options
author | John Newbery <john@johnnewbery.com> | 2020-06-20 23:16:20 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2020-06-23 08:46:05 -0400 |
commit | 344e831de54f7b864f03a90f6cb19692eafcd463 (patch) | |
tree | eedcd3d4c57ec38e884dade213a367f788085f28 /src/net.h | |
parent | 879acc681abc29c57ad8590999874e2ab9dca3a5 (diff) | |
download | bitcoin-344e831de54f7b864f03a90f6cb19692eafcd463.tar.xz |
[net processing] Remove PushBlockInventory and PushBlockHash
PushBlockInventory() and PushBlockHash() are functions that can
be replaced with single-line statements. This also eliminates
the single place that cs_inventory is taken recursively.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -982,18 +982,6 @@ public: } } - void PushBlockInventory(const uint256& hash) - { - LOCK(cs_inventory); - vInventoryBlockToSend.push_back(hash); - } - - void PushBlockHash(const uint256 &hash) - { - LOCK(cs_inventory); - vBlockHashesToAnnounce.push_back(hash); - } - void CloseSocketDisconnect(); void copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap); |