diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-01-10 13:23:26 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-02-08 16:52:19 +0100 |
commit | f59d8f0b644d49324cabd19c58cf2262d49e1392 (patch) | |
tree | b699fa0e1f6a0ca3fc09ef0ef50c4f30a6ad5b9c /src/test/DoS_tests.cpp | |
parent | 95e66247ebaac88dadd081f850ebf86c71831e61 (diff) |
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.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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<uint256, CTransaction> mapOrphanTransactions; extern std::map<uint256, std::set<uint256> > mapOrphanTransactionsByPrev; |