aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader
Commit message (Collapse)AuthorAgeFilesLines
* eth, eth/downloader: moved pending queue error message to debugobscuren2015-05-111-2/+2
|
* eth/downloader: use count instead of peers, clearerPéter Szilágyi2015-05-112-4/+4
|
* eth/downloader: revert to demotion, use harsher penaltyPéter Szilágyi2015-05-112-8/+19
|
* eth/downloader: fix #910, thread safe peers & polishesPéter Szilágyi2015-05-114-161/+210
|
* eth: added a cancel method for the downloaderobscuren2015-05-102-2/+103
| | | | | | | | | 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/downloader: fix leftover state between syncsPéter Szilágyi2015-05-081-1/+4
|
* eth, eth/downloader: handle sync errors a bit more gracefullyPéter Szilágyi2015-05-082-18/+16
|
* eth, eth/downloader: make synchronize thread safePéter Szilágyi2015-05-083-68/+16
|
* eth/downloader: fix priority queue reset, add throttling testPéter Szilágyi2015-05-071-0/+48
|
* eth/downloader: fix expiration not running while fetchingPéter Szilágyi2015-05-072-34/+32
|
* eth/downloader: prioritize block fetch based on chain position, cap memory usePéter Szilágyi2015-05-075-273/+369
|
* downloader: hash downloading recoveryobscuren2015-05-032-29/+71
| | | | | | 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.
* eth/downloader: put back hashes on block overflow errorobscuren2015-05-031-19/+14
|
* eth/downloader: changed has to blockHashes for chain linkingobscuren2015-05-031-1/+1
|
* eth/downloader: added additional testsobscuren2015-05-032-4/+73
|
* eth, eth/downloader: Moved block processing & graceful shutdownobscuren2015-05-013-173/+221
| | | | | | | 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 queueobscuren2015-04-301-2/+14
|
* eth, eth/downloader: remove bad peers from peer setobscuren2015-04-301-10/+8
| | | | Peers in the eth protocol handler are now being ignored for catch up.
* eth/downloader: drop blockobscuren2015-04-301-1/+1
|
* core: fixed tetst to reflect (int, error) return by insertChainobscuren2015-04-291-2/+2
|
* eth/downloader: ignore orphan blocks in the downloader.obscuren2015-04-291-5/+9
| | | | | | When blocks have been sorted and are being processed, orphan blocks should be ignored and thrown out. The protocol handler is responsible for downloading blocks which have missing parents.
* core: return the index of the block that failed when inserting a chainobscuren2015-04-291-5/+4
|
* eth/downloader: reset the chain when parent is missing during processingobscuren2015-04-291-0/+2
|
* eth: check if downloader is busy before showing log messageobscuren2015-04-291-0/+4
|
* eth/downloader: removed update loop and synch channelobscuren2015-04-251-25/+0
|
* eth/downloader: fixed testsobscuren2015-04-241-12/+8
|
* eth, eth/downloader: simplified synchronisation processobscuren2015-04-241-24/+13
|
* eth/downloader: removed peer td management and best peer selectionobscuren2015-04-242-16/+2
|
* eth, eth/downloader: don't require td on downloader. Fixed testsobscuren2015-04-242-21/+18
|
* eth, eth/downloader: moved peer selection to protocol handlerobscuren2015-04-242-124/+50
|
* core: added chain head reset to known blockobscuren2015-04-201-0/+2
|
* geth: admin download statusobscuren2015-04-201-11/+15
|
* downloader: fixed tests with low ttlobscuren2015-04-192-2/+3
|
* movedobscuren2015-04-191-6/+6
|
* Removed debug printlnobscuren2015-04-191-3/+0
|
* downloader: moved chunk ignoring. Fixes issue with catching upobscuren2015-04-194-31/+44
|
* downloader: defer peer reset after downloadobscuren2015-04-192-4/+8
|
* downloader: reset hashTtl on receiveobscuren2015-04-191-0/+2
|
* downloader: don't remove peers. keep them aroundobscuren2015-04-191-2/+3
|
* typoobscuren2015-04-191-1/+1
|
* downloader: free up peers from work when the downloader resetsobscuren2015-04-193-5/+22
|
* downloader: throw an error if there are no peers available for downloadobscuren2015-04-191-6/+16
| | | | | | If all peers have been tried during the block download process and some hashes are unfetchable (available peers > 0 and fetching == 0) throw an error so the process can be aborted.
* downloader: fixed a race condition for download statusobscuren2015-04-191-1/+0
|
* eth: adapted to new synchronous api of downloader's AddBlockobscuren2015-04-192-2/+2
|
* downloader: improved downloading and synchronisationobscuren2015-04-194-110/+129
| | | | | | * Downloader's peers keeps track of peer's previously requested hashes so that we don't have to re-request * Changed `AddBlock` to be fully synchronous
* downloader: make sure that hashes are only accepted from the active peerobscuren2015-04-181-18/+45
|
* downloader: reset the queue if a peer response with an empty hash setobscuren2015-04-182-14/+36
|
* downloader: all handlers check for isBusyobscuren2015-04-181-7/+7
|
* Merge branch 'develop' into downloader-protoobscuren2015-04-182-5/+117
|\ | | | | | | | | Conflicts: eth/downloader/downloader.go
| * downloader: fixed a typoobscuren2015-04-171-1/+1
| |
| * downloader: added demotion / promotion in prep. for rep. systemobscuren2015-04-162-0/+25
| |
| * downloader: updated downloader and fixed issues with catch upobscuren2015-04-161-21/+47
| | | | | | | | | | | | Properly ignore blocks coming from peers not in our peer list (blocked) and do never request anything from bad peers. Added some checks to account for blocks known when requesting hashes (missing parents).
* | downloader: updated downloader and fixed issues with catch upobscuren2015-04-161-22/+48
|/ | | | | | Properly ignore blocks coming from peers not in our peer list (blocked) and do never request anything from bad peers. Added some checks to account for blocks known when requesting hashes (missing parents).
* downloader: added missing blocks catchup functionalityobscuren2015-04-134-133/+303
| | | | | When a parent is missing in the block list an attempt should be made to fetch the missing parent and grandparents.
* downloader: return an error for peer.fetch and return chunk to queueobscuren2015-04-122-3/+16
| | | | | If a peer was somehow already fetching and somehow managed to end up in the `available` pool it should return it's work.
* downloader: renamed chunks to queueobscuren2015-04-121-0/+0
|
* downloader: implemented new downloaderobscuren2015-04-124-0/+602