From f59d8f0b644d49324cabd19c58cf2262d49e1392 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Fri, 10 Jan 2014 13:23:26 +0100 Subject: Per-peer block download tracking and stalled download detection. Keep track of which block is being requested (and to be requested) from each peer, and limit the number of blocks in-flight per peer. In addition, detect stalled downloads, and disconnect if they persist for too long. This means blocks are never requested twice, and should eliminate duplicate downloads during synchronization. --- src/test/DoS_tests.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/test') diff --git a/src/test/DoS_tests.cpp b/src/test/DoS_tests.cpp index fbca09b4dc..7bf7b19b54 100644 --- a/src/test/DoS_tests.cpp +++ b/src/test/DoS_tests.cpp @@ -21,7 +21,6 @@ // Tests this internal-to-main.cpp method: extern bool AddOrphanTx(const CTransaction& tx); extern unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans); -extern void Misbehaving(NodeId nodeid, int howmuch); extern std::map mapOrphanTransactions; extern std::map > mapOrphanTransactionsByPrev; -- cgit v1.2.3