• zelig's avatar
    fix blockpool deadlock · 42fb9652
    zelig authored
    - do not break from headsection on error
    [remove peer after protocol quit will close switchC, until then head block can arrive and block on channel while keeping peers lock causing a deadlock.]
    - more careful locking in AddBlock
    42fb9652
blockpool_test.go 15.4 KB