aboutsummaryrefslogtreecommitdiff
path: root/src/test/DoS_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2014-01-10 13:23:26 +0100
committerlangerhans <[email protected]>2014-05-25 18:56:47 +0200
commit30f542953689408104b7549e35a2e85edf325236 (patch)
treef6ede357c986b9b4f78956c775cd2ca40134a0d8 /src/test/DoS_tests.cpp
parentadd constant for shared GUI core par settings. (diff)
downloaddiscoin-30f542953689408104b7549e35a2e85edf325236.tar.xz
discoin-30f542953689408104b7549e35a2e85edf325236.zip
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.
Diffstat (limited to 'src/test/DoS_tests.cpp')
-rw-r--r--src/test/DoS_tests.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/DoS_tests.cpp b/src/test/DoS_tests.cpp
index e62fcbc5a..49b62d959 100644
--- a/src/test/DoS_tests.cpp
+++ b/src/test/DoS_tests.cpp
@@ -25,7 +25,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<uint256, CTransaction> mapOrphanTransactions;
extern std::map<uint256, std::set<uint256> > mapOrphanTransactionsByPrev;