Péter Szilágyi
d6f2c0a76f
eth, eth/downloader: fix #1231 , DOS vulnerability in hash queueing
9 years ago
Péter Szilágyi
f43c07cb3c
eth, eth/downloader: transition to eth 61
9 years ago
Péter Szilágyi
af51dc4d63
eth, eth/downloader: pass the eth protocol version through
9 years ago
Péter Szilágyi
aac2b6ae4c
eth: add the blocks from numbers protocol message
9 years ago
Péter Szilágyi
6fc85f1ec2
eth: clean up peer struct a bit, fix double txn bcast
9 years ago
Péter Szilágyi
2c8ed76e01
eth: start cleaning up old protocol implementation, add metrics
9 years ago
Péter Szilágyi
393d675690
cmd/geth, cmd/utils, eth: advertise both eth/60 and eth/61
9 years ago
Felix Lange
76821d167a
core, eth, rpc: avoid unnecessary block header copying
9 years ago
Péter Szilágyi
4180ca7fe4
eth: fix the propagation/announce order for mined blocks
10 years ago
Péter Szilágyi
90d45f0397
eth: fix test breakage from the previous commit
10 years ago
Péter Szilágyi
b91b581b80
eth, eth/fetcher: propagate after header verify, announce only on insert
10 years ago
Péter Szilágyi
629705ad53
eth: clean the block request packet handling a bit
10 years ago
Péter Szilágyi
5ec6ecc511
eth, eth/fetcher: move propagated block import into fetcher
10 years ago
Péter Szilágyi
37c5ff392f
eth/fetcher: build longest chain until proven otherwise
10 years ago
Péter Szilágyi
497a7f1717
eth, eth/fetcher: define and enforce propagation boundaries
10 years ago
Péter Szilágyi
11c8f83a58
eth, eth/fetcher: cache future propagated blocks too
10 years ago
Péter Szilágyi
057bc237ad
eth, eth/fetcher: use an import queue to store out of order blocks
10 years ago
Péter Szilágyi
7c2af1c117
eth, eth/fetcher: separate notification sync mechanism
10 years ago
Péter Szilágyi
fc7abd9886
eth, eth/downloader: move block processing into the downlaoder
10 years ago
Péter Szilágyi
66d3dc8690
eth, eth/downloader: move peer removal into downloader
10 years ago
Felix Lange
6c73a59806
eth: limit number of sent transactions based on message size
...
Nodes that are out of sync will queue many transactions, which causes
the initial transactions message to grow very large. Larger transactions
messages can make communication impossible if the message is too big to
send. Big transactions messages also exhaust egress bandwidth, which
degrades other peer connections.
The new approach to combat these issues is to send transactions in
smaller batches. This commit introduces a new goroutine that handles
delivery of all initial transaction transfers. Size-limited packs of
transactions are sent to one peer at a time, conserving precious egress
bandwidth.
10 years ago
Felix Lange
41b2008a66
eth: limit number of sent blocks based on message size
...
If blocks get larger, sending 256 at once can make messages large
enough to exceed the low-level write timeout.
10 years ago
Péter Szilágyi
f86707713c
eth: fix data race accessing peer.td
10 years ago
Péter Szilágyi
44147d057d
eth: fix data race accessing peer.recentHash
10 years ago
Péter Szilágyi
8216bb901c
eth: clean up pending announce download map, polish logs
10 years ago
Péter Szilágyi
9ed166c196
eth: split and handle explicitly vs. download requested blocks
10 years ago
Péter Szilágyi
fdccce781e
eth: fetch announced hashes from origin, periodically
10 years ago
Péter Szilágyi
6f415b96b3
eth: implement the NewBlockHashes protocol proposal
10 years ago
Péter Szilágyi
63c6cedb14
eth/downloader: cap the hash ban set, add test for it
10 years ago
obscuren
e5d7627427
eth: 100% block propogation
10 years ago
Péter Szilágyi
5235e01b8d
eth: hard disconnect if a peer is flaky
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
3c8227b935
eth: fix odd method names in peer set
10 years ago
Péter Szilágyi
5422fe5125
eth: make the peer set thread safe
10 years ago
Péter Szilágyi
d2d5dbc6fb
eth/downloader: fix active peer shadowing, polish func names
10 years ago
obscuren
8fe01b4bfa
eth: 100% tx propagation
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
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
8595198c1b
eth/downloader: delete blocks from queue
10 years ago
obscuren
28b39267d9
core, eth: verify td of received blocks
10 years ago
obscuren
9b6e8f6195
eth, eth/downloader: remove bad peers from peer set
...
Peers in the eth protocol handler are now being ignored for catch up.
10 years ago
obscuren
04c209980b
eth: rely on p2p to determine block propagation
10 years ago
obscuren
9e63798d03
core/types, eth: meassure and display propagation times
10 years ago
obscuren
735b029db9
core: return the index of the block that failed when inserting a chain
10 years ago
obscuren
4b7bdc3766
eth: check if downloader is busy before showing log message
10 years ago
obscuren
1681ee9883
eth: added a few informative messages regarding downloading
10 years ago
obscuren
d84c2202e7
eth, eth/downloader: simplified synchronisation process
10 years ago
obscuren
31f82eb334
eth, eth/downloader: don't require td on downloader. Fixed tests
10 years ago