Péter Szilágyi
4ed3509a02
eth/downloader: test registration rejection on head ban
10 years ago
Péter Szilágyi
63c6cedb14
eth/downloader: cap the hash ban set, add test for it
10 years ago
Péter Szilágyi
4b2dd44711
eth/downloader: fix throttling test to be less timing dependent
10 years ago
Péter Szilágyi
b40c796ff7
eth/downloader: preallocate the block cache
10 years ago
Péter Szilágyi
9da0232eef
eth/downloader: update test for shitty travis
10 years ago
Péter Szilágyi
84bc93d8cb
eth/downloader: accumulating hash bans for reconnecting attackers
10 years ago
Péter Szilágyi
eedb25b22a
eth/downloader: clean up tests and unused variables
10 years ago
Péter Szilágyi
c9a546c310
eth/downloader: add a basic block download congestion control
10 years ago
Péter Szilágyi
eafdc1f8e3
eth, eth/downloader: surface downloaded block origin, drop on error
10 years ago
Péter Szilágyi
06a041589f
eth, eth/downloader: remove duplicate consts, bump hash fetch to 2K
10 years ago
Péter Szilágyi
52db6d8be5
eth/downloader: circumvent a forged block chain with known parent attack
10 years ago
Péter Szilágyi
e8b22b9253
eth/downloader: prevent a peer from dripping bad hashes
10 years ago
Péter Szilágyi
6f54eb6d9a
eth/downloader: fix test to it doesn't time out on a slow machine
10 years ago
Péter Szilágyi
412cf98bbc
eth/downloader: fix #992 , where tests may time out on a slow machine
10 years ago
Péter Szilágyi
5c1a7b965c
eth/downloader: circumvent a fake blockchain attack
10 years ago
Péter Szilágyi
83226762c2
eth, eth/downloader: detect and handle madeup hash attacks
10 years ago
Péter Szilágyi
72411eb24c
eth/downloader: circumvent hash reordering attacks
10 years ago
Péter Szilágyi
bcc2980179
eth/downloader: check sync after failed attacks
10 years ago
Péter Szilágyi
366e9627e8
eth/downloader: add a test for detecting missing blocks
10 years ago
Péter Szilágyi
cd2fb09051
eth, eth/downloader: prevent hash repeater attack
10 years ago
obscuren
cfb2b51b74
eth/downloader: fixed test
10 years ago
Péter Szilágyi
fe87feccb1
eth/downloader: add a small additional check to the test
10 years ago
Péter Szilágyi
3eda70c64c
eth, eth/downloader: remove parent verification from the downlaoder
10 years ago
Péter Szilágyi
a4246c2da6
eth, eth/downloader: handle a potential unknown parent attack
10 years ago
Péter Szilágyi
d2d5dbc6fb
eth/downloader: fix active peer shadowing, polish func names
10 years ago
Péter Szilágyi
70c65835f4
eth/downloader: fix #910 , thread safe peers & polishes
10 years ago
Péter Szilágyi
685862d2ce
eth/downloader: fix #910 , thread safe peers & polishes
10 years ago
obscuren
05715f27cf
eth: added a cancel method for the downloader
...
Added a cancel method to the downloader which gracefully shuts down any
active syncing process (hash fetching or block downloading) and resets
the queue and remove any pending blocks.
Issue with the downloader which would stall because of an active ongoing
process when an invalid block was found.
10 years ago
Péter Szilágyi
bd5720f480
eth, eth/downloader: handle sync errors a bit more gracefully
10 years ago
Péter Szilágyi
9d188f73b5
eth, eth/downloader: make synchronize thread safe
10 years ago
Péter Szilágyi
43901c9282
eth/downloader: fix priority queue reset, add throttling test
10 years ago
Péter Szilágyi
4800c94392
eth/downloader: prioritize block fetch based on chain position, cap memory use
10 years ago
obscuren
1470b22e90
downloader: hash downloading recovery
...
If a peer fails to respond (disconnect, etc) during hash downloading
switch to a different peer which has it's current_hash in the queue's
peer set.
10 years ago
obscuren
25bc88113f
eth/downloader: added additional tests
10 years ago
obscuren
016f152b36
eth, eth/downloader: Moved block processing & graceful shutdown
...
The downloader is no longer responsible for processing blocks. The
eth-protocol handler now takes care of this instead.
Added graceful shutdown during block processing. Closes #846
10 years ago
obscuren
c930045834
core: fixed tetst to reflect (int, error) return by insertChain
10 years ago
obscuren
a9e4b96573
eth/downloader: fixed tests
10 years ago
obscuren
31f82eb334
eth, eth/downloader: don't require td on downloader. Fixed tests
10 years ago
obscuren
ed07ffcde5
downloader: fixed tests with low ttl
10 years ago
obscuren
c58918c84a
downloader: moved chunk ignoring. Fixes issue with catching up
10 years ago
obscuren
a8a2b2a488
downloader: added missing blocks catchup functionality
...
When a parent is missing in the block list an attempt should be made to
fetch the missing parent and grandparents.
10 years ago
obscuren
acf8452c33
downloader: implemented new downloader
10 years ago