diff options
| author | Eric Lombrozo <[email protected]> | 2013-01-07 06:39:53 -0800 |
|---|---|---|
| committer | Eric Lombrozo <[email protected]> | 2013-06-05 20:36:10 -0700 |
| commit | 8926263dde10bed3f42e21e5f106365f1192e6c0 (patch) | |
| tree | 2b00ca18e361e9ea76351b3dff39c8947ded8568 /src/net.cpp | |
| parent | Get rid of db dependencies on main (diff) | |
| download | discoin-8926263dde10bed3f42e21e5f106365f1192e6c0.tar.xz discoin-8926263dde10bed3f42e21e5f106365f1192e6c0.zip | |
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 54ed1d9b5..8929919f0 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) { |