Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | eth: fix the propagation/announce order for mined blocks | Péter Szilágyi | 2015-06-19 | 1 | -4/+4 |
| | |||||
* | eth: fix test breakage from the previous commit | Péter Szilágyi | 2015-06-18 | 1 | -1/+0 |
| | |||||
* | eth, eth/fetcher: propagate after header verify, announce only on insert | Péter Szilágyi | 2015-06-18 | 1 | -20/+41 |
| | |||||
* | eth: clean the block request packet handling a bit | Péter Szilágyi | 2015-06-18 | 1 | -17/+17 |
| | |||||
* | eth, eth/fetcher: move propagated block import into fetcher | Péter Szilágyi | 2015-06-18 | 1 | -77/+33 |
| | |||||
* | eth/fetcher: build longest chain until proven otherwise | Péter Szilágyi | 2015-06-18 | 1 | -1/+1 |
| | |||||
* | eth, eth/fetcher: define and enforce propagation boundaries | Péter Szilágyi | 2015-06-18 | 1 | -1/+0 |
| | |||||
* | eth, eth/fetcher: cache future propagated blocks too | Péter Szilágyi | 2015-06-18 | 1 | -0/+2 |
| | |||||
* | eth, eth/fetcher: use an import queue to store out of order blocks | Péter Szilágyi | 2015-06-18 | 1 | -2/+9 |
| | |||||
* | eth, eth/fetcher: separate notification sync mechanism | Péter Szilágyi | 2015-06-18 | 1 | -45/+26 |
| | |||||
* | eth, eth/downloader: move block processing into the downlaoder | Péter Szilágyi | 2015-06-15 | 1 | -1/+1 |
| | |||||
* | eth, eth/downloader: move peer removal into downloader | Péter Szilágyi | 2015-06-15 | 1 | -2/+2 |
| | |||||
* | eth: limit number of sent transactions based on message size | Felix Lange | 2015-06-09 | 1 | -9/+15 |
| | | | | | | | | | | | | | | 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. | ||||
* | eth: limit number of sent blocks based on message size | Felix Lange | 2015-06-09 | 1 | -2/+11 |
| | | | | | If blocks get larger, sending 256 at once can make messages large enough to exceed the low-level write timeout. | ||||
* | eth: fix data race accessing peer.td | Péter Szilágyi | 2015-06-09 | 1 | -2/+2 |
| | |||||
* | eth: fix data race accessing peer.recentHash | Péter Szilágyi | 2015-06-09 | 1 | -3/+3 |
| | |||||
* | Merge pull request #1188 from karalabe/newblockhashes-proposal | Jeffrey Wilcke | 2015-06-09 | 1 | -74/+128 |
|\ | | | | | eth: implement the NewBlockHashes protocol proposal | ||||
| * | eth: clean up pending announce download map, polish logs | Péter Szilágyi | 2015-06-09 | 1 | -1/+1 |
| | | |||||
| * | eth: split and handle explicitly vs. download requested blocks | Péter Szilágyi | 2015-06-09 | 1 | -23/+25 |
| | | |||||
| * | eth: fetch announced hashes from origin, periodically | Péter Szilágyi | 2015-06-09 | 1 | -29/+25 |
| | | |||||
| * | eth: implement the NewBlockHashes protocol proposal | Péter Szilágyi | 2015-06-08 | 1 | -62/+118 |
| | | |||||
* | | eth/downloader: cap the hash ban set, add test for it | Péter Szilágyi | 2015-06-08 | 1 | -2/+2 |
|/ | |||||
* | eth: 100% block propogation | obscuren | 2015-05-28 | 1 | -2/+1 |
| | |||||
* | eth: hard disconnect if a peer is flaky | Péter Szilágyi | 2015-05-27 | 1 | -4/+12 |
| | |||||
* | eth, eth/downloader: surface downloaded block origin, drop on error | Péter Szilágyi | 2015-05-26 | 1 | -6/+6 |
| | |||||
* | Merge pull request #1064 from karalabe/downloader-attacks | Jeffrey Wilcke | 2015-05-22 | 1 | -3/+3 |
|\ | | | | | Fix two additional download vulnerabilities | ||||
| * | eth, eth/downloader: remove duplicate consts, bump hash fetch to 2K | Péter Szilágyi | 2015-05-21 | 1 | -3/+3 |
| | | |||||
* | | eth: fix odd method names in peer set | Péter Szilágyi | 2015-05-20 | 1 | -2/+2 |
|/ | |||||
* | eth: make the peer set thread safe | Péter Szilágyi | 2015-05-19 | 1 | -41/+24 |
| | |||||
* | eth/downloader: fix active peer shadowing, polish func names | Péter Szilágyi | 2015-05-13 | 1 | -2/+2 |
| | |||||
* | eth: 100% tx propagation | obscuren | 2015-05-13 | 1 | -1/+1 |
| | |||||
* | eth, eth/downloader: handle sync errors a bit more gracefully | Péter Szilágyi | 2015-05-08 | 1 | -4/+4 |
| | |||||
* | eth, eth/downloader: make synchronize thread safe | Péter Szilágyi | 2015-05-08 | 1 | -2/+2 |
| | |||||
* | eth, eth/downloader: Moved block processing & graceful shutdown | obscuren | 2015-05-01 | 1 | -116/+23 |
| | | | | | | | 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 | ||||
* | eth/downloader: delete blocks from queue | obscuren | 2015-04-30 | 1 | -1/+1 |
| | |||||
* | core, eth: verify td of received blocks | obscuren | 2015-04-30 | 1 | -1/+21 |
| | |||||
* | eth, eth/downloader: remove bad peers from peer set | obscuren | 2015-04-30 | 1 | -7/+21 |
| | | | | Peers in the eth protocol handler are now being ignored for catch up. | ||||
* | eth: rely on p2p to determine block propagation | obscuren | 2015-04-30 | 1 | -1/+1 |
| | |||||
* | core/types, eth: meassure and display propagation times | obscuren | 2015-04-30 | 1 | -1/+3 |
| | |||||
* | core: return the index of the block that failed when inserting a chain | obscuren | 2015-04-29 | 1 | -1/+1 |
| | |||||
* | eth: check if downloader is busy before showing log message | obscuren | 2015-04-29 | 1 | -0/+5 |
| | |||||
* | eth: added a few informative messages regarding downloading | obscuren | 2015-04-24 | 1 | -0/+6 |
| | |||||
* | eth, eth/downloader: simplified synchronisation process | obscuren | 2015-04-24 | 1 | -7/+11 |
| | |||||
* | eth, eth/downloader: don't require td on downloader. Fixed tests | obscuren | 2015-04-24 | 1 | -2/+2 |
| | |||||
* | eth, eth/downloader: moved peer selection to protocol handler | obscuren | 2015-04-24 | 1 | -4/+61 |
| | |||||
* | eth: cleanup | obscuren | 2015-04-24 | 1 | -5/+1 |
| | |||||
* | eth: moved mined, tx events to protocol-hnd and improved tx propagation | obscuren | 2015-04-23 | 1 | -2/+64 |
| | | | | | | | | | Transactions are now propagated to peers from which we have not yet received the transaction. This will significantly reduce the chatter on the network. Moved new mined block handler to the protocol handler and moved transaction handling to protocol handler. | ||||
* | core: added chain head reset to known block | obscuren | 2015-04-20 | 1 | -1/+2 |
| | |||||
* | Merge branch 'rlp-size-validation' of https://github.com/fjl/go-ethereum ↵ | obscuren | 2015-04-19 | 1 | -6/+6 |
| | | | | | | | into fjl-rlp-size-validation Conflicts: eth/protocol.go | ||||
* | eth: drop blocks with low TD | obscuren | 2015-04-19 | 1 | -3/+3 |
| | |||||
* | eth: temp 100% block propagation because of the current state of the net | obscuren | 2015-04-19 | 1 | -2/+2 |
| | |||||
* | eth: removed debug messages to stdout | obscuren | 2015-04-19 | 1 | -2/+2 |
| | |||||
* | downloader: don't remove peers. keep them around | obscuren | 2015-04-19 | 1 | -0/+11 |
| | |||||
* | eth: adapted to new synchronous api of downloader's AddBlock | obscuren | 2015-04-19 | 1 | -2/+12 |
| | |||||
* | downloader: make sure that hashes are only accepted from the active peer | obscuren | 2015-04-18 | 1 | -2/+9 |
| | |||||
* | downloader: reset the queue if a peer response with an empty hash set | obscuren | 2015-04-18 | 1 | -1/+1 |
| | |||||
* | eth: ignore NewBlockMsg with lower td | obscuren | 2015-04-18 | 1 | -2/+3 |
| | |||||
* | eth: drop blocks that are known | obscuren | 2015-04-18 | 1 | -0/+6 |
| | |||||
* | eth: additional cleanups to the subprotocol, improved block propagation | obscuren | 2015-04-18 | 1 | -37/+112 |
| | | | | | | | | * Improved block propagation by sending blocks only to peers to which, as far as we know, the peer does not know about. * Made sub protocol its own manager * SubProtocol now contains the p2p.Protocol which is used instead of a function-returning-protocol thing. | ||||
* | eth: began split up of peers and protocol manager | obscuren | 2015-04-18 | 1 | -0/+224 |