Péter Szilágyi
af51dc4d63
eth, eth/downloader: pass the eth protocol version through
9 years ago
Felix Lange
e0e5f74776
eth/downloader, eth/fetcher: use core.GenerateChain in tests
...
TestMadeupParentBlockChainAttack has been deleted because it was too
hard to port and the attack that it checks the prevention of is being
averted in a different way (through a protocol change).
9 years ago
Felix Lange
1d42888d30
core/types: make blocks immutable
9 years ago
Péter Szilágyi
2a1b722d04
eth/fetcher: fix timer reset bug, add initial tests
10 years ago
Péter Szilágyi
4365668462
eth/downloader: extend slow test to fix even slower CI server...
10 years ago
Péter Szilágyi
55dd8fd621
eth/downloader: always reenter processing if not exiting
10 years ago
Péter Szilágyi
2f4cbe22f5
eth, eth/downloader: fix processing interrupt caused by temp cancel
10 years ago
Péter Szilágyi
4a1e82cf3f
eth/downloader: fix #1280 , overlapping (good/bad) delivery hang
10 years ago
Péter Szilágyi
b240983e2b
eth, eth/downloader: do async block fetches, add dl tests
10 years ago
Péter Szilágyi
30a9939388
eth/downloader: sanity test for multi peer syncs
10 years ago
Péter Szilágyi
fc7abd9886
eth, eth/downloader: move block processing into the downlaoder
10 years ago
Péter Szilágyi
0fc71877a7
eth/downloader: add valid peer during attacks (check interference)
10 years ago
Péter Szilágyi
80833f8137
eth/downloader: instreument and test the sync peer drop
10 years ago
Péter Szilágyi
2dd6a62f67
eth/downloader: support individual peers in the test suite
10 years ago
Péter Szilágyi
2937903299
eth/downloader: remove uneeded testing functions
10 years ago
Péter Szilágyi
66d3dc8690
eth, eth/downloader: move peer removal into downloader
10 years ago
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