aboutsummaryrefslogtreecommitdiffstats
path: root/blockpool/section.go
Commit message (Collapse)AuthorAgeFilesLines
* blockpool stability fixes:zelig2015-04-131-48/+43
| | | | | | | | | | | | - follow up locks and fix them - chainManager: call SetQueued for parentErr future blocks, uncomment TD checks, unskip test - make ErrIncorrectTD non-fatal to be forgiving to genuine mistaken nodes (temp) but demote them to guard against stuck best peers. - add purging to bounded nodeCache (config nodeCacheSize) - use nodeCache when creating blockpool entries and let non-best peers add blocks (performance boost) - minor error in addError - reduce idleBestPeerTimeout to 1 minute - correct status counts and unskip status passing status test - glogified logging
* fix deadlock issue in AddBlockzelig2015-04-091-1/+1
| | | | | | - add peer switch channel arg to activateChain - no peer locking within - proper locking in AddBlock - fixes deadlock issue - comment out TD check and skip incorrect TD test again for hotfix
* basic glogobscuren2015-04-041-1/+1
|
* Idle too long error incorrectly triggered even when peer sending new blockszelig2015-03-221-2/+2
| | | | | | | | | - fix status chain map uses common.Hash as key - add badPeers increment to IncorrectTD errors (forgotten) - signal head info update to head section process even if parent hash is not in pool (inserted), so that idle timer can be set to nil - suicideC -> peer.headInfoTimer - quit -> peer.bestIdleTimer - and they are properly set from within getBlockHashes and handleSection
* use common.Hash as pool key, no string conversion neededzelig2015-03-201-2/+2
|
* fix common.Hash conversionzelig2015-03-201-1/+1
|
* check and penalise td misreportingzelig2015-03-201-12/+21
| | | | | | - add ErrIncorrectTD - checkTD called after insertChain successful - fix tests, use blockPoolTester.tds to map block index to TD
* updated blockpoolobscuren2015-03-171-7/+8
|
* - fix peer disconnect by adding severity function to errszelig2015-03-031-27/+18
| | | | | | - improve logging - suicide -> removeChain - improved status BlocksInPool calculation
* major rewrite, reorg of blockpool + new featureszelig2015-02-251-0/+677
- blockpool moves to its own package - uses errs pkg for its own coded errors - publicly settable config of params (time intervals and batchsizes) - test helpers in subpackage - optional TD in blocks used now to update peers chain info - major improvement in algorithm - fix fragility and sync/parallelisation bugs - implement status for reporting on sync status (peers/hashes/blocks etc) - several tests added and further corner cases covered