aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-06-20 23:16:20 -0400
committerJohn Newbery <john@johnnewbery.com>2020-06-23 08:46:05 -0400
commit344e831de54f7b864f03a90f6cb19692eafcd463 (patch)
treeeedcd3d4c57ec38e884dade213a367f788085f28 /src/net.h
parent879acc681abc29c57ad8590999874e2ab9dca3a5 (diff)
downloadbitcoin-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.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/net.h b/src/net.h
index b461470f1f..ddb185763f 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);