aboutsummaryrefslogtreecommitdiffstats
path: root/eth/sync.go
Commit message (Collapse)AuthorAgeFilesLines
* core, eth, internal, miner: optimize txpool for quick opsPéter Szilágyi2016-09-021-1/+4
|
* eth, eth/downloader: better remote head trackingPéter Szilágyi2016-07-251-3/+5
|
* core: improved chainDb using sequential keyszsfelfoldi2016-06-071-1/+2
|
* eth: don't accept transactions until we sync up with the networkPéter Szilágyi2016-06-061-0/+2
|
* eth: skip transaction handling during fast syncPéter Szilágyi2016-05-171-3/+4
|
* core, eth, miner: improve shutdown synchronisationFelix Lange2016-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | Shutting down geth prints hundreds of annoying error messages in some cases. The errors appear because the Stop method of eth.ProtocolManager, miner.Miner and core.TxPool is asynchronous. Left over peer sessions generate events which are processed after Stop even though the database has already been closed. The fix is to make Stop synchronous using sync.WaitGroup. For eth.ProtocolManager, in order to make use of WaitGroup safe, we need a way to stop new peer sessions from being added while waiting on the WaitGroup. The eth protocol Run function now selects on a signaling channel and adds to the WaitGroup only if ProtocolManager is not shutting down. For miner.worker and core.TxPool the number of goroutines is static, WaitGroup can be used in the usual way without additional synchronisation.
* eth: remove workaround for asynchronous processing in the downloaderFelix Lange2015-11-191-4/+0
|
* eth: don't block sync goroutines that short circuitPéter Szilágyi2015-10-281-2/+5
|
* core, eth, trie: fix data races and merge/review issuesPéter Szilágyi2015-10-211-1/+17
|
* core: support inserting pure header chainsPéter Szilágyi2015-10-191-1/+2
|
* cmd/geth, cmd/utils, core, rpc: renamed to blockchainJeffrey Wilcke2015-10-041-1/+1
| | | | | | * Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted.
* eth, eth/downloader: don't report stall if fetcher filled the blockPéter Szilágyi2015-07-291-1/+1
|
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-071-0/+16
|
* eth: clean up peer struct a bit, fix double txn bcastPéter Szilágyi2015-07-011-9/+1
|
* eth, eth/fetcher: separate notification sync mechanismPéter Szilágyi2015-06-181-137/+8
|
* eth, eth/downloader: fix processing interrupt caused by temp cancelPéter Szilágyi2015-06-181-1/+1
|
* eth: don't refetch non fitting blocks to avoid duplicatesPéter Szilágyi2015-06-151-1/+1
|
* eth, eth/downloader: do async block fetches, add dl testsPéter Szilágyi2015-06-151-1/+1
|
* eth, eth/downloader: move block processing into the downlaoderPéter Szilágyi2015-06-151-50/+3
|
* eth, eth/downloader: move peer removal into downloaderPéter Szilágyi2015-06-151-30/+2
|
* eth: dedup fetches to ensure no blocks are pulled twicePéter Szilágyi2015-06-111-5/+23
|
* eth: randomly fetch announced block (don't hammer origin)Péter Szilágyi2015-06-111-4/+5
|
* eth: discard fetched blocks that don't fit (no goroutine)Péter Szilágyi2015-06-111-13/+13
|
* eth: limit number of sent transactions based on message sizeFelix Lange2015-06-091-0/+94
| | | | | | | | | | | | | | 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: fix a data race in the hash announcement processingPéter Szilágyi2015-06-091-10/+18
|
* eth: fix data race accessing peer.tdPéter Szilágyi2015-06-091-1/+1
|
* eth: fix data race accessing peer.recentHashPéter Szilágyi2015-06-091-3/+4
|
* eth: clean up pending announce download map, polish logsPéter Szilágyi2015-06-091-13/+25
|
* eth: split and handle explicitly vs. download requested blocksPéter Szilágyi2015-06-091-0/+56
|
* eth: fetch announced hashes from origin, periodicallyPéter Szilágyi2015-06-091-3/+55
|
* eth, eth/downloader: fix #1098, elevate empty hash errors to peer dropsPéter Szilágyi2015-06-051-1/+1
|
* core, eth/downloader: expose the bad hashes, check in downloaderPéter Szilágyi2015-05-281-2/+1
|
* core: check negative value transactions. Closes #1109obscuren2015-05-271-1/+0
|
* eth, eth/downloader: surface downloaded block origin, drop on errorPéter Szilágyi2015-05-261-3/+11
|
* expand acronym in log message from TDJason Carver2015-05-231-1/+1
| | | to total difficulty
* eth: make the peer set thread safePéter Szilágyi2015-05-191-17/+19
|
* eth, eth/downloader: detect and handle madeup hash attacksPéter Szilágyi2015-05-151-1/+1
|
* eth: drop a sync peer if it sends an invalid hash chainPéter Szilágyi2015-05-151-1/+1
|
* eth, eth/downloader: prevent hash repeater attackPéter Szilágyi2015-05-151-2/+4
|
* eth, eth/downloader: remove parent verification from the downlaoderPéter Szilágyi2015-05-141-9/+4
|
* eth, eth/downloader: handle a potential unknown parent attackPéter Szilágyi2015-05-141-6/+17
|
* eth, eth/downloader: moved pending queue error message to debugobscuren2015-05-111-1/+2
|
* eth: added a cancel method for the downloaderobscuren2015-05-101-0/+3
| | | | | | | | | 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.
* eth, eth/downloader: handle sync errors a bit more gracefullyPéter Szilágyi2015-05-081-26/+28
|
* eth, eth/downloader: make synchronize thread safePéter Szilágyi2015-05-081-12/+4
|
* cmd/geth, eth: bump version & tmp fix for incorrect TD peersobscuren2015-05-031-0/+7
|
* eth,core: changed NewTicker to Tickobscuren2015-05-031-4/+4
|
* eth, eth/downloader: Moved block processing & graceful shutdownobscuren2015-05-011-0/+101
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