• zelig's avatar
    Idle too long error incorrectly triggered even when peer sending new blocks · 95038fc6
    zelig authored
    - 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
    95038fc6
blockpool.go 26.1 KB