aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader
Commit message (Expand)AuthorAgeFilesLines
* eth, eth/downloader: move peer removal into downloaderPéter Szilágyi2015-06-153-45/+76
* eth/downloader: fetch the block hashes on the fly, when neededPéter Szilágyi2015-06-111-9/+5
* cmd/geth, eth/downloader: rough guess at the import etaPéter Szilágyi2015-06-101-2/+13
* cmd/geth, eth/downloader: collect and report import progress tooPéter Szilágyi2015-06-101-4/+35
* eth/downloader: fix hash fetch timeout handlingFelix Lange2015-06-091-12/+18
* eth/downloader: test registration rejection on head banPéter Szilágyi2015-06-081-2/+10
* eth/downloader: reject peer registration if head is bannedPéter Szilágyi2015-06-081-4/+15
* eth/downloader: cap the hash ban set, add test for itPéter Szilágyi2015-06-084-9/+61
* eth/downloader: fix throttling test to be less timing dependentPéter Szilágyi2015-06-081-3/+7
* eth/downloader: fix another rebase errorPéter Szilágyi2015-06-081-2/+1
* eth/downloader: preallocate the block cachePéter Szilágyi2015-06-083-21/+14
* eth/downloader: fix merge compile errorPéter Szilágyi2015-06-081-1/+1
* eth/downloader: don't block hash deliveries while pulling blocksPéter Szilágyi2015-06-081-17/+14
* eth/downloader: update test for shitty travisPéter Szilágyi2015-06-081-1/+1
* eth/downloader: clean up and simplify the code a bitPéter Szilágyi2015-06-081-13/+3
* eth/downloader: short circuit sync if head hash is bannedPéter Szilágyi2015-06-081-0/+4
* eth/downloader: accumulating hash bans for reconnecting attackersPéter Szilágyi2015-06-082-5/+126
* eth/downloader: clean up tests and unused variablesPéter Szilágyi2015-06-082-120/+79
* Merge pull request #1189 from karalabe/downloader-polishesJeffrey Wilcke2015-06-053-19/+50
|\
| * eth/downloader: differentiate stale and nonexistent deliveriesPéter Szilágyi2015-06-052-19/+46
| * eth/downloader: log hard timeouts and reset capacityPéter Szilágyi2015-06-052-0/+4
* | eth, eth/downloader: fix #1098, elevate empty hash errors to peer dropsPéter Szilágyi2015-06-051-2/+2
|/
* eth/downloader: drop log entry from peer, it's covered alreadyPéter Szilágyi2015-06-041-5/+0
* eth/downloader: log after state updates, easier to debugPéter Szilágyi2015-06-041-5/+3
* eth/downloader: fix #1178, don't request blocks beyond the cache boundsPéter Szilágyi2015-06-043-15/+35
* eth/downloader: demote peers if they exceed the soft limits at 1 blocks alreadyPéter Szilágyi2015-06-031-3/+8
* eth/downloader: add a basic block download congestion controlPéter Szilágyi2015-06-035-55/+67
* core, eth/downloader: expose the bad hashes, check in downloaderPéter Szilágyi2015-05-281-0/+16
* eth/downloader: silence "Added N blocks from..." if N == 0Péter Szilágyi2015-05-261-1/+1
* eth, eth/downloader: surface downloaded block origin, drop on errorPéter Szilágyi2015-05-263-14/+22
* Merge pull request #1064 from karalabe/downloader-attacksJeffrey Wilcke2015-05-223-21/+93
|\
| * eth, eth/downloader: remove duplicate consts, bump hash fetch to 2KPéter Szilágyi2015-05-213-6/+8
| * eth/downloader: circumvent a forged block chain with known parent attackPéter Szilágyi2015-05-212-13/+56
| * eth/downloader: prevent a peer from dripping bad hashesPéter Szilágyi2015-05-212-9/+36
* | eth/downloader: fix test to it doesn't time out on a slow machinePéter Szilágyi2015-05-201-1/+1
|/
* eth/downloader: moved start eventobscuren2015-05-161-2/+2
* Merge pull request #996 from karalabe/fix-potential-crosscheck-raceJeffrey Wilcke2015-05-161-5/+7
|\
| * eth/downloader: circumvent download race between crosscheck and hashesPéter Szilágyi2015-05-161-5/+7
* | eth/downloader: fix #992, where tests may time out on a slow machinePéter Szilágyi2015-05-161-0/+6
|/
* eth/downloader: fix cancel channel double closePéter Szilágyi2015-05-161-3/+8
* eth/downloader: circumvent a fake blockchain attackPéter Szilágyi2015-05-152-27/+58
* eth/downloader: don't penalize for stale cross checksPéter Szilágyi2015-05-151-7/+17
* eth, eth/downloader: detect and handle madeup hash attacksPéter Szilágyi2015-05-153-42/+109
* eth/downloader: circumvent hash reordering attacksPéter Szilágyi2015-05-153-49/+88
* eth/downloader: check sync after failed attacksPéter Szilágyi2015-05-152-7/+23
* eth/downloader: add a test for detecting missing blocksPéter Szilágyi2015-05-152-8/+24
* eth, eth/downloader: prevent hash repeater attackPéter Szilágyi2015-05-153-13/+46
* eth/downloader: fixed testobscuren2015-05-151-1/+3
* eth, eth/downloader, miner: use download events to check miner startobscuren2015-05-152-1/+21
* Merge pull request #974 from karalabe/downloader-fix-unknown-parent-attackJeffrey Wilcke2015-05-143-34/+82
|\
| * eth/downloader: add a small additional check to the testPéter Szilágyi2015-05-141-0/+3
| * eth/downloader: remove a previous leftoverPéter Szilágyi2015-05-141-1/+0
| * eth, eth/downloader: remove parent verification from the downlaoderPéter Szilágyi2015-05-143-37/+13
| * eth, eth/downloader: handle a potential unknown parent attackPéter Szilágyi2015-05-142-25/+95
* | Merge pull request #950 from karalabe/downloader-cancel-syncJeffrey Wilcke2015-05-141-32/+37
|\ \
| * | eth/downloader: remove a redundant sync progress checkPéter Szilágyi2015-05-131-4/+0
| * | eth/downloader: add a user sync notificatonPéter Szilágyi2015-05-131-0/+5
| * | eth/downloader: sync the cancel channel during cancel tooPéter Szilágyi2015-05-131-21/+4
| * | eth/downloader: fix deliveries to check for sync cancelsPéter Szilágyi2015-05-131-10/+31
| |/
* / eth/downloader: fix nil panic caused by wrong variable usePéter Szilágyi2015-05-131-1/+1
|/
* eth/downloader: fix active peer shadowing, polish func namesPéter Szilágyi2015-05-132-22/+14
* 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
* 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
* 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
* eth/downloader: delete blocks from queueobscuren2015-04-301-2/+14
* eth, eth/downloader: remove bad peers from peer setobscuren2015-04-301-10/+8
* 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
* 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
* 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: 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
|\
| * 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
* | downloader: updated downloader and fixed issues with catch upobscuren2015-04-161-22/+48
|/
* downloader: added missing blocks catchup functionalityobscuren2015-04-134-133/+303
* downloader: return an error for peer.fetch and return chunk to queueobscuren2015-04-122-3/+16
* downloader: renamed chunks to queueobscuren2015-04-121-0/+0
* downloader: implemented new downloaderobscuren2015-04-124-0/+602