aboutsummaryrefslogtreecommitdiffstats
path: root/eth/block_pool.go
Commit message (Collapse)AuthorAgeFilesLines
* Docs & old code removedobscuren2015-02-031-2/+2
|
* upped pvobscuren2015-01-291-1/+1
|
* major blockpool changezelig2015-01-091-117/+350
| | | | | | | | | | | | - the spec says response to getBlockHashes(from, max) should return all hashes starting from PARENT of from. This required major changes and results in much hackier code. - Introduced a first round block request after peer introduces with current head, so that hashes can be linked to the head - peerInfo records currentBlockHash, currentBlock, parentHash and headSection - AddBlockHashes checks header section and creates the top node from the peerInfo of the best peer - AddBlock checks peerInfo and updates the block there rather than in a node - request further hashes once a section is created but then no more until the root block is found (so that we know when to stop asking) - in processSection, when root node is checked and receives a block, we need to check if the section has a parent known to blockchain or blockPool - when peers are switched, new peer launches a new requestHeadSection loop or activates its actual head section, i.e., the section for it currentBlockHash - all tests pass
* unclean shutdown for nowobscuren2015-01-061-1/+1
|
* Mergeobscuren2015-01-061-708/+699
|
* adapt blockpool/backend to use pow/ezp with pow.Block for VerifyPoW funczelig2014-12-151-8/+0
|
* blockpool rewritten , tests broken FIXMEzelig2014-12-151-0/+8
|
* initial commit for eth blockpool + testzelig2014-12-151-2/+3
|
* blockpool rewritten , tests broken FIXMEzelig2014-12-151-363/+863
|
* initial commit for eth blockpool + testzelig2014-12-151-0/+514