diff options
author | Eric Lombrozo <elombrozo@gmail.com> | 2013-01-07 06:39:53 -0800 |
---|---|---|
committer | Eric Lombrozo <elombrozo@gmail.com> | 2013-06-05 20:36:10 -0700 |
commit | 8926263dde10bed3f42e21e5f106365f1192e6c0 (patch) | |
tree | 2b00ca18e361e9ea76351b3dff39c8947ded8568 /src/net.cpp | |
parent | 336fe971e68f0336d42e1fa930b6a9c717f612e0 (diff) |
Moved PushGetBlocks to main.cpp to eliminate dependence of net.cpp on CBlockLocator.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/net.cpp b/src/net.cpp index 54ed1d9b51..8929919f03 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -79,17 +79,6 @@ unsigned short GetListenPort() return (unsigned short)(GetArg("-port", GetDefaultPort())); } -void CNode::PushGetBlocks(CBlockIndex* pindexBegin, uint256 hashEnd) -{ - // Filter out duplicate requests - if (pindexBegin == pindexLastGetBlocksBegin && hashEnd == hashLastGetBlocksEnd) - return; - pindexLastGetBlocksBegin = pindexBegin; - hashLastGetBlocksEnd = hashEnd; - - PushMessage("getblocks", CBlockLocator(pindexBegin), hashEnd); -} - // find 'best' local address for a particular peer bool GetLocal(CService& addr, const CNetAddr *paddrPeer) { |