From 42fb9652f56321d2752ffe7773806df11f3087b8 Mon Sep 17 00:00:00 2001 From: zelig Date: Tue, 7 Apr 2015 18:53:05 +0100 Subject: fix blockpool deadlock - 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 --- blockpool/blockpool_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'blockpool/blockpool_test.go') diff --git a/blockpool/blockpool_test.go b/blockpool/blockpool_test.go index 9bcd72f04..b28c2abbf 100644 --- a/blockpool/blockpool_test.go +++ b/blockpool/blockpool_test.go @@ -7,6 +7,10 @@ import ( "github.com/ethereum/go-ethereum/blockpool/test" ) +func init() { + test.LogInit() +} + // using the mock framework in blockpool_util_test // we test various scenarios here -- cgit