From d05e39eb791ce15c8318229ce3f756488c100d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Mon, 6 Dec 2021 09:54:19 -0400 Subject: [PATCH 01/35] fix: remove race conditions on dot/network --- dot/network/block_announce_test.go | 15 +++++++++++++-- dot/network/service_test.go | 3 ++- dot/network/utils_test.go | 21 +++++++++++++++++++++ 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/dot/network/block_announce_test.go b/dot/network/block_announce_test.go index f81b984a24..67123f38a2 100644 --- a/dot/network/block_announce_test.go +++ b/dot/network/block_announce_test.go @@ -18,6 +18,8 @@ import ( ) func TestEncodeBlockAnnounce(t *testing.T) { + t.Parallel() + expected := common.MustHexToBytes("0x01000000000000000000000000000000000000000000000000000000000000003501020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000c0642414245340201000000ef55a50f00000000044241424549040118ca239392960473fe1bc65f94ee27d890a49c1b200c006ff5dcc525330ecc16770100000000000000b46f01874ce7abbb5220e8fd89bede0adad14c73039d91e28e881823433e723f0100000000000000d684d9176d6eb69887540c9a89fa6097adea82fc4b0ff26d1062b488f352e179010000000000000068195a71bdde49117a616424bdc60a1733e96acb1da5aeab5d268cf2a572e94101000000000000001a0575ef4ae24bdfd31f4cb5bd61239ae67c12d4e64ae51ac756044aa6ad8200010000000000000018168f2aad0081a25728961ee00627cfe35e39833c805016632bf7c14da5800901000000000000000000000000000000000000000000000000000000000000000000000000000000054241424501014625284883e564bc1e4063f5ea2b49846cdddaa3761d04f543b698c1c3ee935c40d25b869247c36c6b8a8cbbd7bb2768f560ab7c276df3c62df357a7e3b1ec8d00") //nolint:lll digestVdt := types.NewDigest() @@ -52,6 +54,8 @@ func TestEncodeBlockAnnounce(t *testing.T) { } func TestDecodeBlockAnnounce(t *testing.T) { + t.Parallel() + enc := common.MustHexToBytes("0x01000000000000000000000000000000000000000000000000000000000000003501020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000c0642414245340201000000ef55a50f00000000044241424549040118ca239392960473fe1bc65f94ee27d890a49c1b200c006ff5dcc525330ecc16770100000000000000b46f01874ce7abbb5220e8fd89bede0adad14c73039d91e28e881823433e723f0100000000000000d684d9176d6eb69887540c9a89fa6097adea82fc4b0ff26d1062b488f352e179010000000000000068195a71bdde49117a616424bdc60a1733e96acb1da5aeab5d268cf2a572e94101000000000000001a0575ef4ae24bdfd31f4cb5bd61239ae67c12d4e64ae51ac756044aa6ad8200010000000000000018168f2aad0081a25728961ee00627cfe35e39833c805016632bf7c14da5800901000000000000000000000000000000000000000000000000000000000000000000000000000000054241424501014625284883e564bc1e4063f5ea2b49846cdddaa3761d04f543b698c1c3ee935c40d25b869247c36c6b8a8cbbd7bb2768f560ab7c276df3c62df357a7e3b1ec8d00") //nolint:lll digestVdt := types.NewDigest() @@ -90,6 +94,8 @@ func TestDecodeBlockAnnounce(t *testing.T) { } func TestEncodeBlockAnnounceHandshake(t *testing.T) { + t.Parallel() + expected := common.MustHexToBytes("0x044d00000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000") //nolint:lll testHandshake := BlockAnnounceHandshake{ Roles: 4, @@ -104,6 +110,8 @@ func TestEncodeBlockAnnounceHandshake(t *testing.T) { } func TestDecodeBlockAnnounceHandshake(t *testing.T) { + t.Parallel() + enc := common.MustHexToBytes("0x044d00000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000") //nolint:lll expected := BlockAnnounceHandshake{ Roles: 4, @@ -119,11 +127,12 @@ func TestDecodeBlockAnnounceHandshake(t *testing.T) { } func TestHandleBlockAnnounceMessage(t *testing.T) { + t.Parallel() basePath := utils.NewTestBasePath(t, "nodeA") config := &Config{ BasePath: basePath, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -142,9 +151,11 @@ func TestHandleBlockAnnounceMessage(t *testing.T) { } func TestValidateBlockAnnounceHandshake(t *testing.T) { + t.Parallel() + configA := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/service_test.go b/dot/network/service_test.go index a33dd8dec9..d91e3c380b 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -60,7 +60,7 @@ func createTestService(t *testing.T, cfg *Config) (srvc *Service) { cfg = &Config{ BasePath: basePath, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, LogLvl: 4, @@ -105,6 +105,7 @@ func createTestService(t *testing.T, cfg *Config) (srvc *Service) { t.Cleanup(func() { srvc.Stop() + availablePorts.put(int(cfg.Port)) err = os.RemoveAll(cfg.BasePath) if err != nil { fmt.Printf("failed to remove path %s : %s\n", cfg.BasePath, err) diff --git a/dot/network/utils_test.go b/dot/network/utils_test.go index 047c491dca..b43e36c41d 100644 --- a/dot/network/utils_test.go +++ b/dot/network/utils_test.go @@ -11,6 +11,27 @@ import ( "github.com/stretchr/testify/require" ) +const portsAmount = 7100 + +type portsQueue chan int + +func (p *portsQueue) get() int { + return <-*p +} + +func (p *portsQueue) put(port int) { + *p <- port +} + +var availablePorts portsQueue + +func init() { + availablePorts = make(portsQueue, portsAmount) + for port := 7001; port <= portsAmount; port++ { + availablePorts <- port + } +} + // list of IPFS peers, for testing only var TestPeers = []string{ "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", From 0611f9220e9e856f11ad0607fa1af69d9076c8eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Mon, 6 Dec 2021 17:35:26 -0400 Subject: [PATCH 02/35] chore: use available ports queue and update all test to call t.Parallel() --- dot/network/config_test.go | 36 ++----- dot/network/connmgr_test.go | 34 ++++-- dot/network/discovery_test.go | 24 +++-- dot/network/gossip_test.go | 22 ++-- dot/network/host_test.go | 148 +++++++++++++------------ dot/network/light_test.go | 8 +- dot/network/mdns_test.go | 25 ++--- dot/network/message_cache_test.go | 5 +- dot/network/message_test.go | 166 ++++++++++++++++------------- dot/network/notifications_test.go | 30 ++++-- dot/network/service_test.go | 61 +++++++---- dot/network/stream_manager_test.go | 9 +- dot/network/sync_test.go | 7 +- dot/network/test_helpers.go | 31 +++--- dot/network/transaction_test.go | 6 +- lib/utils/test_utils.go | 26 ++--- 16 files changed, 358 insertions(+), 280 deletions(-) diff --git a/dot/network/config_test.go b/dot/network/config_test.go index cd2e2d9162..1a8655a032 100644 --- a/dot/network/config_test.go +++ b/dot/network/config_test.go @@ -5,7 +5,6 @@ package network import ( "io" - "reflect" "testing" "github.com/ChainSafe/gossamer/dot/state" @@ -17,8 +16,9 @@ import ( // test buildIdentity method func TestBuildIdentity(t *testing.T) { - testDir := utils.NewTestDir(t) - defer utils.RemoveTestDir(t) + t.Parallel() + + testDir := t.TempDir() configA := &Config{ logger: log.New(log.SetWriter(io.Discard)), @@ -26,9 +26,7 @@ func TestBuildIdentity(t *testing.T) { } err := configA.buildIdentity() - if err != nil { - t.Fatal(err) - } + require.NoError(t, err) configB := &Config{ logger: log.New(log.SetWriter(io.Discard)), @@ -36,13 +34,9 @@ func TestBuildIdentity(t *testing.T) { } err = configB.buildIdentity() - if err != nil { - t.Fatal(err) - } + require.NoError(t, err) - if !reflect.DeepEqual(configA.privateKey, configB.privateKey) { - t.Error("Private keys should match") - } + require.Equal(t, configA.privateKey, configB.privateKey) configC := &Config{ logger: log.New(log.SetWriter(io.Discard)), @@ -50,9 +44,7 @@ func TestBuildIdentity(t *testing.T) { } err = configC.buildIdentity() - if err != nil { - t.Fatal(err) - } + require.NoError(t, err) configD := &Config{ logger: log.New(log.SetWriter(io.Discard)), @@ -60,19 +52,15 @@ func TestBuildIdentity(t *testing.T) { } err = configD.buildIdentity() - if err != nil { - t.Fatal(err) - } + require.NoError(t, err) - if reflect.DeepEqual(configC.privateKey, configD.privateKey) { - t.Error("Private keys should not match") - } + require.NotEqual(t, configC.privateKey, configD.privateKey) } // test build configuration method func TestBuild(t *testing.T) { + t.Parallel() testBasePath := utils.NewTestBasePath(t, "node") - defer utils.RemoveTestDir(t) testBlockState := &state.BlockState{} testRandSeed := int64(1) @@ -85,9 +73,7 @@ func TestBuild(t *testing.T) { } err := cfg.build() - if err != nil { - t.Fatal(err) - } + require.NoError(t, err) require.Equal(t, testBlockState, cfg.BlockState) require.Equal(t, testBasePath, cfg.BasePath) diff --git a/dot/network/connmgr_test.go b/dot/network/connmgr_test.go index f67a99f77a..8c9ddf04db 100644 --- a/dot/network/connmgr_test.go +++ b/dot/network/connmgr_test.go @@ -17,13 +17,15 @@ import ( ) func TestMinPeers(t *testing.T) { + t.Parallel() + const min = 1 nodes := make([]*Service, 2) for i := range nodes { config := &Config{ BasePath: utils.NewTestBasePath(t, fmt.Sprintf("node%d", i)), - Port: 7000 + uint16(i), + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -36,7 +38,7 @@ func TestMinPeers(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: 7002, + Port: uint16(availablePorts.get()), Bootnodes: []string{addrs.String(), addrs1.String()}, NoMDNS: true, MinPeers: min, @@ -55,12 +57,15 @@ func TestMinPeers(t *testing.T) { } func TestMaxPeers(t *testing.T) { + t.Parallel() + const max = 3 nodes := make([]*Service, max+2) + for i := range nodes { config := &Config{ BasePath: utils.NewTestBasePath(t, fmt.Sprintf("node%d", i)), - Port: 7000 + uint16(i), + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, MaxPeers: max, @@ -89,6 +94,8 @@ func TestMaxPeers(t *testing.T) { } func TestProtectUnprotectPeer(t *testing.T) { + t.Parallel() + const ( min = 1 max = 4 @@ -125,24 +132,27 @@ func TestPersistentPeers(t *testing.T) { t.Skip() // this sometimes fails on CI } + t.Parallel() + configA := &Config{ BasePath: utils.NewTestBasePath(t, "node-a"), - Port: 7000, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } nodeA := createTestService(t, configA) - addrs := nodeA.host.multiaddrs() + configB := &Config{ BasePath: utils.NewTestBasePath(t, "node-b"), - Port: 7001, + Port: uint16(availablePorts.get()), NoMDNS: true, PersistentPeers: []string{addrs[0].String()}, } nodeB := createTestService(t, configB) time.Sleep(time.Millisecond * 600) + // B should have connected to A during bootstrap conns := nodeB.host.h.Network().ConnsToPeer(nodeA.host.id()) require.NotEqual(t, 0, len(conns)) @@ -161,10 +171,12 @@ func TestRemovePeer(t *testing.T) { t.Skip() // this sometimes fails on CI } + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -177,7 +189,7 @@ func TestRemovePeer(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), Bootnodes: []string{addrA.String()}, NoMDNS: true, } @@ -200,11 +212,13 @@ func TestSetReservedPeer(t *testing.T) { t.Skip() // this sometimes fails on CI } + t.Parallel() + nodes := make([]*Service, 3) for i := range nodes { config := &Config{ BasePath: utils.NewTestBasePath(t, fmt.Sprintf("node%d", i)), - Port: 7000 + uint16(i), + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -219,7 +233,7 @@ func TestSetReservedPeer(t *testing.T) { basePathD := utils.NewTestBasePath(t, "node3") config := &Config{ BasePath: basePathD, - Port: 7004, + Port: uint16(availablePorts.get()), NoMDNS: true, PersistentPeers: []string{addrA.String(), addrB.String()}, } diff --git a/dot/network/discovery_test.go b/dot/network/discovery_test.go index 7c9bc856e0..32d47ccaed 100644 --- a/dot/network/discovery_test.go +++ b/dot/network/discovery_test.go @@ -19,11 +19,12 @@ import ( func newTestDiscovery(t *testing.T, num int) []*discovery { t.Helper() + var discs []*discovery for i := 0; i < num; i++ { config := &Config{ BasePath: utils.NewTestBasePath(t, fmt.Sprintf("node%d", i)), - Port: uint16(7001 + i), + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -52,9 +53,7 @@ func connectNoSync(ctx context.Context, t *testing.T, a, b *discovery) { idB := b.h.ID() addrB := b.h.Peerstore().Addrs(idB) - if len(addrB) == 0 { - t.Fatal("peers setup incorrectly: no local address") - } + require.NotEqual(t, 0, len(addrB), "peers setup incorrectly: no local address") a.h.Peerstore().AddAddrs(idB, addrB, time.Minute) pi := peer.AddrInfo{ID: idB} @@ -65,6 +64,7 @@ func connectNoSync(ctx context.Context, t *testing.T, a, b *discovery) { time.Sleep(TestBackoffTimeout) err = a.h.Connect(ctx, pi) } + require.NoError(t, err) } @@ -74,6 +74,8 @@ func TestKadDHT(t *testing.T) { return } + t.Parallel() + // setup 3 nodes nodes := newTestDiscovery(t, 3) @@ -100,9 +102,11 @@ func TestKadDHT(t *testing.T) { } func TestBeginDiscovery(t *testing.T) { + t.Parallel() + configA := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -112,7 +116,7 @@ func TestBeginDiscovery(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -136,9 +140,11 @@ func TestBeginDiscovery(t *testing.T) { } func TestBeginDiscovery_ThreeNodes(t *testing.T) { + t.Parallel() + configA := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -148,7 +154,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -158,7 +164,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configC := &Config{ BasePath: utils.NewTestBasePath(t, "nodeC"), - Port: 7003, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/gossip_test.go b/dot/network/gossip_test.go index 2f2e27b594..7b72f1c6a5 100644 --- a/dot/network/gossip_test.go +++ b/dot/network/gossip_test.go @@ -4,9 +4,11 @@ package network import ( + "math/big" "testing" "time" + "github.com/ChainSafe/gossamer/dot/types" "github.com/ChainSafe/gossamer/lib/utils" "github.com/stretchr/testify/require" @@ -18,11 +20,12 @@ func TestGossip(t *testing.T) { t.Skip("skipping TestGossip; currently, nothing is gossiped") } + t.Parallel() basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -34,7 +37,7 @@ func TestGossip(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -55,7 +58,7 @@ func TestGossip(t *testing.T) { basePathC := utils.NewTestBasePath(t, "nodeC") configC := &Config{ BasePath: basePathC, - Port: 7003, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -81,12 +84,17 @@ func TestGossip(t *testing.T) { } require.NoError(t, err) - _, err = nodeA.host.send(addrInfoB.ID, "", testBlockAnnounceMessage) + announceMessage := &BlockAnnounceMessage{ + Number: big.NewInt(128 * 7), + Digest: types.NewDigest(), + } + + _, err = nodeA.host.send(addrInfoB.ID, "", announceMessage) require.NoError(t, err) time.Sleep(TestMessageTimeout) - if hasSeenB, ok := nodeB.gossip.seen.Load(testBlockAnnounceMessage.Hash()); !ok || hasSeenB.(bool) == false { + if hasSeenB, ok := nodeB.gossip.seen.Load(announceMessage.Hash()); !ok || hasSeenB.(bool) == false { t.Error( "node B did not receive block request message from node A", "\nreceived:", hasSeenB, @@ -94,7 +102,7 @@ func TestGossip(t *testing.T) { ) } - if hasSeenC, ok := nodeC.gossip.seen.Load(testBlockAnnounceMessage.Hash()); !ok || hasSeenC.(bool) == false { + if hasSeenC, ok := nodeC.gossip.seen.Load(announceMessage.Hash()); !ok || hasSeenC.(bool) == false { t.Error( "node C did not receive block request message from node B", "\nreceived:", hasSeenC, @@ -102,7 +110,7 @@ func TestGossip(t *testing.T) { ) } - if hasSeenA, ok := nodeA.gossip.seen.Load(testBlockAnnounceMessage.Hash()); !ok || hasSeenA.(bool) == false { + if hasSeenA, ok := nodeA.gossip.seen.Load(announceMessage.Hash()); !ok || hasSeenA.(bool) == false { t.Error( "node A did not receive block request message from node C", "\nreceived:", hasSeenA, diff --git a/dot/network/host_test.go b/dot/network/host_test.go index 484346a926..5d322e0b2b 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -18,9 +18,11 @@ import ( ) func TestExternalAddrs(t *testing.T) { + t.Parallel() + config := &Config{ BasePath: utils.NewTestBasePath(t, "node"), - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -41,10 +43,12 @@ func TestExternalAddrs(t *testing.T) { } func TestExternalAddrsPublicIP(t *testing.T) { + t.Parallel() + config := &Config{ BasePath: utils.NewTestBasePath(t, "node"), PublicIP: "10.0.5.2", - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -73,11 +77,13 @@ func TestExternalAddrsPublicIP(t *testing.T) { // test host connect method func TestConnect(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -89,7 +95,7 @@ func TestConnect(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -109,30 +115,19 @@ func TestConnect(t *testing.T) { peerCountA := nodeA.host.peerCount() peerCountB := nodeB.host.peerCount() - if peerCountA != 1 { - t.Error( - "node A does not have expected peer count", - "\nexpected:", 1, - "\nreceived:", peerCountA, - ) - } - - if peerCountB != 1 { - t.Error( - "node B does not have expected peer count", - "\nexpected:", 1, - "\nreceived:", peerCountB, - ) - } + require.Equal(t, 1, peerCountA) + require.Equal(t, 1, peerCountB) } // test host bootstrap method on start func TestBootstrap(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -146,7 +141,7 @@ func TestBootstrap(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), Bootnodes: []string{addrA.String()}, NoMDNS: true, } @@ -155,39 +150,26 @@ func TestBootstrap(t *testing.T) { nodeB.noGossip = true peerCountA := nodeA.host.peerCount() - peerCountB := nodeB.host.peerCount() - if peerCountA == 0 { - // check peerstore for disconnected peers peerCountA := len(nodeA.host.h.Peerstore().Peers()) - if peerCountA == 0 { - t.Error( - "node A does not have expected peer count", - "\nexpected:", "not zero", - "\nreceived:", peerCountA, - ) - } + require.NotZero(t, peerCountA) } + peerCountB := nodeB.host.peerCount() if peerCountB == 0 { - // check peerstore for disconnected peers peerCountB := len(nodeB.host.h.Peerstore().Peers()) - if peerCountB == 0 { - t.Error( - "node B does not have expected peer count", - "\nexpected:", "not zero", - "\nreceived:", peerCountB, - ) - } + require.NotZero(t, peerCountB) } } // test host send method func TestSend(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -199,7 +181,7 @@ func TestSend(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -218,7 +200,8 @@ func TestSend(t *testing.T) { } require.NoError(t, err) - _, err = nodeA.host.send(addrInfoB.ID, nodeB.host.protocolID, testBlockRequestMessage) + testBlockReqMessage := NewTestBlockRequestMessage(t) + _, err = nodeA.host.send(addrInfoB.ID, nodeB.host.protocolID, testBlockReqMessage) require.NoError(t, err) time.Sleep(TestMessageTimeout) @@ -226,15 +209,17 @@ func TestSend(t *testing.T) { msg, ok := handler.messages[nodeA.host.id()] require.True(t, ok) require.Equal(t, 1, len(msg)) - require.Equal(t, testBlockRequestMessage, msg[0]) + require.Equal(t, testBlockReqMessage, msg[0]) } // test host send method with existing stream func TestExistingStream(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -248,7 +233,7 @@ func TestExistingStream(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -267,36 +252,40 @@ func TestExistingStream(t *testing.T) { } require.NoError(t, err) + testBlockReqMessage := NewTestBlockRequestMessage(t) + // node A opens the stream to send the first message - stream, err := nodeA.host.send(addrInfoB.ID, nodeB.host.protocolID, testBlockRequestMessage) + stream, err := nodeA.host.send(addrInfoB.ID, nodeB.host.protocolID, testBlockReqMessage) require.NoError(t, err) time.Sleep(TestMessageTimeout) require.NotNil(t, handlerB.messages[nodeA.host.id()], "node B timeout waiting for message from node A") // node A uses the stream to send a second message - err = nodeA.host.writeToStream(stream, testBlockRequestMessage) + err = nodeA.host.writeToStream(stream, testBlockReqMessage) require.NoError(t, err) require.NotNil(t, handlerB.messages[nodeA.host.id()], "node B timeout waiting for message from node A") // node B opens the stream to send the first message - stream, err = nodeB.host.send(addrInfoA.ID, nodeB.host.protocolID, testBlockRequestMessage) + stream, err = nodeB.host.send(addrInfoA.ID, nodeB.host.protocolID, testBlockReqMessage) require.NoError(t, err) time.Sleep(TestMessageTimeout) require.NotNil(t, handlerA.messages[nodeB.host.id()], "node A timeout waiting for message from node B") // node B uses the stream to send a second message - err = nodeB.host.writeToStream(stream, testBlockRequestMessage) + err = nodeB.host.writeToStream(stream, testBlockReqMessage) require.NoError(t, err) require.NotNil(t, handlerA.messages[nodeB.host.id()], "node A timeout waiting for message from node B") } func TestStreamCloseMetadataCleanup(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -309,7 +298,7 @@ func TestStreamCloseMetadataCleanup(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -328,9 +317,14 @@ func TestStreamCloseMetadataCleanup(t *testing.T) { } require.NoError(t, err) + const ( + roles byte = 4 + bestBlockNumber uint32 = 77 + ) + testHandshake := &BlockAnnounceHandshake{ - Roles: 4, - BestBlockNumber: 77, + Roles: roles, + BestBlockNumber: bestBlockNumber, BestBlockHash: common.Hash{1}, GenesisHash: nodeB.blockState.GenesisHash(), } @@ -363,10 +357,12 @@ func TestStreamCloseMetadataCleanup(t *testing.T) { } func Test_PeerSupportsProtocol(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -376,7 +372,7 @@ func Test_PeerSupportsProtocol(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -427,10 +423,12 @@ func Test_PeerSupportsProtocol(t *testing.T) { } func Test_AddReservedPeers(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -441,7 +439,7 @@ func Test_AddReservedPeers(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -459,10 +457,12 @@ func Test_AddReservedPeers(t *testing.T) { } func Test_RemoveReservedPeers(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -473,7 +473,7 @@ func Test_RemoveReservedPeers(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -499,15 +499,17 @@ func Test_RemoveReservedPeers(t *testing.T) { isProtected := nodeA.host.h.ConnManager().IsProtected(nodeB.host.addrInfo().ID, "") require.False(t, isProtected) - err = nodeA.host.removeReservedPeers("failing peer ID") + err = nodeA.host.removeReservedPeers("unknown_perr_id") require.Error(t, err) } func TestStreamCloseEOF(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -519,7 +521,7 @@ func TestStreamCloseEOF(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -539,7 +541,9 @@ func TestStreamCloseEOF(t *testing.T) { } require.NoError(t, err) - stream, err := nodeA.host.send(addrInfoB.ID, nodeB.host.protocolID, testBlockRequestMessage) + testBlockReqMessage := NewTestBlockRequestMessage(t) + + stream, err := nodeA.host.send(addrInfoB.ID, nodeB.host.protocolID, testBlockReqMessage) require.NoError(t, err) require.False(t, handler.exit) @@ -553,10 +557,12 @@ func TestStreamCloseEOF(t *testing.T) { // Test to check the nodes connection by peer set manager func TestPeerConnect(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -570,7 +576,7 @@ func TestPeerConnect(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -592,11 +598,13 @@ func TestPeerConnect(t *testing.T) { // Test to check banned peer disconnection by peer set manager func TestBannedPeer(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -610,7 +618,7 @@ func TestBannedPeer(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -647,11 +655,13 @@ func TestBannedPeer(t *testing.T) { // Test to check reputation updated by peer set manager func TestPeerReputation(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -665,7 +675,7 @@ func TestPeerReputation(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, MinPeers: 1, diff --git a/dot/network/light_test.go b/dot/network/light_test.go index 313166760e..fc71b08788 100644 --- a/dot/network/light_test.go +++ b/dot/network/light_test.go @@ -49,6 +49,8 @@ func TestEncodeLightResponse(t *testing.T) { } func TestDecodeLightMessage(t *testing.T) { + t.Parallel() + s := &Service{ lightRequest: make(map[peer.ID]struct{}), } @@ -85,9 +87,11 @@ func TestDecodeLightMessage(t *testing.T) { } func TestHandleLightMessage_Response(t *testing.T) { + t.Parallel() + config := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -95,7 +99,7 @@ func TestHandleLightMessage_Response(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/mdns_test.go b/dot/network/mdns_test.go index e63bdf6404..5065314b99 100644 --- a/dot/network/mdns_test.go +++ b/dot/network/mdns_test.go @@ -8,6 +8,7 @@ import ( "time" "github.com/ChainSafe/gossamer/lib/utils" + "github.com/stretchr/testify/require" ) // wait time to discover and connect using mdns discovery @@ -15,28 +16,28 @@ var TestMDNSTimeout = time.Second // test mdns discovery service (discovers and connects) func TestMDNS(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, } nodeA := createTestService(t, configA) - defer nodeA.Stop() nodeA.noGossip = true basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, } nodeB := createTestService(t, configB) - defer nodeB.Stop() nodeB.noGossip = true time.Sleep(TestMDNSTimeout) @@ -47,24 +48,12 @@ func TestMDNS(t *testing.T) { if peerCountA == 0 { // check peerstore for disconnected peers peerCountA := len(nodeA.host.h.Peerstore().Peers()) - if peerCountA == 0 { - t.Error( - "node A does not have expected peer count", - "\nexpected:", "not zero", - "\nreceived:", peerCountA, - ) - } + require.NotZero(t, peerCountA) } if peerCountB == 0 { // check peerstore for disconnected peers peerCountB := len(nodeB.host.h.Peerstore().Peers()) - if peerCountB == 0 { - t.Error( - "node B does not have expected peer count", - "\nexpected:", "not zero", - "\nreceived:", peerCountB, - ) - } + require.NotZero(t, peerCountB) } } diff --git a/dot/network/message_cache_test.go b/dot/network/message_cache_test.go index 347ed15967..56a1744220 100644 --- a/dot/network/message_cache_test.go +++ b/dot/network/message_cache_test.go @@ -16,6 +16,8 @@ import ( ) func TestMessageCache(t *testing.T) { + t.Parallel() + cacheSize := 64 << 20 // 64 MB msgCache, err := newMessageCache(ristretto.Config{ NumCounters: int64(float64(cacheSize) * 0.05 * 2), @@ -45,7 +47,6 @@ func TestMessageCache(t *testing.T) { ok = msgCache.exists(peerID, msg) require.True(t, ok) - // TODO: Cache has issues with timeout. https://discuss.dgraph.io/t/setwithttl-doesnt-work/14192 time.Sleep(3 * time.Second) ok = msgCache.exists(peerID, msg) @@ -53,6 +54,8 @@ func TestMessageCache(t *testing.T) { } func TestMessageCacheError(t *testing.T) { + t.Parallel() + cacheSize := 64 << 20 // 64 MB msgCache, err := newMessageCache(ristretto.Config{ NumCounters: int64(float64(cacheSize) * 0.05 * 2), diff --git a/dot/network/message_test.go b/dot/network/message_test.go index efa5d3dc07..e1c84ebb4f 100644 --- a/dot/network/message_test.go +++ b/dot/network/message_test.go @@ -5,7 +5,9 @@ package network import ( "encoding/hex" + "fmt" "math/big" + "regexp" "testing" "github.com/ChainSafe/gossamer/dot/types" @@ -16,17 +18,13 @@ import ( ) func TestEncodeBlockRequestMessage(t *testing.T) { - expected, err := common.HexToBytes("0x08808080082220fd19d9ebac759c993fd2e05a1cff9e757d8741c2704c8682c15b5503496b6aa1280130011220dcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b") //nolint:lll - require.Nil(t, err) - - genesisHash, err := common.HexToBytes("0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b") - require.Nil(t, err) + t.Parallel() - endBlock, err := common.HexToHash("0xfd19d9ebac759c993fd2e05a1cff9e757d8741c2704c8682c15b5503496b6aa1") - require.NoError(t, err) - - one := uint32(1) + expected := common.MustHexToBytes("0x08808080082220fd19d9ebac759c993fd2e05a1cff9e757d8741c2704c8682c15b5503496b6aa1280130011220dcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b") //nolint:lll + genesisHash := common.MustHexToBytes("0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b") + endBlock := common.MustHexToHash("0xfd19d9ebac759c993fd2e05a1cff9e757d8741c2704c8682c15b5503496b6aa1") + var one uint32 = 1 bm := &BlockRequestMessage{ RequestedData: 1, StartingBlock: *variadic.NewUint64OrHashFromBytes(append([]byte{0}, genesisHash...)), @@ -47,13 +45,12 @@ func TestEncodeBlockRequestMessage(t *testing.T) { } func TestEncodeBlockRequestMessage_BlockHash(t *testing.T) { - genesisHash, err := common.HexToBytes("0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b") - require.Nil(t, err) + t.Parallel() - endBlock, err := common.HexToHash("0xfd19d9ebac759c993fd2e05a1cff9e757d8741c2704c8682c15b5503496b6aa1") - require.NoError(t, err) + genesisHash := common.MustHexToBytes("0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b") + endBlock := common.MustHexToHash("0xfd19d9ebac759c993fd2e05a1cff9e757d8741c2704c8682c15b5503496b6aa1") - one := uint32(1) + var one uint32 = 1 bm := &BlockRequestMessage{ RequestedData: 1, StartingBlock: *variadic.NewUint64OrHashFromBytes(append([]byte{0}, genesisHash...)), @@ -72,10 +69,11 @@ func TestEncodeBlockRequestMessage_BlockHash(t *testing.T) { } func TestEncodeBlockRequestMessage_BlockNumber(t *testing.T) { - endBlock, err := common.HexToHash("0xfd19d9ebac759c993fd2e05a1cff9e757d8741c2704c8682c15b5503496b6aa1") - require.NoError(t, err) + t.Parallel() + + endBlock := common.MustHexToHash("0xfd19d9ebac759c993fd2e05a1cff9e757d8741c2704c8682c15b5503496b6aa1") - one := uint32(1) + var one uint32 = 1 bm := &BlockRequestMessage{ RequestedData: 1, StartingBlock: *variadic.NewUint64OrHashFromBytes([]byte{1, 1}), @@ -94,8 +92,9 @@ func TestEncodeBlockRequestMessage_BlockNumber(t *testing.T) { } func TestBlockRequestString(t *testing.T) { - genesisHash, err := common.HexToBytes("0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b") - require.Nil(t, err) + t.Parallel() + + genesisHash := common.MustHexToBytes("0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b") bm := &BlockRequestMessage{ RequestedData: 1, @@ -105,12 +104,18 @@ func TestBlockRequestString(t *testing.T) { Max: nil, } - _ = bm.String() + var blockRequestStringRegex = regexp.MustCompile( + `^\ABlockRequestMessage RequestedData=[0-9]* StartingBlock={[\[0-9(\s?)]+\]} EndBlockHash=0x[0-9]+ Direction=[0-9]* Max=[0-9]*\z$`) + + fmt.Println(bm.String()) + match := blockRequestStringRegex.MatchString(bm.String()) + require.True(t, match) } func TestEncodeBlockRequestMessage_NoOptionals(t *testing.T) { - genesisHash, err := common.HexToBytes("0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b") - require.Nil(t, err) + t.Parallel() + + genesisHash := common.MustHexToBytes("0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b") bm := &BlockRequestMessage{ RequestedData: 1, @@ -130,6 +135,8 @@ func TestEncodeBlockRequestMessage_NoOptionals(t *testing.T) { } func TestEncodeBlockResponseMessage_Empty(t *testing.T) { + t.Parallel() + bd := types.NewEmptyBlockData() bd.Header = types.NewEmptyHeader() bd.Header.Hash() @@ -160,12 +167,15 @@ func TestEncodeBlockResponseMessage_Empty(t *testing.T) { } func TestEncodeBlockResponseMessage_WithBody(t *testing.T) { + t.Parallel() + hash := common.NewHash([]byte{0}) testHash := common.NewHash([]byte{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf}) + header, err := types.NewHeader(testHash, testHash, testHash, big.NewInt(1), types.NewDigest()) require.NoError(t, err) @@ -208,6 +218,8 @@ func TestEncodeBlockResponseMessage_WithBody(t *testing.T) { } func TestEncodeBlockResponseMessage_WithAll(t *testing.T) { + t.Parallel() + exp := common.MustHexToBytes("0x0aa2010a2000000000000000000000000000000000000000000000000000000000000000001262000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f04000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f001a0510010305071a040c0901021a040c0304052201012a0102320103") //nolint:lll hash := common.NewHash([]byte{0}) testHash := common.NewHash([]byte{ @@ -258,26 +270,26 @@ func TestEncodeBlockResponseMessage_WithAll(t *testing.T) { } func TestEncodeBlockAnnounceMessage(t *testing.T) { - // this value is a concatenation of: - // ParentHash: Hash: 0x4545454545454545454545454545454545454545454545454545454545454545 - // Number: *big.Int // block number: 1 - // StateRoot: Hash: 0xb3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe0 - // ExtrinsicsRoot: Hash: 0x03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314 - // Digest: []byte - - //nolint:lll - // mtparenthash bnstateroot extrinsicsroot di - expected, err := common.HexToBytes("0x454545454545454545454545454545454545454545454545454545454545454504b3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe003170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c1113140000") //nolint:lll - require.Nil(t, err) + /* this value is a concatenation of: + * ParentHash: Hash: 0x4545454545454545454545454545454545454545454545454545454545454545 + * Number: *big.Int // block number: 1 + * StateRoot: Hash: 0xb3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe0 + * ExtrinsicsRoot: Hash: 0x03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314 + * Digest: []byte - parentHash, err := common.HexToHash("0x4545454545454545454545454545454545454545454545454545454545454545") - require.Nil(t, err) + * nolint:lll + * mtparenthash bnstateroot extrinsicsroot di + */ - stateRoot, err := common.HexToHash("0xb3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe0") - require.Nil(t, err) + t.Parallel() - extrinsicsRoot, err := common.HexToHash("0x03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314") - require.Nil(t, err) + expected := common.MustHexToBytes("0x454545454545454545454545454545454545454545454545454545454545454504b3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe003170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c1113140000") //nolint:lll + + parentHash := common.MustHexToHash("0x4545454545454545454545454545454545454545454545454545454545454545") + + stateRoot := common.MustHexToHash("0xb3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe0") + + extrinsicsRoot := common.MustHexToHash("0x03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314") bhm := &BlockAnnounceMessage{ ParentHash: parentHash, @@ -293,24 +305,23 @@ func TestEncodeBlockAnnounceMessage(t *testing.T) { } func TestDecode_BlockAnnounceMessage(t *testing.T) { - announceMessage, err := common.HexToBytes("0x454545454545454545454545454545454545454545454545454545454545454504b3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe003170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c1113140000") //nolint:lll - require.Nil(t, err) + t.Parallel() + + announceMessage := common.MustHexToBytes("0x454545454545454545454545454545454545454545454545454545454545454504b3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe003170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c1113140000") //nolint:lll bhm := BlockAnnounceMessage{ Number: big.NewInt(0), Digest: types.NewDigest(), } - err = bhm.Decode(announceMessage) - require.Nil(t, err) - parentHash, err := common.HexToHash("0x4545454545454545454545454545454545454545454545454545454545454545") + err := bhm.Decode(announceMessage) require.Nil(t, err) - stateRoot, err := common.HexToHash("0xb3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe0") - require.Nil(t, err) + parentHash := common.MustHexToHash("0x4545454545454545454545454545454545454545454545454545454545454545") - extrinsicsRoot, err := common.HexToHash("0x03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314") - require.Nil(t, err) + stateRoot := common.MustHexToHash("0xb3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe0") + + extrinsicsRoot := common.MustHexToHash("0x03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314") expected := BlockAnnounceMessage{ ParentHash: parentHash, @@ -324,13 +335,13 @@ func TestDecode_BlockAnnounceMessage(t *testing.T) { } func TestEncodeTransactionMessageSingleExtrinsic(t *testing.T) { - // expected: - // 0x04 - Scale encoded count of Extrinsic array(count = 1) - // 0x10 - Scale encoded length of the first Extrinsic(len = 4) - // 0x01020304 - value of array extrinsic array - expected, err := common.HexToBytes("0x041001020304") - require.Nil(t, err) - + /* expected: + * 0x04 - Scale encoded count of Extrinsic array(count = 1) + * 0x10 - Scale encoded length of the first Extrinsic(len = 4) + * 0x01020304 - value of array extrinsic array + */ + t.Parallel() + expected := common.MustHexToBytes("0x041001020304") extrinsic := types.Extrinsic{0x01, 0x02, 0x03, 0x04} transactionMessage := TransactionMessage{Extrinsics: []types.Extrinsic{extrinsic}} @@ -342,14 +353,17 @@ func TestEncodeTransactionMessageSingleExtrinsic(t *testing.T) { } func TestEncodeTransactionMessageTwoExtrinsics(t *testing.T) { - // expected: - // 0x08 - Scale encoded count of Extrinsic array(count = 2) - // 0x0c - Scale encoded length of the first Extrinsic(len = 3) - // 0x010203 - Data of first Extrinsic - // 0x10 - Scale encoded length of the second Extrinsic(len = 4) - // 0x04050607 - Data of second Extrinsic - expected, err := common.HexToBytes("0x080c0102031004050607") - require.Nil(t, err) + /* expected: + * 0x08 - Scale encoded count of Extrinsic array(count = 2) + * 0x0c - Scale encoded length of the first Extrinsic(len = 3) + * 0x010203 - Data of first Extrinsic + * 0x10 - Scale encoded length of the second Extrinsic(len = 4) + * 0x04050607 - Data of second Extrinsic + */ + + t.Parallel() + + expected := common.MustHexToBytes("0x080c0102031004050607") extrinsic1 := types.Extrinsic{0x01, 0x02, 0x03} extrinsic2 := types.Extrinsic{0x04, 0x05, 0x06, 0x07} @@ -363,11 +377,13 @@ func TestEncodeTransactionMessageTwoExtrinsics(t *testing.T) { } func TestDecodeTransactionMessageOneExtrinsic(t *testing.T) { - originalMessage, err := common.HexToBytes("0x041001020304") // (without message type byte prepended) - require.Nil(t, err) + t.Parallel() + + // (without message type byte prepended) + originalMessage := common.MustHexToBytes("0x041001020304") decodedMessage := new(TransactionMessage) - err = decodedMessage.Decode(originalMessage) + err := decodedMessage.Decode(originalMessage) require.Nil(t, err) extrinsic := types.Extrinsic{0x01, 0x02, 0x03, 0x04} @@ -378,7 +394,10 @@ func TestDecodeTransactionMessageOneExtrinsic(t *testing.T) { } func TestDecodeTransactionMessageTwoExtrinsics(t *testing.T) { - originalMessage, err := common.HexToBytes("0x080c0102031004050607") // (without message type byte prepended) + t.Parallel() + + // (without message type byte prepended) + originalMessage, err := common.HexToBytes("0x080c0102031004050607") require.Nil(t, err) decodedMessage := new(TransactionMessage) @@ -393,17 +412,18 @@ func TestDecodeTransactionMessageTwoExtrinsics(t *testing.T) { } func TestDecodeConsensusMessage(t *testing.T) { - testData := "03100405" - msg := "0x" + testData + t.Parallel() - encMsg, err := common.HexToBytes(msg) - require.Nil(t, err) + const testData = "0x03100405" + + encMsg := common.MustHexToBytes(testData) m := new(ConsensusMessage) - err = m.Decode(encMsg) + + err := m.Decode(encMsg) require.Nil(t, err) - out, err := hex.DecodeString(testData) + out, err := hex.DecodeString(testData[2:]) require.Nil(t, err) expected := &ConsensusMessage{ diff --git a/dot/network/notifications_test.go b/dot/network/notifications_test.go index e0d7b4fc77..20693b66ab 100644 --- a/dot/network/notifications_test.go +++ b/dot/network/notifications_test.go @@ -22,11 +22,13 @@ import ( ) func TestCreateDecoder_BlockAnnounce(t *testing.T) { + t.Parallel() + basePath := utils.NewTestBasePath(t, "nodeA") config := &Config{ BasePath: basePath, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -84,11 +86,13 @@ func TestCreateDecoder_BlockAnnounce(t *testing.T) { } func TestCreateNotificationsMessageHandler_BlockAnnounce(t *testing.T) { + t.Parallel() + basePath := utils.NewTestBasePath(t, "nodeA") config := &Config{ BasePath: basePath, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -97,7 +101,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounce(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -145,9 +149,11 @@ func TestCreateNotificationsMessageHandler_BlockAnnounce(t *testing.T) { } func TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(t *testing.T) { + t.Parallel() + config := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -166,7 +172,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(t *testing.T) configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -222,10 +228,12 @@ func TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(t *testing.T) } func Test_HandshakeTimeout(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -236,7 +244,7 @@ func Test_HandshakeTimeout(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), RandSeed: 2, NoBootstrap: true, NoMDNS: true, @@ -302,11 +310,13 @@ func Test_HandshakeTimeout(t *testing.T) { } func TestCreateNotificationsMessageHandler_HandleTransaction(t *testing.T) { + t.Parallel() + const batchSize = 5 basePath := utils.NewTestBasePath(t, "nodeA") config := &Config{ BasePath: basePath, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, batchSize: batchSize, @@ -316,7 +326,7 @@ func TestCreateNotificationsMessageHandler_HandleTransaction(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -410,5 +420,7 @@ func TestCreateNotificationsMessageHandler_HandleTransaction(t *testing.T) { } func TestBlockAnnounceHandshakeSize(t *testing.T) { + t.Parallel() + require.Equal(t, unsafe.Sizeof(BlockAnnounceHandshake{}), reflect.TypeOf(BlockAnnounceHandshake{}).Size()) } diff --git a/dot/network/service_test.go b/dot/network/service_test.go index d91e3c380b..981ee19fe2 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -6,6 +6,7 @@ package network import ( "context" "fmt" + "math/big" "os" "strings" "testing" @@ -14,6 +15,7 @@ import ( mock "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" + "github.com/ChainSafe/gossamer/dot/types" "github.com/ChainSafe/gossamer/lib/utils" ) @@ -32,11 +34,12 @@ func failedToDial(err error) bool { func createServiceHelper(t *testing.T, num int) []*Service { t.Helper() + var srvcs []*Service for i := 0; i < num; i++ { config := &Config{ BasePath: utils.NewTestBasePath(t, fmt.Sprintf("node%d", i)), - Port: uint16(7001 + i), + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -106,10 +109,6 @@ func createTestService(t *testing.T, cfg *Config) (srvc *Service) { t.Cleanup(func() { srvc.Stop() availablePorts.put(int(cfg.Port)) - err = os.RemoveAll(cfg.BasePath) - if err != nil { - fmt.Printf("failed to remove path %s : %s\n", cfg.BasePath, err) - } }) return srvc } @@ -128,34 +127,36 @@ func TestMain(m *testing.M) { // test network service starts func TestStartService(t *testing.T) { + t.Parallel() + node := createTestService(t, nil) - node.Stop() + require.NoError(t, node.Stop()) } // test broacast messages from core service func TestBroadcastMessages(t *testing.T) { + t.Parallel() + basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } nodeA := createTestService(t, configA) - defer nodeA.Stop() nodeA.noGossip = true basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } nodeB := createTestService(t, configB) - defer nodeB.Stop() nodeB.noGossip = true handler := newTestStreamHandler(testBlockAnnounceHandshakeDecoder) nodeB.host.registerStreamHandler(nodeB.host.protocolID+blockAnnounceID, handler.handleStream) @@ -169,37 +170,42 @@ func TestBroadcastMessages(t *testing.T) { } require.NoError(t, err) + anounceMessage := &BlockAnnounceMessage{ + Number: big.NewInt(128 * 7), + Digest: types.NewDigest(), + } + // simulate message sent from core service - nodeA.GossipMessage(testBlockAnnounceMessage) + nodeA.GossipMessage(anounceMessage) time.Sleep(time.Second * 2) require.NotNil(t, handler.messages[nodeA.host.id()]) } func TestBroadcastDuplicateMessage(t *testing.T) { + t.Parallel() + msgCacheTTL = 2 * time.Second basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } nodeA := createTestService(t, configA) - defer nodeA.Stop() nodeA.noGossip = true basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } nodeB := createTestService(t, configB) - defer nodeB.Stop() nodeB.noGossip = true handler := newTestStreamHandler(testBlockAnnounceHandshakeDecoder) @@ -225,9 +231,14 @@ func TestBroadcastDuplicateMessage(t *testing.T) { stream: stream, }) + announceMessage := &BlockAnnounceMessage{ + Number: big.NewInt(128 * 7), + Digest: types.NewDigest(), + } + // Only one message will be sent. for i := 0; i < 5; i++ { - nodeA.GossipMessage(testBlockAnnounceMessage) + nodeA.GossipMessage(announceMessage) time.Sleep(time.Millisecond * 10) } @@ -238,13 +249,15 @@ func TestBroadcastDuplicateMessage(t *testing.T) { // All 5 message will be sent since cache is disabled. for i := 0; i < 5; i++ { - nodeA.GossipMessage(testBlockAnnounceMessage) + nodeA.GossipMessage(announceMessage) time.Sleep(time.Millisecond * 10) } require.Equal(t, 6, len(handler.messages[nodeA.host.id()])) } func TestService_NodeRoles(t *testing.T) { + t.Parallel() + basePath := utils.NewTestBasePath(t, "node") cfg := &Config{ BasePath: basePath, @@ -257,10 +270,12 @@ func TestService_NodeRoles(t *testing.T) { } func TestService_Health(t *testing.T) { + t.Parallel() + basePath := utils.NewTestBasePath(t, "nodeA") config := &Config{ BasePath: basePath, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -280,6 +295,8 @@ func TestService_Health(t *testing.T) { } func TestPersistPeerStore(t *testing.T) { + t.Parallel() + nodes := createServiceHelper(t, 2) nodeA := nodes[0] nodeB := nodes[1] @@ -304,9 +321,11 @@ func TestPersistPeerStore(t *testing.T) { } func TestHandleConn(t *testing.T) { + t.Parallel() + configA := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -315,7 +334,7 @@ func TestHandleConn(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: 7002, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, } @@ -332,6 +351,8 @@ func TestHandleConn(t *testing.T) { } func TestSerivceIsMajorSyncMetrics(t *testing.T) { + t.Parallel() + mocksyncer := new(MockSyncer) node := &Service{ diff --git a/dot/network/stream_manager_test.go b/dot/network/stream_manager_test.go index da231606d4..3fe72f8e84 100644 --- a/dot/network/stream_manager_test.go +++ b/dot/network/stream_manager_test.go @@ -19,6 +19,8 @@ import ( ) func setupStreamManagerTest(t *testing.T) (context.Context, []libp2phost.Host, []*streamManager) { + t.Helper() + ctx, cancel := context.WithCancel(context.Background()) cleanupStreamInterval = time.Millisecond * 500 @@ -30,8 +32,9 @@ func setupStreamManagerTest(t *testing.T) (context.Context, []libp2phost.Host, [ smA := newStreamManager(ctx) smB := newStreamManager(ctx) - portA := 7001 - portB := 7002 + portA := availablePorts.get() + portB := availablePorts.get() + addrA, err := ma.NewMultiaddr(fmt.Sprintf("/ip4/0.0.0.0/tcp/%d", portA)) require.NoError(t, err) addrB, err := ma.NewMultiaddr(fmt.Sprintf("/ip4/0.0.0.0/tcp/%d", portB)) @@ -61,6 +64,8 @@ func setupStreamManagerTest(t *testing.T) (context.Context, []libp2phost.Host, [ } func TestStreamManager(t *testing.T) { + t.Parallel() + ctx, hosts, sms := setupStreamManagerTest(t) ha, hb := hosts[0], hosts[1] smA, smB := sms[0], sms[1] diff --git a/dot/network/sync_test.go b/dot/network/sync_test.go index b2acd75e00..a8aa546ee3 100644 --- a/dot/network/sync_test.go +++ b/dot/network/sync_test.go @@ -11,8 +11,11 @@ import ( ) func TestDecodeSyncMessage(t *testing.T) { + t.Parallel() + testBlockReqMessage := NewTestBlockRequestMessage(t) + testPeer := peer.ID("noot") - reqEnc, err := testBlockRequestMessage.Encode() + reqEnc, err := testBlockReqMessage.Encode() require.NoError(t, err) msg, err := decodeSyncMessage(reqEnc, testPeer, true) @@ -20,5 +23,5 @@ func TestDecodeSyncMessage(t *testing.T) { req, ok := msg.(*BlockRequestMessage) require.True(t, ok) - require.Equal(t, testBlockRequestMessage, req) + require.Equal(t, testBlockReqMessage, req) } diff --git a/dot/network/test_helpers.go b/dot/network/test_helpers.go index 73c2fbcad8..ea77b4a0e6 100644 --- a/dot/network/test_helpers.go +++ b/dot/network/test_helpers.go @@ -7,6 +7,7 @@ import ( "errors" "io" "math/big" + "testing" "github.com/stretchr/testify/mock" @@ -134,7 +135,10 @@ func (s *testStreamHandler) handleStream(stream libp2pnetwork.Stream) { func (s *testStreamHandler) handleMessage(stream libp2pnetwork.Stream, msg Message) error { msgs := s.messages[stream.Conn().RemotePeer()] s.messages[stream.Conn().RemotePeer()] = append(msgs, msg) - return s.writeToStream(stream, testBlockAnnounceHandshake) + announceHandshake := &BlockAnnounceHandshake{ + BestBlockNumber: 0, + } + return s.writeToStream(stream, announceHandshake) } func (s *testStreamHandler) writeToStream(stream libp2pnetwork.Stream, msg Message) error { @@ -190,12 +194,16 @@ var starting, _ = variadic.NewUint64OrHash(uint64(1)) var one = uint32(1) -var testBlockRequestMessage = &BlockRequestMessage{ - RequestedData: RequestedDataHeader + RequestedDataBody + RequestedDataJustification, - StartingBlock: *starting, - EndBlockHash: &common.Hash{}, - Direction: 1, - Max: &one, +func NewTestBlockRequestMessage(t *testing.T) *BlockRequestMessage { + t.Helper() + + return &BlockRequestMessage{ + RequestedData: RequestedDataHeader + RequestedDataBody + RequestedDataJustification, + StartingBlock: *starting, + EndBlockHash: &common.Hash{}, + Direction: 1, + Max: &one, + } } func testBlockRequestMessageDecoder(in []byte, _ peer.ID, _ bool) (Message, error) { @@ -204,15 +212,6 @@ func testBlockRequestMessageDecoder(in []byte, _ peer.ID, _ bool) (Message, erro return msg, err } -var testBlockAnnounceMessage = &BlockAnnounceMessage{ - Number: big.NewInt(128 * 7), - Digest: types.NewDigest(), -} - -var testBlockAnnounceHandshake = &BlockAnnounceHandshake{ - BestBlockNumber: 0, -} - func testBlockAnnounceMessageDecoder(in []byte, _ peer.ID, _ bool) (Message, error) { msg := BlockAnnounceMessage{ Number: big.NewInt(0), diff --git a/dot/network/transaction_test.go b/dot/network/transaction_test.go index 49f0cbf4b6..f8b19aed4b 100644 --- a/dot/network/transaction_test.go +++ b/dot/network/transaction_test.go @@ -16,6 +16,8 @@ import ( ) func TestDecodeTransactionHandshake(t *testing.T) { + t.Parallel() + testHandshake := &transactionHandshake{} enc, err := testHandshake.Encode() @@ -27,6 +29,8 @@ func TestDecodeTransactionHandshake(t *testing.T) { } func TestHandleTransactionMessage(t *testing.T) { + t.Parallel() + basePath := utils.NewTestBasePath(t, "nodeA") mockhandler := &MockTransactionHandler{} mockhandler.On("HandleTransactionMessage", @@ -37,7 +41,7 @@ func TestHandleTransactionMessage(t *testing.T) { config := &Config{ BasePath: basePath, - Port: 7001, + Port: uint16(availablePorts.get()), NoBootstrap: true, NoMDNS: true, TransactionHandler: mockhandler, diff --git a/lib/utils/test_utils.go b/lib/utils/test_utils.go index ffabea7b99..a25afd33f4 100644 --- a/lib/utils/test_utils.go +++ b/lib/utils/test_utils.go @@ -8,6 +8,8 @@ import ( "os" "path" "testing" + + "github.com/stretchr/testify/require" ) // TestDir test data directory @@ -32,25 +34,17 @@ func NewTestDir(t *testing.T) string { // NewTestBasePath create new test data directory func NewTestBasePath(t *testing.T, name string) string { - testDir := path.Join(TestDir, t.Name()) - basePath := path.Join(testDir, name) - - err := os.Mkdir(TestDir, os.ModePerm) - if err != nil && !PathExists(TestDir) { - fmt.Println(fmt.Errorf("failed to create test directory: %s", err)) - } + t.Helper() - err = os.Mkdir(testDir, os.ModePerm) - if err != nil && !PathExists(testDir) { - fmt.Println(fmt.Errorf("failed to create test directory: %s", err)) - } + basepathTmp := path.Join(t.TempDir(), t.Name(), name) + // create the subdirectories all the subdirectories + // os.MkdirAll is equivalent to mkdir -p /dir/subdir1/subdir2 + err := os.MkdirAll(basepathTmp, os.ModePerm) - err = os.Mkdir(basePath, os.ModePerm) - if err != nil && !PathExists(basePath) { - fmt.Println(fmt.Errorf("failed to create test data directory: %s", err)) - } + require.NoError(t, err) + require.True(t, PathExists(basepathTmp)) - return basePath + return basepathTmp } // RemoveTestDir removes the test data directory From 1e03e39c806ffc1acda24176a6db519fc0f969f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Tue, 7 Dec 2021 09:10:49 -0400 Subject: [PATCH 03/35] chore: resolve data races on dot/network --- dot/network/host.go | 22 +- dot/network/mdns.go | 2 +- dot/network/service.go | 6 +- dot/peerset/peerset.go | 13 +- test.log | 2254 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 2286 insertions(+), 11 deletions(-) create mode 100644 test.log diff --git a/dot/network/host.go b/dot/network/host.go index 6662c48833..62334759f2 100644 --- a/dot/network/host.go +++ b/dot/network/host.go @@ -8,11 +8,11 @@ import ( "fmt" "net" "path" + "strings" "sync" "time" "github.com/ChainSafe/gossamer/dot/peerset" - "github.com/chyeh/pubip" "github.com/dgraph-io/ristretto" badger "github.com/ipfs/go-ds-badger2" "github.com/libp2p/go-libp2p" @@ -26,6 +26,8 @@ import ( ma "github.com/multiformats/go-multiaddr" ) +var publicIP string = "" + var privateCIDRs = []string{ "10.0.0.0/8", "172.16.0.0/12", @@ -40,6 +42,15 @@ const ( connectTimeout = time.Second * 5 ) +// func init() { +// ip, err := pubip.Get() +// if err != nil { +// logger.Errorf("failed to get public IP error: %v", err) +// } + +// publicIP = ip.String() +// } + // host wraps libp2p host with network host configuration and services type host struct { ctx context.Context @@ -74,12 +85,9 @@ func newHost(ctx context.Context, cfg *Config) (*host, error) { return nil, err } } else { - ip, err := pubip.Get() - if err != nil { - logger.Errorf("failed to get public IP error: %v", err) - } else { - logger.Debugf("got public IP", "IP", ip) - externalAddr, err = ma.NewMultiaddr(fmt.Sprintf("/ip4/%s/tcp/%d", ip, cfg.Port)) + if strings.TrimSpace(publicIP) != "" { + logger.Debugf("got public IP", "IP", publicIP) + externalAddr, err = ma.NewMultiaddr(fmt.Sprintf("/ip4/%s/tcp/%d", publicIP, cfg.Port)) if err != nil { return nil, err } diff --git a/dot/network/mdns.go b/dot/network/mdns.go index fc329218f1..b7943fa55a 100644 --- a/dot/network/mdns.go +++ b/dot/network/mdns.go @@ -33,7 +33,7 @@ type mdns struct { // newMDNS creates a new mDNS instance from the host func newMDNS(host *host) *mdns { return &mdns{ - logger: log.NewFromGlobal(log.AddContext("module", "mdns")), + logger: log.New(log.AddContext("module", "mdns")), host: host, } } diff --git a/dot/network/service.go b/dot/network/service.go index f6ad9d0727..19a186bd73 100644 --- a/dot/network/service.go +++ b/dot/network/service.go @@ -702,7 +702,11 @@ func (s *Service) startProcessingMsg() { select { case <-s.ctx.Done(): return - case msg := <-msgCh: + case msg, ok := <-msgCh: + if !ok { + return + } + s.processMessage(msg) } } diff --git a/dot/peerset/peerset.go b/dot/peerset/peerset.go index ac27b52c7b..7492cb617b 100644 --- a/dot/peerset/peerset.go +++ b/dot/peerset/peerset.go @@ -178,6 +178,7 @@ type PeerSet struct { nextPeriodicAllocSlots time.Duration // chan for receiving action request. actionQueue <-chan action + stopCh chan struct{} } // config is configuration of a single set. @@ -668,16 +669,24 @@ func (ps *PeerSet) disconnect(setIdx int, reason DropReason, peers ...peer.ID) e // start handles all the action for the peerSet. func (ps *PeerSet) start(aq chan action) { ps.actionQueue = aq + ps.resultMsgCh = make(chan Message, msgChanSize) go ps.doWork() } func (ps *PeerSet) doWork() { + ps.stopCh = make(chan struct{}) ticker := time.NewTicker(ps.nextPeriodicAllocSlots) - defer ticker.Stop() + + defer func() { + ticker.Stop() + close(ps.resultMsgCh) + }() for { select { + case <-ps.stopCh: + return case <-ticker.C: l := ps.peerState.getSetLength() for i := 0; i < l; i++ { @@ -724,5 +733,5 @@ func (ps *PeerSet) doWork() { } func (ps *PeerSet) stop() { - close(ps.resultMsgCh) + close(ps.stopCh) } diff --git a/test.log b/test.log new file mode 100644 index 0000000000..9ebd9dfd89 --- /dev/null +++ b/test.log @@ -0,0 +1,2254 @@ +=== RUN TestEncodeBlockAnnounce +=== PAUSE TestEncodeBlockAnnounce +=== RUN TestDecodeBlockAnnounce +=== PAUSE TestDecodeBlockAnnounce +=== RUN TestEncodeBlockAnnounceHandshake +=== PAUSE TestEncodeBlockAnnounceHandshake +=== RUN TestDecodeBlockAnnounceHandshake +=== PAUSE TestDecodeBlockAnnounceHandshake +=== RUN TestHandleBlockAnnounceMessage +=== PAUSE TestHandleBlockAnnounceMessage +=== RUN TestValidateBlockAnnounceHandshake +=== PAUSE TestValidateBlockAnnounceHandshake +=== RUN TestBuildIdentity +=== PAUSE TestBuildIdentity +=== RUN TestBuild +=== PAUSE TestBuild +=== RUN TestMinPeers +=== PAUSE TestMinPeers +=== RUN TestMaxPeers +=== PAUSE TestMaxPeers +=== RUN TestProtectUnprotectPeer +=== PAUSE TestProtectUnprotectPeer +=== RUN TestPersistentPeers +=== PAUSE TestPersistentPeers +=== RUN TestRemovePeer +=== PAUSE TestRemovePeer +=== RUN TestSetReservedPeer +=== PAUSE TestSetReservedPeer +=== RUN TestKadDHT +=== PAUSE TestKadDHT +=== RUN TestBeginDiscovery +=== PAUSE TestBeginDiscovery +=== RUN TestBeginDiscovery_ThreeNodes +=== PAUSE TestBeginDiscovery_ThreeNodes +=== RUN TestGossip +=== PAUSE TestGossip +=== RUN TestExternalAddrs +=== PAUSE TestExternalAddrs +=== RUN TestExternalAddrsPublicIP +=== PAUSE TestExternalAddrsPublicIP +=== RUN TestConnect +=== PAUSE TestConnect +=== RUN TestBootstrap +=== PAUSE TestBootstrap +=== RUN TestSend +=== PAUSE TestSend +=== RUN TestExistingStream +=== PAUSE TestExistingStream +=== RUN TestStreamCloseMetadataCleanup +=== PAUSE TestStreamCloseMetadataCleanup +=== RUN Test_PeerSupportsProtocol +=== PAUSE Test_PeerSupportsProtocol +=== RUN Test_AddReservedPeers +=== PAUSE Test_AddReservedPeers +=== RUN Test_RemoveReservedPeers +=== PAUSE Test_RemoveReservedPeers +=== RUN TestStreamCloseEOF +=== PAUSE TestStreamCloseEOF +=== RUN TestPeerConnect +=== PAUSE TestPeerConnect +=== RUN TestBannedPeer +=== PAUSE TestBannedPeer +=== RUN TestPeerReputation +=== PAUSE TestPeerReputation +=== RUN TestEncodeLightRequest +=== PAUSE TestEncodeLightRequest +=== RUN TestEncodeLightResponse +=== PAUSE TestEncodeLightResponse +=== RUN TestDecodeLightMessage +=== PAUSE TestDecodeLightMessage +=== RUN TestHandleLightMessage_Response +=== PAUSE TestHandleLightMessage_Response +=== RUN TestMDNS +=== PAUSE TestMDNS +=== RUN TestMessageCache +=== PAUSE TestMessageCache +=== RUN TestMessageCacheError +=== PAUSE TestMessageCacheError +=== RUN TestEncodeBlockRequestMessage +=== PAUSE TestEncodeBlockRequestMessage +=== RUN TestEncodeBlockRequestMessage_BlockHash +=== PAUSE TestEncodeBlockRequestMessage_BlockHash +=== RUN TestEncodeBlockRequestMessage_BlockNumber +=== PAUSE TestEncodeBlockRequestMessage_BlockNumber +=== RUN TestBlockRequestString +=== PAUSE TestBlockRequestString +=== RUN TestEncodeBlockRequestMessage_NoOptionals +=== PAUSE TestEncodeBlockRequestMessage_NoOptionals +=== RUN TestEncodeBlockResponseMessage_Empty +=== PAUSE TestEncodeBlockResponseMessage_Empty +=== RUN TestEncodeBlockResponseMessage_WithBody +=== PAUSE TestEncodeBlockResponseMessage_WithBody +=== RUN TestEncodeBlockResponseMessage_WithAll +=== PAUSE TestEncodeBlockResponseMessage_WithAll +=== RUN TestEncodeBlockAnnounceMessage +=== PAUSE TestEncodeBlockAnnounceMessage +=== RUN TestDecode_BlockAnnounceMessage +=== PAUSE TestDecode_BlockAnnounceMessage +=== RUN TestEncodeTransactionMessageSingleExtrinsic +=== PAUSE TestEncodeTransactionMessageSingleExtrinsic +=== RUN TestEncodeTransactionMessageTwoExtrinsics +=== PAUSE TestEncodeTransactionMessageTwoExtrinsics +=== RUN TestDecodeTransactionMessageOneExtrinsic +=== PAUSE TestDecodeTransactionMessageOneExtrinsic +=== RUN TestDecodeTransactionMessageTwoExtrinsics +=== PAUSE TestDecodeTransactionMessageTwoExtrinsics +=== RUN TestDecodeConsensusMessage +=== PAUSE TestDecodeConsensusMessage +=== RUN TestCreateDecoder_BlockAnnounce +=== PAUSE TestCreateDecoder_BlockAnnounce +=== RUN TestCreateNotificationsMessageHandler_BlockAnnounce +=== PAUSE TestCreateNotificationsMessageHandler_BlockAnnounce +=== RUN TestCreateNotificationsMessageHandler_BlockAnnounceHandshake +=== PAUSE TestCreateNotificationsMessageHandler_BlockAnnounceHandshake +=== RUN Test_HandshakeTimeout +=== PAUSE Test_HandshakeTimeout +=== RUN TestCreateNotificationsMessageHandler_HandleTransaction +=== PAUSE TestCreateNotificationsMessageHandler_HandleTransaction +=== RUN TestBlockAnnounceHandshakeSize +=== PAUSE TestBlockAnnounceHandshakeSize +=== RUN Test_sizedBufferPool +=== PAUSE Test_sizedBufferPool +=== RUN Test_sizedBufferPool_race +=== PAUSE Test_sizedBufferPool_race +=== RUN TestStartService +=== PAUSE TestStartService +=== RUN TestBroadcastMessages +=== PAUSE TestBroadcastMessages +=== RUN TestBroadcastDuplicateMessage +=== PAUSE TestBroadcastDuplicateMessage +=== RUN TestService_NodeRoles +=== PAUSE TestService_NodeRoles +=== RUN TestService_Health +=== PAUSE TestService_Health +=== RUN TestPersistPeerStore +=== PAUSE TestPersistPeerStore +=== RUN TestHandleConn +=== PAUSE TestHandleConn +=== RUN TestSerivceIsMajorSyncMetrics +=== PAUSE TestSerivceIsMajorSyncMetrics +=== RUN TestStreamManager +=== PAUSE TestStreamManager +=== RUN TestStreamManager_KeepStream + stream_manager_test.go:91: +--- SKIP: TestStreamManager_KeepStream (0.00s) +=== RUN TestDecodeSyncMessage +=== PAUSE TestDecodeSyncMessage +=== RUN TestDecodeTransactionHandshake +=== PAUSE TestDecodeTransactionHandshake +=== RUN TestHandleTransactionMessage +=== PAUSE TestHandleTransactionMessage +=== RUN TestStringToAddrInfo +--- PASS: TestStringToAddrInfo (0.00s) +=== RUN TestStringsToAddrInfos +--- PASS: TestStringsToAddrInfos (0.00s) +=== RUN TestGenerateKey +--- PASS: TestGenerateKey (0.01s) +=== RUN TestReadLEB128ToUint64 +--- PASS: TestReadLEB128ToUint64 (0.00s) +=== RUN TestInvalidLeb128 +--- PASS: TestInvalidLeb128 (0.00s) +=== CONT TestHandleBlockAnnounceMessage +=== CONT TestMessageCache +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce +=== CONT TestExternalAddrs +=== CONT Test_RemoveReservedPeers +=== CONT TestProtectUnprotectPeer +=== CONT TestBootstrap +=== CONT TestGossip +=== CONT TestBeginDiscovery +--- PASS: TestProtectUnprotectPeer (0.00s) +2021-12-06T17:45:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip3122330010/001/TestGossip/nodeA/node.key pkg=network +2021-12-06T17:45:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrs1708786389/001/TestExternalAddrs/node/node.key pkg=network +2021-12-06T17:45:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers2813187184/001/Test_RemoveReservedPeers/nodeA/node.key pkg=network +2021-12-06T17:45:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce3981515342/001/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeA/node.key pkg=network +objc[69995]: Attempt to use unknown class 0x7ff85f1a5500. +SIGABRT: abort +PC=0x7ff81d9e3dfe m=9 sigcode=0 + +goroutine 0 [idle]: +runtime: unknown pc 0x7ff81d9e3dfe +stack: frame={sp:0x20b2e1e58, fp:0x0} stack=[0x20b263338,0x20b2e2f38) +0x000000020b2e1d58: 0x0000000000000002 0x0000000000000002 +0x000000020b2e1d68: 0x00000000087c2000 0x00000000087c2400 +0x000000020b2e1d78: 0x0000000000000003 0x000000020b2e1de0 +0x000000020b2e1d88: 0x00007ff81d816639 0x0c9254b17699798d +0x000000020b2e1d98: 0x0000000000000003 0x0c9254b176990000 +0x000000020b2e1da8: 0x0000000000000030 0x0000000000000000 +0x000000020b2e1db8: 0x000000000000002d 0x000000000000002d +0x000000020b2e1dc8: 0x0000000000000000 0x00000000087c2000 +0x000000020b2e1dd8: 0x00007ff85f1b8000 0x000000020b2e1e10 +0x000000020b2e1de8: 0x00007ff81d816566 0x00007ff81d81652e +0x000000020b2e1df8: 0x000000000000002d 0x0000000000000001 +0x000000020b2e1e08: 0x00007ff85f1b8000 0x000000020b2e1e50 +0x000000020b2e1e18: 0x00007ff81d832ad6 0x000000000000002c +0x000000020b2e1e28: 0x000000000000002d 0x0000600003304000 +0x000000020b2e1e38: 0x0000000000000003 0x0000600002c00000 +0x000000020b2e1e48: 0x0000000000000000 0x000000020b2e1e80 +0x000000020b2e1e58: <0x00007ff81d9e5893 0x0000000000000000 +0x000000020b2e1e68: 0x000000200b2e1ec0 0x0000600002c00000 +0x000000020b2e1e78: 0x000000020b2e1ec0 0x0000600003304000 +0x000000020b2e1e88: 0x0000000000000003 0x0000000000000080 +0x000000020b2e1e98: 0x0000000000000001 0x000000020b2e1eb0 +0x000000020b2e1ea8: 0x00007ff81d9e5843 0x000000020b2e1ef0 +0x000000020b2e1eb8: 0x00007ff81d8b1cb2 0x0000600002c00080 +0x000000020b2e1ec8: 0x0000000000000000 0x0000600002c00000 +0x000000020b2e1ed8: 0x00007ffffffffff8 0x00007ff85f1a5500 +0x000000020b2e1ee8: 0x0000000080080001 0x000000020b2e1fd0 +0x000000020b2e1ef8: 0x00007ff81d8b1c40 0x0000003000000010 +0x000000020b2e1f08: 0x000000020b2e1fe0 0x000000020b2e1f20 +0x000000020b2e1f18: 0x0000000000000000 0x0000000000000000 +0x000000020b2e1f28: 0x00007ff85f1a5500 0x00007ff85f1a5500 +0x000000020b2e1f38: 0x0000000000000001 0x00000000ffffffff +0x000000020b2e1f48: 0x0000000000000000 0x0000000000000000 +runtime: unknown pc 0x7ff81d9e3dfe +stack: frame={sp:0x20b2e1e58, fp:0x0} stack=[0x20b263338,0x20b2e2f38) +0x000000020b2e1d58: 0x0000000000000002 0x0000000000000002 +0x000000020b2e1d68: 0x00000000087c2000 0x00000000087c2400 +0x000000020b2e1d78: 0x0000000000000003 0x000000020b2e1de0 +0x000000020b2e1d88: 0x00007ff81d816639 0x0c9254b17699798d +0x000000020b2e1d98: 0x0000000000000003 0x0c9254b176990000 +0x000000020b2e1da8: 0x0000000000000030 0x0000000000000000 +0x000000020b2e1db8: 0x000000000000002d 0x000000000000002d +0x000000020b2e1dc8: 0x0000000000000000 0x00000000087c2000 +0x000000020b2e1dd8: 0x00007ff85f1b8000 0x000000020b2e1e10 +0x000000020b2e1de8: 0x00007ff81d816566 0x00007ff81d81652e +0x000000020b2e1df8: 0x000000000000002d 0x0000000000000001 +0x000000020b2e1e08: 0x00007ff85f1b8000 0x000000020b2e1e50 +0x000000020b2e1e18: 0x00007ff81d832ad6 0x000000000000002c +0x000000020b2e1e28: 0x000000000000002d 0x0000600003304000 +0x000000020b2e1e38: 0x0000000000000003 0x0000600002c00000 +0x000000020b2e1e48: 0x0000000000000000 0x000000020b2e1e80 +0x000000020b2e1e58: <0x00007ff81d9e5893 0x0000000000000000 +0x000000020b2e1e68: 0x000000200b2e1ec0 0x0000600002c00000 +0x000000020b2e1e78: 0x000000020b2e1ec0 0x0000600003304000 +0x000000020b2e1e88: 0x0000000000000003 0x0000000000000080 +0x000000020b2e1e98: 0x0000000000000001 0x000000020b2e1eb0 +0x000000020b2e1ea8: 0x00007ff81d9e5843 0x000000020b2e1ef0 +0x000000020b2e1eb8: 0x00007ff81d8b1cb2 0x0000600002c00080 +0x000000020b2e1ec8: 0x0000000000000000 0x0000600002c00000 +0x000000020b2e1ed8: 0x00007ffffffffff8 0x00007ff85f1a5500 +0x000000020b2e1ee8: 0x0000000080080001 0x000000020b2e1fd0 +0x000000020b2e1ef8: 0x00007ff81d8b1c40 0x0000003000000010 +0x000000020b2e1f08: 0x000000020b2e1fe0 0x000000020b2e1f20 +0x000000020b2e1f18: 0x0000000000000000 0x0000000000000000 +0x000000020b2e1f28: 0x00007ff85f1a5500 0x00007ff85f1a5500 +0x000000020b2e1f38: 0x0000000000000001 0x00000000ffffffff +0x000000020b2e1f48: 0x0000000000000000 0x0000000000000000 + +goroutine 191 [syscall]: +runtime.cgocall(0x4ef10c0, 0xc000827ca0) + /usr/local/go/src/runtime/cgocall.go:156 +0x6e fp=0xc000827c78 sp=0xc000827c40 pc=0x400666e +net._C2func_getaddrinfo(0xc00081cc26, 0x0, 0xc000813d70, 0xc00012c428) + _cgo_gotypes.go:97 +0x8b fp=0xc000827ca0 sp=0xc000827c78 pc=0x42b8a4b +net.cgoLookupIPCNAME.func1({0xc00081cc26, 0xa, 0xc00081cc04}, 0x0, 0x5ec1da0) + /usr/local/go/src/net/cgo_unix.go:163 +0xb2 fp=0xc000827d10 sp=0xc000827ca0 pc=0x42bb712 +net.cgoLookupIPCNAME({0x51584a5, 0x3}, {0xc00081cc04, 0xc000130018}) + /usr/local/go/src/net/cgo_unix.go:163 +0x26e fp=0xc000827f10 sp=0xc000827d10 pc=0x42bac0e +net.cgoIPLookup(0x5ec1db0, {0x51584a5, 0x3}, {0xc00081cc04, 0x9}) + /usr/local/go/src/net/cgo_unix.go:220 +0x67 fp=0xc000827f80 sp=0xc000827f10 pc=0x42bb827 +net.cgoLookupIP·dwrap·22() + /usr/local/go/src/net/cgo_unix.go:230 +0x72 fp=0xc000827fe0 sp=0xc000827f80 pc=0x42bbed2 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc000827fe8 sp=0xc000827fe0 pc=0x406e821 +created by net.cgoLookupIP + /usr/local/go/src/net/cgo_unix.go:230 +0x1ba + +goroutine 1 [chan receive]: +testing.tRunner.func1() + /usr/local/go/src/testing/testing.go:1225 +0x635 +testing.tRunner(0xc000702340, 0xc0009afb18) + /usr/local/go/src/testing/testing.go:1265 +0x269 +testing.runTests(0xc000392380, {0x5eb2c40, 0x50, 0x50}, {0x5ec4260, 0xc0009afbd0, 0x5ec3420}) + /usr/local/go/src/testing/testing.go:1596 +0x7cb +testing.(*M).Run(0xc000392380) + /usr/local/go/src/testing/testing.go:1504 +0x9d2 +github.com/ChainSafe/gossamer/dot/network.TestMain(0x5102a20) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x34 +main.main() + _testmain.go:205 +0x265 + +goroutine 19 [select]: +github.com/ipfs/go-log/writer.(*MirrorWriter).logRoutine(0xc000247530) + /Users/eclesiojunior/go/pkg/mod/github.com/ipfs/go-log@v1.0.5/writer/writer.go:71 +0x197 +created by github.com/ipfs/go-log/writer.NewMirrorWriter + /Users/eclesiojunior/go/pkg/mod/github.com/ipfs/go-log@v1.0.5/writer/writer.go:36 +0x185 + +goroutine 20 [select]: +go.opencensus.io/stats/view.(*worker).start(0xc00023a100) + /Users/eclesiojunior/go/pkg/mod/go.opencensus.io@v0.23.0/stats/view/worker.go:276 +0x185 +created by go.opencensus.io/stats/view.init.0 + /Users/eclesiojunior/go/pkg/mod/go.opencensus.io@v0.23.0/stats/view/worker.go:34 +0xf9 + +goroutine 5 [runnable]: +github.com/libp2p/go-cidranger/net.Network.LeastCommonBitPosition({{0xc0023a8b90, 0x4, 0x4}, 0x2a}, {{0xc000019390, 0x4, 0x4}, 0x20}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/net/ip.go:243 +0x1ae +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00080bec0, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000809b40}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:253 +0x47b +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00001af60, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000019090}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0002c81e0, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000131af0}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0001c2240, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc0001c1250}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00018c120, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000077190}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00001d200, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000076790}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0003092c0, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc00003cc10}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00001c180, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000019c90}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00008cf60, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc00003def0}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0001d3080, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc0001d6710}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0000175c0, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000015f50}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0003086c0, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc00003c410}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc000308300, {{0xc0023a8b90, 0x4a8ff01, 0x4071545}, 0xc00003c190}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc000308240, {{0xc0023a8b90, 0x10, 0xc0023a8b70}, 0x10}, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c +github.com/libp2p/go-cidranger.(*prefixTrie).Insert(0xc000308240, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:95 +0x13e +github.com/libp2p/go-cidranger.(*versionedRanger).Insert(0x50788e0, {0x5518520, 0xc0006fed80}) + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/version.go:29 +0x10f +github.com/libp2p/go-libp2p-asn-util.newAsnStore() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-asn-util@v0.0.0-20200825225859-85005c6cf052/asn.go:61 +0x22f +github.com/libp2p/go-libp2p-asn-util.newIndirectAsnStore.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-asn-util@v0.0.0-20200825225859-85005c6cf052/asn.go:89 +0x9d +created by github.com/libp2p/go-libp2p-asn-util.newIndirectAsnStore + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-asn-util@v0.0.0-20200825225859-85005c6cf052/asn.go:87 +0x119 + +goroutine 55 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 24 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0007024e0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockAnnounce(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:21 +0x4b +testing.tRunner(0xc0007024e0, 0x53b4a98) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 25 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000313040) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestDecodeBlockAnnounce(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:57 +0x4b +testing.tRunner(0xc000313040, 0x53b4a48) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 26 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000313380) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockAnnounceHandshake(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:97 +0x48 +testing.tRunner(0xc000313380, 0x53b4a88) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 27 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000313a00) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestDecodeBlockAnnounceHandshake(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:113 +0x4b +testing.tRunner(0xc000313a00, 0x53b4a40) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 28 [runnable]: +encoding/binary.intDataSize({0x4fd2ac0, 0x5e1bce0}) + /usr/local/go/src/encoding/binary/binary.go:700 +0x39e +encoding/binary.Write({0x55180c0, 0xc000997bc0}, {0x5541cb0, 0x6916988}, {0x4fd2ac0, 0x5e1bce0}) + /usr/local/go/src/encoding/binary/binary.go:273 +0x85 +github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).encodeFixedWidthInt(0xc001681398, {0x4fd2ac0, 0xc0023a43dd}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:255 +0xf2 +github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).marshal(0xc000997bc0, {0x4fd2ac0, 0xc0023a43dd}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:39 +0x7cf +github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).encodeArray(0x5082060, {0x5082060, 0xc0023a43c0}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:185 +0x209 +github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).marshal(0xc000997bc0, {0x5082060, 0xc0023a43c0}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:78 +0xb05 +github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).encodeStruct(0xc000997bc0, {0x50e6d00, 0xc0023a43c0}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:287 +0x145 +github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).marshal(0xc000997bc0, {0x50e6d00, 0xc0023a43c0}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:76 +0xbaf +github.com/ChainSafe/gossamer/pkg/scale.Marshal({0x50e6d00, 0xc0023a43c0}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:19 +0xf3 +github.com/ChainSafe/gossamer/dot/types.(*Header).Hash(0xc0023a4300) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/types/header.go:102 +0xea +github.com/ChainSafe/gossamer/dot/network.testBlockResponseMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:99 +0x38f +github.com/ChainSafe/gossamer/dot/network.NewMockSyncer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:68 +0x3d0 +github.com/ChainSafe/gossamer/dot/network.createTestService(0xc000313d40, 0xc0000cbc20) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:96 +0x65e +github.com/ChainSafe/gossamer/dot/network.TestHandleBlockAnnounceMessage(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:140 +0x1a5 +testing.tRunner(0xc000313d40, 0x53b4b20) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 29 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0003824e0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestValidateBlockAnnounceHandshake(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:154 +0x48 +testing.tRunner(0xc0003824e0, 0x53b4c20) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 30 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000382820) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestBuildIdentity(0xc000382820) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/config_test.go:19 +0x4b +testing.tRunner(0xc000382820, 0x53b4a08) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 31 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000382b60) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestBuild(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/config_test.go:62 +0x45 +testing.tRunner(0xc000382b60, 0x53b4a10) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 32 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000382ea0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestMinPeers(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:20 +0x4b +testing.tRunner(0xc000382ea0, 0x53b4b80) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 33 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0003831e0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestMaxPeers(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:60 +0x4b +testing.tRunner(0xc0003831e0, 0x53b4b58) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 54 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 67 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000383860) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestPersistentPeers(0xc000383860) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:135 +0xe5 +testing.tRunner(0xc000383860, 0x53b4ba0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 68 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000383ba0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestRemovePeer(0xc000383ba0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:174 +0xe5 +testing.tRunner(0xc000383ba0, 0x53b4bb8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 69 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000702680) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestSetReservedPeer(0xc000702680) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:215 +0xe5 +testing.tRunner(0xc000702680, 0x53b4be0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 70 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0007029c0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestKadDHT(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:77 +0xd3 +testing.tRunner(0xc0007029c0, 0x53b4b48) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 71 [runnable]: +reflect.Value.Index({0x5082060, 0xc0008f78c0, 0x91}, 0x6) + /usr/local/go/src/reflect/value.go:1273 +0x48f +github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).encodeArray(0x5082060, {0x5082060, 0xc0008f78c0}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:185 +0x1ef +github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).marshal(0xc0008d1800, {0x5082060, 0xc0008f78c0}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:78 +0xb05 +github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).encodeStruct(0xc0008d1800, {0x50e6d00, 0xc0008f78c0}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:287 +0x145 +github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).marshal(0xc0008d1800, {0x50e6d00, 0xc0008f78c0}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:76 +0xbaf +github.com/ChainSafe/gossamer/pkg/scale.Marshal({0x50e6d00, 0xc0008f78c0}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:19 +0xf3 +github.com/ChainSafe/gossamer/dot/types.(*Header).Hash(0xc0008f7800) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/types/header.go:102 +0xea +github.com/ChainSafe/gossamer/dot/network.testBlockResponseMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:99 +0x38f +github.com/ChainSafe/gossamer/dot/network.NewMockSyncer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:68 +0x3d0 +github.com/ChainSafe/gossamer/dot/network.createTestService(0xc000702d00, 0xc0003ce480) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:96 +0x65e +github.com/ChainSafe/gossamer/dot/network.TestBeginDiscovery(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:114 +0x1c5 +testing.tRunner(0xc000702d00, 0x53b49d8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 72 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000703040) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestBeginDiscovery_ThreeNodes(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:143 +0x4b +testing.tRunner(0xc000703040, 0x53b49d0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 73 [select]: +github.com/chyeh/pubip.Get() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:168 +0x21d +github.com/ChainSafe/gossamer/dot/network.newHost({0x5533198, 0xc0006feac0}, 0xc000262120) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host.go:77 +0x352 +github.com/ChainSafe/gossamer/dot/network.NewService(0xc000262120) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:130 +0x3bf +github.com/ChainSafe/gossamer/dot/network.createTestService(0xc000703380, 0xc000262120) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:101 +0x6ce +github.com/ChainSafe/gossamer/dot/network.TestGossip(0xc000703380) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/gossip_test.go:33 +0x2a5 +testing.tRunner(0xc000703380, 0x53b4b18) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 74 [runnable]: +github.com/chyeh/pubip.Get() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x55d +github.com/ChainSafe/gossamer/dot/network.newHost({0x5533198, 0xc000728640}, 0xc0003ce000) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host.go:77 +0x352 +github.com/ChainSafe/gossamer/dot/network.NewService(0xc0003ce000) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:130 +0x3bf +github.com/ChainSafe/gossamer/dot/network.createTestService(0xc0007036c0, 0xc0003ce000) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:101 +0x6ce +github.com/ChainSafe/gossamer/dot/network.TestExternalAddrs(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:30 +0x1b0 +testing.tRunner(0xc0007036c0, 0x53b4b08) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 75 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000703a00) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestExternalAddrsPublicIP(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:46 +0x4b +testing.tRunner(0xc000703a00, 0x53b4b00) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 76 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000703d40) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestConnect(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:80 +0x4b +testing.tRunner(0xc000703d40, 0x53b4a18) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 77 [runnable]: +golang.org/x/crypto/blake2b.newDigest(0x20, {0x0, 0x0, 0x0}) + /Users/eclesiojunior/go/pkg/mod/golang.org/x/crypto@v0.0.0-20210813211128-0a44fdfbc16e/blake2b/blake2b.go:108 +0x76 +golang.org/x/crypto/blake2b.New256(...) + /Users/eclesiojunior/go/pkg/mod/golang.org/x/crypto@v0.0.0-20210813211128-0a44fdfbc16e/blake2b/blake2b.go:89 +github.com/ChainSafe/gossamer/lib/common.Blake2bHash({0xc000368a20, 0x63, 0x81}) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/lib/common/hasher.go:32 +0x65 +github.com/ChainSafe/gossamer/dot/types.(*Header).Hash(0xc000378180) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/types/header.go:107 +0xff +github.com/ChainSafe/gossamer/dot/network.testBlockResponseMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:99 +0x38f +github.com/ChainSafe/gossamer/dot/network.NewMockSyncer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:68 +0x3d0 +github.com/ChainSafe/gossamer/dot/network.createTestService(0xc0006a4820, 0xc0000cbe60) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:96 +0x65e +github.com/ChainSafe/gossamer/dot/network.TestBootstrap(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:135 +0x1c5 +testing.tRunner(0xc0006a4820, 0x53b49f0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 78 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0006a4b60) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestSend(0xc0006a4b60) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:167 +0x4b +testing.tRunner(0xc0006a4b60, 0x53b4bc0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 79 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0006a4ea0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestExistingStream(0xc0006a4ea0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:217 +0x4b +testing.tRunner(0xc0006a4ea0, 0x53b4af8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 80 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0006a51e0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestStreamCloseMetadataCleanup(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:283 +0x4b +testing.tRunner(0xc0006a51e0, 0x53b4bf8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 81 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0006a5520) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.Test_PeerSupportsProtocol(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:360 +0x4b +testing.tRunner(0xc0006a5520, 0x53b4c48) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 82 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0006a5860) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.Test_AddReservedPeers(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:426 +0x48 +testing.tRunner(0xc0006a5860, 0x53b4c28) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 83 [runnable]: +github.com/chyeh/pubip.Get() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x55d +github.com/ChainSafe/gossamer/dot/network.newHost({0x5533198, 0xc0009f05c0}, 0xc0006c0000) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host.go:77 +0x352 +github.com/ChainSafe/gossamer/dot/network.NewService(0xc0006c0000) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:130 +0x3bf +github.com/ChainSafe/gossamer/dot/network.createTestService(0xc0006a5ba0, 0xc0006c0000) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:101 +0x6ce +github.com/ChainSafe/gossamer/dot/network.Test_RemoveReservedPeers(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:470 +0x1c5 +testing.tRunner(0xc0006a5ba0, 0x53b4c50) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 84 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00027e4e0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestStreamCloseEOF(0xc00027e4e0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:507 +0x4b +testing.tRunner(0xc00027e4e0, 0x53b4bf0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 85 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00027e820) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestPeerConnect(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:560 +0x4b +testing.tRunner(0xc00027e820, 0x53b4b88) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 86 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00027f860) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestBannedPeer(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:601 +0x4b +testing.tRunner(0xc00027f860, 0x53b49c8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 87 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00027fba0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestPeerReputation(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:658 +0x4b +testing.tRunner(0xc00027fba0, 0x53b4b90) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 88 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000001520) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeLightRequest(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/light_test.go:19 +0x4b +testing.tRunner(0xc000001520, 0x53b4ad8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 89 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000001860) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeLightResponse(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/light_test.go:34 +0x4b +testing.tRunner(0xc000001860, 0x53b4ae0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 90 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000001ba0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestDecodeLightMessage(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/light_test.go:52 +0x4b +testing.tRunner(0xc000001ba0, 0x53b4a58) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 91 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000102b60) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestHandleLightMessage_Response(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/light_test.go:90 +0x4b +testing.tRunner(0xc000102b60, 0x53b4b30) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 92 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000102ea0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestMDNS(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/mdns_test.go:19 +0x48 +testing.tRunner(0xc000102ea0, 0x53b4b50) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 93 [sleep]: +time.Sleep(0x1dcd6500) + /usr/local/go/src/runtime/time.go:193 +0x12e +github.com/ChainSafe/gossamer/dot/network.TestMessageCache(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_cache_test.go:45 +0x345 +testing.tRunner(0xc000103380, 0x53b4b78) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 94 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000103860) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestMessageCacheError(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_cache_test.go:57 +0x45 +testing.tRunner(0xc000103860, 0x53b4b70) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 95 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000103ba0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockRequestMessage(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:21 +0x4b +testing.tRunner(0xc000103ba0, 0x53b4ab8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 96 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00043c000) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockRequestMessage_BlockHash(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:48 +0x4b +testing.tRunner(0xc00043c000, 0x53b4aa0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 97 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00043c340) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockRequestMessage_BlockNumber(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:72 +0x48 +testing.tRunner(0xc00043c340, 0x53b4aa8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 98 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00043c680) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestBlockRequestString(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:95 +0x48 +testing.tRunner(0xc00043c680, 0x53b49e8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 99 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00043c9c0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockRequestMessage_NoOptionals(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:116 +0x48 +testing.tRunner(0xc00043c9c0, 0x53b4ab0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 100 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00043cd00) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockResponseMessage_Empty(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:138 +0x48 +testing.tRunner(0xc00043cd00, 0x53b4ac0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 101 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00043d040) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockResponseMessage_WithBody(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:170 +0x4b +testing.tRunner(0xc00043d040, 0x53b4ad0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 102 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00043d380) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockResponseMessage_WithAll(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:221 +0x4b +testing.tRunner(0xc00043d380, 0x53b4ac8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 103 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00043d6c0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockAnnounceMessage(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:284 +0x4b +testing.tRunner(0xc00043d6c0, 0x53b4a90) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 104 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00043da00) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestDecode_BlockAnnounceMessage(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:308 +0x4b +testing.tRunner(0xc00043da00, 0x53b4a80) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 105 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00043dd40) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeTransactionMessageSingleExtrinsic(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:343 +0x48 +testing.tRunner(0xc00043dd40, 0x53b4ae8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 106 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0004461a0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestEncodeTransactionMessageTwoExtrinsics(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:364 +0x48 +testing.tRunner(0xc0004461a0, 0x53b4af0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 107 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0004464e0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestDecodeTransactionMessageOneExtrinsic(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:380 +0x48 +testing.tRunner(0xc0004464e0, 0x53b4a70) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 108 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000446820) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestDecodeTransactionMessageTwoExtrinsics(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:397 +0x48 +testing.tRunner(0xc000446820, 0x53b4a78) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 109 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000446b60) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestDecodeConsensusMessage(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:415 +0x48 +testing.tRunner(0xc000446b60, 0x53b4a50) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 110 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000446ea0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestCreateDecoder_BlockAnnounce(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:25 +0x4b +testing.tRunner(0xc000446ea0, 0x53b4a20) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 111 [runnable]: +github.com/chyeh/pubip.Get() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x55d +github.com/ChainSafe/gossamer/dot/network.newHost({0x5533198, 0xc001735740}, 0xc0003ce120) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host.go:77 +0x352 +github.com/ChainSafe/gossamer/dot/network.NewService(0xc0003ce120) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:130 +0x3bf +github.com/ChainSafe/gossamer/dot/network.createTestService(0xc0004471e0, 0xc0003ce120) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:101 +0x6ce +github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_BlockAnnounce(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:100 +0x1c5 +testing.tRunner(0xc0004471e0, 0x53b4a30) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 112 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000447520) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:152 +0x4b +testing.tRunner(0xc000447520, 0x53b4a28) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 113 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000447860) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.Test_HandshakeTimeout(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:231 +0x4b +testing.tRunner(0xc000447860, 0x53b4c40) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 114 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000447ba0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_HandleTransaction(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:313 +0x4b +testing.tRunner(0xc000447ba0, 0x53b4a38) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 115 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000452000) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestBlockAnnounceHandshakeSize(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:423 +0x48 +testing.tRunner(0xc000452000, 0x53b49e0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 116 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000452340) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.Test_sizedBufferPool(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/pool_test.go:36 +0x48 +testing.tRunner(0xc000452340, 0x53b4c60) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 117 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000452680) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.Test_sizedBufferPool_race(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/pool_test.go:69 +0x4b +testing.tRunner(0xc000452680, 0x53b4c58) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 118 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0004529c0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestStartService(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:130 +0x2f +testing.tRunner(0xc0004529c0, 0x53b4be8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 119 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000452d00) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:138 +0x4b +testing.tRunner(0xc000452d00, 0x53b4a00) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 120 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000453040) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:185 +0x4b +testing.tRunner(0xc000453040, 0x53b49f8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 121 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000453380) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestService_NodeRoles(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:259 +0x48 +testing.tRunner(0xc000453380, 0x53b4bd8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 122 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc0004536c0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestService_Health(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:273 +0x48 +testing.tRunner(0xc0004536c0, 0x53b4bd0) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 123 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000453a00) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestPersistPeerStore(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:298 +0x4b +testing.tRunner(0xc000453a00, 0x53b4b98) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 124 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc000453d40) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestHandleConn(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:324 +0x4b +testing.tRunner(0xc000453d40, 0x53b4b28) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 125 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00045c1a0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestSerivceIsMajorSyncMetrics(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:354 +0x4b +testing.tRunner(0xc00045c1a0, 0x53b4bc8) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 126 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00045c4e0) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestStreamManager(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager_test.go:67 +0x48 +testing.tRunner(0xc00045c4e0, 0x53b4c08) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 128 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00045cb60) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestDecodeSyncMessage(0xc00045cb60) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/sync_test.go:14 +0x48 +testing.tRunner(0xc00045cb60, 0x53b4a60) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 129 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00045cd00) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestDecodeTransactionHandshake(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction_test.go:19 +0x31 +testing.tRunner(0xc00045cd00, 0x53b4a68) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 130 [chan receive]: +testing.(*testContext).waitParallel(0xc0003380a0) + /usr/local/go/src/testing/testing.go:1364 +0x126 +testing.(*T).Parallel(0xc00045d040) + /usr/local/go/src/testing/testing.go:1105 +0x4b9 +github.com/ChainSafe/gossamer/dot/network.TestHandleTransactionMessage(0x0) + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction_test.go:32 +0x48 +testing.tRunner(0xc00045d040, 0x53b4b38) + /usr/local/go/src/testing/testing.go:1259 +0x230 +created by testing.(*T).Run + /usr/local/go/src/testing/testing.go:1306 +0x727 + +goroutine 136 [runnable]: +net/url.getScheme({0x5254021, 0x1b}) + /usr/local/go/src/net/url/url.go:431 +0x1b7 +net/url.parse({0x5254021, 0x1b}, 0x0) + /usr/local/go/src/net/url/url.go:528 +0x21b +net/url.Parse({0x5254021, 0x0}) + /usr/local/go/src/net/url/url.go:478 +0x65 +net/http.NewRequestWithContext({0x55331d0, 0xc000130018}, {0x51581c9, 0x3}, {0x5254021, 0x1b}, {0x0, 0x0}) + /usr/local/go/src/net/http/request.go:868 +0x11e +net/http.NewRequest(...) + /usr/local/go/src/net/http/request.go:830 +github.com/chyeh/pubip.GetIPBy({0x5254021, 0x1b}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:44 +0x15a +github.com/chyeh/pubip.worker({0x5254021, 0x1b}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 146 [runnable]: +sync.(*Once).doSlow(0xc000236048, 0xc0012072c8) + /usr/local/go/src/sync/once.go:68 +0x128 +sync.(*Once).Do(0xc000236048, 0x5) + /usr/local/go/src/sync/once.go:59 +0x47 +net/http.(*http2Transport).connPool(...) + /usr/local/go/src/net/http/h2_bundle.go:6821 +net/http.(*http2Transport).RoundTripOpt(0xc000236000, 0xc0009ae000, {0x61}) + /usr/local/go/src/net/http/h2_bundle.go:7078 +0x5a5 +net/http.(*http2Transport).RoundTrip(...) + /usr/local/go/src/net/http/h2_bundle.go:7046 +net/http.http2noDialH2RoundTripper.RoundTrip({0x5ead980}, 0xc0009ae000) + /usr/local/go/src/net/http/h2_bundle.go:9303 +0x3d +net/http.(*Transport).roundTrip(0x5ead980, 0xc0009ae000) + /usr/local/go/src/net/http/transport.go:539 +0x638 +net/http.(*Transport).RoundTrip(0xc0009ae000, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc0009ae000, {0x5519140, 0x5ead980}, {0xc00045c820, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc000996750, 0xc0009ae000, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc000996750, 0xc0009ae000) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x524b361, 0x15}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x524b361, 0x15}, 0xc00038b7d0, 0x415f1e8) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 147 [runnable]: +net/url.parse({0x5254021, 0x1b}, 0x0) + /usr/local/go/src/net/url/url.go:519 +0x185 +net/url.Parse({0x5254021, 0x0}) + /usr/local/go/src/net/url/url.go:478 +0x65 +net/http.NewRequestWithContext({0x55331d0, 0xc000130018}, {0x51581c9, 0x3}, {0x5254021, 0x1b}, {0x0, 0x0}) + /usr/local/go/src/net/http/request.go:868 +0x11e +net/http.NewRequest(...) + /usr/local/go/src/net/http/request.go:830 +github.com/chyeh/pubip.GetIPBy({0x5254021, 0x1b}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:44 +0x15a +github.com/chyeh/pubip.worker({0x5254021, 0x1b}, 0x6800000000, 0x3400000068) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 148 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc0006bce80, {{}, 0x0, {0x524770e, 0x4}, {0xc0007ba884, 0xc}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc0007aa100) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc0007aa100, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc0007aa100, {0x5519140, 0x5ead980}, {0xc00045d6c0, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc000996870, 0xc0007aa100, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc000996870, 0xc0007aa100) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x524770e, 0x13}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x524770e, 0x13}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 149 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc0006fedc0, {{}, 0x0, {0x524eacf, 0x4}, {0xc0023a8ba3, 0xd}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc0009ae200) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc0009ae200, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc0009ae200, {0x5519140, 0x5ead980}, {0xc00045d860, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc000996840, 0xc0009ae200, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc000996840, 0xc0009ae200) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x524eacf, 0x17}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x524eacf, 0x17}, 0xc00022aa80, 0x4071545) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 150 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc0006bd000, {{}, 0x0, {0x52493c3, 0x4}, {0xc0007ba8c0, 0x10}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc0007aa300) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc0007aa300, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc0007aa300, {0x5519140, 0x5ead980}, {0xc00045da00, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc000996900, 0xc0007aa300, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc000996900, 0xc0007aa300) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x52493c3, 0x14}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x52493c3, 0x14}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 151 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc0006bcec0, {{}, 0x0, {0x524b337, 0x4}, {0xc0007ba892, 0xe}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc0007aa200) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc0007aa200, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc0007aa200, {0x5519140, 0x5ead980}, {0xc00045dba0, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc0009968a0, 0xc0007aa200, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc0009968a0, 0xc0007aa200) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x524b337, 0x15}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x524b337, 0x15}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 152 [runnable]: +net/http.(*Transport).getConn(0x5ead980, 0xc00035a580, {{}, 0x0, {0x51be1fc, 0x4}, {0xc00240ec45, 0xb}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc000372100) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc000372100, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc000372100, {0x5519140, 0x5ead980}, {0xc00045dd40, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc0009968d0, 0xc000372100, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc0009968d0, 0xc000372100) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x51be1fc, 0xf}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x51be1fc, 0xf}, 0x0, 0xc00027d3a0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 153 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc0007286c0, {{}, 0x0, {0x525577d, 0x4}, {0xc000796240, 0x18}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc001256000) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc001256000, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc001256000, {0x5519140, 0x5ead980}, {0xc0009ce340, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc000996720, 0xc001256000, {0x0, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc000996720, 0xc001256000) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x525577d, 0x1c}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x525577d, 0x1c}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 162 [semacquire]: +sync.runtime_SemacquireMutex(0xc0008c90b8, 0x9c, 0x3) + /usr/local/go/src/runtime/sema.go:71 +0x25 +sync.(*Mutex).lockSlow(0xc00023604c) + /usr/local/go/src/sync/mutex.go:138 +0x21d +sync.(*Mutex).Lock(0xc00023604c) + /usr/local/go/src/sync/mutex.go:81 +0x65 +sync.(*Once).doSlow(0xc000236048, 0xc0008c92c8) + /usr/local/go/src/sync/once.go:64 +0x65 +sync.(*Once).Do(0xc000236048, 0x5) + /usr/local/go/src/sync/once.go:59 +0x47 +net/http.(*http2Transport).connPool(...) + /usr/local/go/src/net/http/h2_bundle.go:6821 +net/http.(*http2Transport).RoundTripOpt(0xc000236000, 0xc000294200, {0x61}) + /usr/local/go/src/net/http/h2_bundle.go:7078 +0x5a5 +net/http.(*http2Transport).RoundTrip(...) + /usr/local/go/src/net/http/h2_bundle.go:7046 +net/http.http2noDialH2RoundTripper.RoundTrip({0x5ead980}, 0xc000294200) + /usr/local/go/src/net/http/h2_bundle.go:9303 +0x3d +net/http.(*Transport).roundTrip(0x5ead980, 0xc000294200) + /usr/local/go/src/net/http/transport.go:539 +0x638 +net/http.(*Transport).RoundTrip(0xc000294200, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc000294200, {0x5519140, 0x5ead980}, {0xc000313860, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc0007e9b30, 0xc000294200, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc0007e9b30, 0xc000294200) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x524b361, 0x15}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x524b361, 0x15}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 178 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc0008158c0, {{}, 0x0, {0x525b25a, 0x4}, {0xc00078dac0, 0x1c}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc000742100) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc000742100, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc000742100, {0x5519140, 0x5ead980}, {0xc00081e000, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc0008137d0, 0xc000742100, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc0008137d0, 0xc000742100) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x525b25a, 0x20}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x525b25a, 0x20}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 194 [select]: +github.com/dgraph-io/ristretto.(*defaultPolicy).processItems(0xc0006b7d10) + /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3-0.20200630154024-f66de99634de/policy.go:96 +0x16d +created by github.com/dgraph-io/ristretto.newDefaultPolicy + /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3-0.20200630154024-f66de99634de/policy.go:80 +0x2d1 + +goroutine 8 [select]: +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc001248240}, {0x51584a5, 0x5ec4260}, {0xc000796240, 0x15}) + /usr/local/go/src/net/lookup.go:302 +0x81c +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc001248240}, {0x51584a5, 0x3}, {0xc000796240, 0x18}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc001248240}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc000796240, 0x18}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc000796240, 0x18}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc000796240, 0x18}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x525577d, 0x4}, {0xc000796240, 0x18}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x0, 0xc00029db80) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 179 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc000815940, {{}, 0x0, {0x5255799, 0x4}, {0xc00072a180, 0x18}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc000742200) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc000742200, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc000742200, {0x5519140, 0x5ead980}, {0xc00081e1a0, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc0008138c0, 0xc000742200, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc0008138c0, 0xc000742200) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x5255799, 0x1c}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x5255799, 0x1c}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 180 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc000815980, {{}, 0x0, {0x51e584a, 0x4}, {0xc00081cbe3, 0xd}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc000742300) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc000742300, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc000742300, {0x5519140, 0x5ead980}, {0xc00081e340, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc000813980, 0xc000742300, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc000813980, 0xc000742300) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x51e584a, 0x11}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x51e584a, 0x11}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 181 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc000815a40, {{}, 0x0, {0x524b34c, 0x4}, {0xc00072a198, 0x11}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc000742400) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc000742400, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc000742400, {0x5519140, 0x5ead980}, {0xc00081e4e0, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc000813aa0, 0xc000742400, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc000813aa0, 0xc000742400) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x524b34c, 0x15}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x524b34c, 0x15}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 182 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc000815b00, {{}, 0x0, {0x51cc2de, 0x4}, {0xc00081cc04, 0xc}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc000742500) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc000742500, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc000742500, {0x5519140, 0x5ead980}, {0xc00081e680, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc000813bf0, 0xc000742500, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc000813bf0, 0xc000742500) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x51cc2de, 0x10}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x51cc2de, 0x10}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 183 [runnable]: +net/url.getScheme({0x52557b5, 0x1c}) + /usr/local/go/src/net/url/url.go:431 +0x1b7 +net/url.parse({0x52557b5, 0x1c}, 0x0) + /usr/local/go/src/net/url/url.go:528 +0x21b +net/url.Parse({0x52557b5, 0x0}) + /usr/local/go/src/net/url/url.go:478 +0x65 +net/http.NewRequestWithContext({0x55331d0, 0xc000130018}, {0x51581c9, 0x3}, {0x52557b5, 0x1c}, {0x0, 0x0}) + /usr/local/go/src/net/http/request.go:868 +0x11e +net/http.NewRequest(...) + /usr/local/go/src/net/http/request.go:830 +github.com/chyeh/pubip.GetIPBy({0x52557b5, 0x1c}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:44 +0x15a +github.com/chyeh/pubip.worker({0x52557b5, 0x1c}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 137 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc00168c5c0, {{}, 0x0, {0x524770e, 0x4}, {0xc000917fa4, 0xc}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc00090c100) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc00090c100, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc00090c100, {0x5519140, 0x5ead980}, {0xc000920000, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc0002d37d0, 0xc00090c100, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc0002d37d0, 0xc00090c100) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x524770e, 0x13}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x524770e, 0x13}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 38 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 154 [select]: +net/http.(*Transport).getConn(0x5ead980, 0xc0006feb00, {{}, 0x0, {0x524eacf, 0x4}, {0xc0023a8693, 0xd}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc0009ae100) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc0009ae100, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc0009ae100, {0x5519140, 0x5ead980}, {0xc0009ce4e0, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc000997c20, 0xc0009ae100, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc000997c20, 0xc0009ae100) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x524eacf, 0x17}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x524eacf, 0x17}, 0x0, 0x0) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 155 [runnable]: +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0023a8693, 0xd}) + /usr/local/go/src/net/dial.go:406 +0x653 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0023a8693, 0xd}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524eacf, 0x4}, {0xc0023a8693, 0xd}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x17, 0xc00099e370) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 9 [runnable]: +net/http.(*Transport).getConn(0x5ead980, 0xc000728840, {{}, 0x0, {0x52493c3, 0x4}, {0xc0012462d0, 0x10}, 0x0}) + /usr/local/go/src/net/http/transport.go:1372 +0xa45 +net/http.(*Transport).roundTrip(0x5ead980, 0xc001256100) + /usr/local/go/src/net/http/transport.go:581 +0xcdf +net/http.(*Transport).RoundTrip(0xc001256100, 0x5519140) + /usr/local/go/src/net/http/roundtrip.go:18 +0x37 +net/http.send(0xc001256100, {0x5519140, 0x5ead980}, {0xc00125a1a0, 0x40522a0, 0x0}) + /usr/local/go/src/net/http/client.go:252 +0x93f +net/http.(*Client).send(0xc000717950, 0xc001256100, {0x43b968e, 0x14, 0x0}) + /usr/local/go/src/net/http/client.go:176 +0x158 +net/http.(*Client).do(0xc000717950, 0xc001256100) + /usr/local/go/src/net/http/client.go:725 +0x1087 +net/http.(*Client).Do(...) + /usr/local/go/src/net/http/client.go:593 +github.com/chyeh/pubip.GetIPBy({0x52493c3, 0x14}) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 +github.com/chyeh/pubip.worker({0x52493c3, 0x14}, 0xc001261fd0, 0x46039a8) + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 10 [select]: +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc001248720}, {0x51584a5, 0xc000049b30}, {0xc0012462d0, 0xd}) + /usr/local/go/src/net/lookup.go:302 +0x81c +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc001248720}, {0x51584a5, 0x3}, {0xc0012462d0, 0x10}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc001248720}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc0012462d0, 0x10}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0012462d0, 0x10}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0012462d0, 0x10}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x52493c3, 0x4}, {0xc0012462d0, 0x10}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x14, 0xc00029dc30) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 39 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 184 [runnable]: +sync.(*WaitGroup).Add(0x6916b88, 0x1) + /usr/local/go/src/sync/waitgroup.go:80 +0x1c5 +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc00081b680}, {0x51584a5, 0xc0023b0f68}, {0xc00078dac0, 0x19}) + /usr/local/go/src/net/lookup.go:293 +0x585 +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc00081b680}, {0x51584a5, 0x3}, {0xc00078dac0, 0x1c}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc00081b680}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc00078dac0, 0x1c}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00078dac0, 0x1c}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00078dac0, 0x1c}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x525b25a, 0x4}, {0xc00078dac0, 0x1c}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x20, 0xc000731b80) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 138 [select]: +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc00092c180}, {0x51584a5, 0xc0008c70d8}, {0xc000917fa4, 0x9}) + /usr/local/go/src/net/lookup.go:302 +0x81c +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc00092c180}, {0x51584a5, 0x3}, {0xc000917fa4, 0xc}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc00092c180}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc000917fa4, 0xc}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc000917fa4, 0xc}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc000917fa4, 0xc}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524770e, 0x4}, {0xc000917fa4, 0xc}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x13, 0xc000348580) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 195 [select]: +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc0007be660}, {0x51584a5, 0xc00005b930}, {0xc0007ba884, 0x9}) + /usr/local/go/src/net/lookup.go:302 +0x81c +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc0007be660}, {0x51584a5, 0x3}, {0xc0007ba884, 0xc}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc0007be660}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc0007ba884, 0xc}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba884, 0xc}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba884, 0xc}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524770e, 0x4}, {0xc0007ba884, 0xc}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x0, 0xc00079a790) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 196 [select]: +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc0007be420}, {0x51584a5, 0xc00248ef68}, {0xc0007ba892, 0xb}) + /usr/local/go/src/net/lookup.go:302 +0x81c +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc0007be420}, {0x51584a5, 0x3}, {0xc0007ba892, 0xe}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc0007be420}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc0007ba892, 0xe}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba892, 0xe}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba892, 0xe}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524b337, 0x4}, {0xc0007ba892, 0xe}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x0, 0xc00079a840) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 185 [runnable]: +net/http.(*Transport).queueForDial·dwrap·107() + /usr/local/go/src/net/http/transport.go:1415 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 156 [select]: +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc0009a8d80}, {0x51584a5, 0xc0000544b0}, {0xc0023a8ba3, 0xa}) + /usr/local/go/src/net/lookup.go:302 +0x81c +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc0009a8d80}, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xd}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc0009a8d80}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xd}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xd}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xd}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524eacf, 0x4}, {0xc0023a8ba3, 0xd}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x17, 0xc00099e420) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 40 [runnable]: +net/http.(*Transport).queueForDial·dwrap·107() + /usr/local/go/src/net/http/transport.go:1415 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 186 [select]: +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc00081ba40}, {0x51584a5, 0xc0000563d0}, {0xc00081cbe3, 0xa}) + /usr/local/go/src/net/lookup.go:302 +0x81c +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc00081ba40}, {0x51584a5, 0x3}, {0xc00081cbe3, 0xd}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc00081ba40}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc00081cbe3, 0xd}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00081cbe3, 0xd}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00081cbe3, 0xd}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x51e584a, 0x4}, {0xc00081cbe3, 0xd}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x11, 0xc000731ce0) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 197 [select]: +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc0007be9c0}, {0x51584a5, 0xc00005b6b0}, {0xc0007ba8c0, 0xd}) + /usr/local/go/src/net/lookup.go:302 +0x81c +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc0007be9c0}, {0x51584a5, 0x3}, {0xc0007ba8c0, 0x10}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc0007be9c0}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc0007ba8c0, 0x10}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba8c0, 0x10}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba8c0, 0x10}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x52493c3, 0x4}, {0xc0007ba8c0, 0x10}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x0, 0xc00079a8f0) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 187 [select]: +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc00081bda0}, {0x51584a5, 0xc000056170}, {0xc00072a198, 0xe}) + /usr/local/go/src/net/lookup.go:302 +0x81c +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc00081bda0}, {0x51584a5, 0x3}, {0xc00072a198, 0x11}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc00081bda0}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc00072a198, 0x11}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00072a198, 0x11}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00072a198, 0x11}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524b34c, 0x4}, {0xc00072a198, 0x11}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x15, 0xc000731d90) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 139 [select]: +net.cgoLookupIP({0x5533198, 0xc00168c600}, {0x51584a5, 0x9}, {0xc000917fa4, 0x0}) + /usr/local/go/src/net/cgo_unix.go:231 +0x289 +net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc00168c600}, {0x51584a5, 0x3}, {0xc000917fa4, 0x9}) + /usr/local/go/src/net/lookup_unix.go:97 +0x113 +net.glob..func1({0x5533198, 0xc00168c600}, 0xc0012188d0, {0x51584a5, 0x3}, {0xc000917fa4, 0x9}) + /usr/local/go/src/net/hook.go:23 +0x89 +net.(*Resolver).lookupIPAddr.func1() + /usr/local/go/src/net/lookup.go:296 +0x133 +internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc0002dac30, {0xc000917fb3, 0xd}, 0xc00168c640) + /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 +created by internal/singleflight.(*Group).DoChan + /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b + +goroutine 198 [select]: +net.cgoLookupIP({0x5533198, 0xc0006bd040}, {0x51584a5, 0xd}, {0xc0007ba8c0, 0x0}) + /usr/local/go/src/net/cgo_unix.go:231 +0x289 +net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc0006bd040}, {0x51584a5, 0x3}, {0xc0007ba8c0, 0xd}) + /usr/local/go/src/net/lookup_unix.go:97 +0x113 +net.glob..func1({0x5533198, 0xc0006bd040}, 0xc00027d060, {0x51584a5, 0x3}, {0xc0007ba8c0, 0xd}) + /usr/local/go/src/net/hook.go:23 +0x89 +net.(*Resolver).lookupIPAddr.func1() + /usr/local/go/src/net/lookup.go:296 +0x133 +internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc000032f00, {0xc00003e420, 0x11}, 0xc0006bd080) + /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 +created by internal/singleflight.(*Group).DoChan + /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b + +goroutine 157 [runnable]: +context.(*cancelCtx).Done(0xc0006fee00) + /usr/local/go/src/context/context.go:358 +0x1f8 +net.cgoLookupIP({0x5533198, 0xc0006fee00}, {0x51584a5, 0xa}, {0xc0023a8ba3, 0x0}) + /usr/local/go/src/net/cgo_unix.go:234 +0x202 +net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc0006fee00}, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xa}) + /usr/local/go/src/net/lookup_unix.go:97 +0x113 +net.glob..func1({0x5533198, 0xc0006fee00}, 0xc0023a6100, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xa}) + /usr/local/go/src/net/hook.go:23 +0x89 +net.(*Resolver).lookupIPAddr.func1() + /usr/local/go/src/net/lookup.go:296 +0x133 +internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc000989630, {0xc0023a8bb2, 0xe}, 0xc0006fee40) + /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 +created by internal/singleflight.(*Group).DoChan + /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b + +goroutine 188 [select]: +net.cgoLookupIP({0x5533198, 0xc000815a80}, {0x51584a5, 0xe}, {0xc00072a198, 0x0}) + /usr/local/go/src/net/cgo_unix.go:231 +0x289 +net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc000815a80}, {0x51584a5, 0x3}, {0xc00072a198, 0xe}) + /usr/local/go/src/net/lookup_unix.go:97 +0x113 +net.glob..func1({0x5533198, 0xc000815a80}, 0xc0009c11c0, {0x51584a5, 0x3}, {0xc00072a198, 0xe}) + /usr/local/go/src/net/hook.go:23 +0x89 +net.(*Resolver).lookupIPAddr.func1() + /usr/local/go/src/net/lookup.go:296 +0x133 +internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc0008005f0, {0xc00072a1b0, 0x12}, 0xc000815ac0) + /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 +created by internal/singleflight.(*Group).DoChan + /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b + +goroutine 11 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 12 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 13 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 14 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 140 [select]: +net.cgoLookupIP({0x5533198, 0xc0006bcf00}, {0x51584a5, 0xb}, {0xc0007ba892, 0x0}) + /usr/local/go/src/net/cgo_unix.go:231 +0x289 +net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc0006bcf00}, {0x51584a5, 0x3}, {0xc0007ba892, 0xb}) + /usr/local/go/src/net/lookup_unix.go:97 +0x113 +net.glob..func1({0x5533198, 0xc0006bcf00}, 0xc00027cf80, {0x51584a5, 0x3}, {0xc0007ba892, 0xb}) + /usr/local/go/src/net/hook.go:23 +0x89 +net.(*Resolver).lookupIPAddr.func1() + /usr/local/go/src/net/lookup.go:296 +0x133 +internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc0002dac80, {0xc0007ba8a1, 0xf}, 0xc0006bcf40) + /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 +created by internal/singleflight.(*Group).DoChan + /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b + +goroutine 158 [runnable]: +sync.runtime_SemacquireMutex(0x4071517, 0x47, 0xc000303a80) + /usr/local/go/src/runtime/sema.go:71 +0x25 +sync.(*Mutex).lockSlow(0x6916b7c) + /usr/local/go/src/sync/mutex.go:138 +0x21d +sync.(*Mutex).Lock(0x6916b7c) + /usr/local/go/src/sync/mutex.go:81 +0x65 +sync.(*Once).doSlow(0x6916b78, 0x53b72b8) + /usr/local/go/src/sync/once.go:64 +0x65 +sync.(*Once).Do(0x6916b78, 0x53b72b8) + /usr/local/go/src/sync/once.go:59 +0x47 +net.systemConf(...) + /usr/local/go/src/net/conf.go:43 +net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc0006fee80}, {0x51584a5, 0x3}, {0xc000796240, 0x15}) + /usr/local/go/src/net/lookup_unix.go:95 +0xa9 +net.glob..func1({0x5533198, 0xc0006fee80}, 0xc0023a6120, {0x51584a5, 0x3}, {0xc000796240, 0x15}) + /usr/local/go/src/net/hook.go:23 +0x89 +net.(*Resolver).lookupIPAddr.func1() + /usr/local/go/src/net/lookup.go:296 +0x133 +internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc000989680, {0xc000987120, 0x19}, 0xc0006feec0) + /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 +created by internal/singleflight.(*Group).DoChan + /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b + +goroutine 15 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 189 [select]: +net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc0008381e0}, {0x51584a5, 0xc0008310d8}, {0xc00081cc04, 0x9}) + /usr/local/go/src/net/lookup.go:302 +0x81c +net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc0008381e0}, {0x51584a5, 0x3}, {0xc00081cc04, 0xc}) + /usr/local/go/src/net/ipsock.go:288 +0x7c6 +net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc0008381e0}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc00081cc04, 0xc}, {0x0, ...}) + /usr/local/go/src/net/dial.go:221 +0x556 +net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00081cc04, 0xc}) + /usr/local/go/src/net/dial.go:406 +0x6e5 +net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00081cc04, 0xc}) + /usr/local/go/src/net/http/transport.go:1166 +0x26a +net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x51cc2de, 0x4}, {0xc00081cc04, 0xc}, 0x0}) + /usr/local/go/src/net/http/transport.go:1604 +0xd58 +net/http.(*Transport).dialConnFor(0x10, 0xc000731e40) + /usr/local/go/src/net/http/transport.go:1446 +0x13b +created by net/http.(*Transport).queueForDial + /usr/local/go/src/net/http/transport.go:1415 +0x175 + +goroutine 190 [select]: +net.cgoLookupIP({0x5533198, 0xc000815b40}, {0x51584a5, 0x9}, {0xc00081cc04, 0x30afffff}) + /usr/local/go/src/net/cgo_unix.go:231 +0x289 +net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc000815b40}, {0x51584a5, 0x3}, {0xc00081cc04, 0x9}) + /usr/local/go/src/net/lookup_unix.go:97 +0x113 +net.glob..func1({0x5533198, 0xc000815b40}, 0xc0009c1230, {0x51584a5, 0x3}, {0xc00081cc04, 0x9}) + /usr/local/go/src/net/hook.go:23 +0x89 +net.(*Resolver).lookupIPAddr.func1() + /usr/local/go/src/net/lookup.go:296 +0x133 +internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc000800690, {0xc00081cc13, 0xd}, 0xc000815b80) + /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 +created by internal/singleflight.(*Group).DoChan + /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b + +goroutine 159 [select]: +github.com/dgraph-io/ristretto.(*Cache).processItems(0xc0009a9260) + /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3-0.20200630154024-f66de99634de/cache.go:311 +0x176 +created by github.com/dgraph-io/ristretto.NewCache + /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3-0.20200630154024-f66de99634de/cache.go:162 +0x85a + +goroutine 199 [runnable]: +net.cgoLookupIP·dwrap·22() + /usr/local/go/src/net/cgo_unix.go:230 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by net.cgoLookupIP + /usr/local/go/src/net/cgo_unix.go:230 +0x1ba + +goroutine 200 [runnable]: +net.cgoLookupIP·dwrap·22() + /usr/local/go/src/net/cgo_unix.go:230 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by net.cgoLookupIP + /usr/local/go/src/net/cgo_unix.go:230 +0x1ba + +goroutine 141 [syscall]: +net._C2func_getaddrinfo(0xc000917fc6, 0x0, 0xc0002d3a40, 0xc000798058) + _cgo_gotypes.go:97 +0x8b +net.cgoLookupIPCNAME.func1({0xc000917fc6, 0xa, 0xc000917fa4}, 0xc0002d37d0, 0x5ec1da0) + /usr/local/go/src/net/cgo_unix.go:163 +0xb2 +net.cgoLookupIPCNAME({0x51584a5, 0x3}, {0xc000917fa4, 0xc000130018}) + /usr/local/go/src/net/cgo_unix.go:163 +0x26e +net.cgoIPLookup(0x5ec1db0, {0x51584a5, 0x3}, {0xc000917fa4, 0x9}) + /usr/local/go/src/net/cgo_unix.go:220 +0x67 +created by net.cgoLookupIP + /usr/local/go/src/net/cgo_unix.go:230 +0x1ba + +goroutine 201 [runnable]: +net.cgoLookupIP·dwrap·22() + /usr/local/go/src/net/cgo_unix.go:230 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by net.cgoLookupIP + /usr/local/go/src/net/cgo_unix.go:230 +0x1ba + +goroutine 142 [runnable]: +net.cgoLookupIP·dwrap·22() + /usr/local/go/src/net/cgo_unix.go:230 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by net.cgoLookupIP + /usr/local/go/src/net/cgo_unix.go:230 +0x1ba + +goroutine 143 [select]: +net.cgoLookupIP({0x5533198, 0xc0008159c0}, {0x51584a5, 0xa}, {0xc00081cbe3, 0x0}) + /usr/local/go/src/net/cgo_unix.go:231 +0x289 +net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc0008159c0}, {0x51584a5, 0x3}, {0xc00081cbe3, 0xa}) + /usr/local/go/src/net/lookup_unix.go:97 +0x113 +net.glob..func1({0x5533198, 0xc0008159c0}, 0xc0009c1150, {0x51584a5, 0x3}, {0xc00081cbe3, 0xa}) + /usr/local/go/src/net/hook.go:23 +0x89 +net.(*Resolver).lookupIPAddr.func1() + /usr/local/go/src/net/lookup.go:296 +0x133 +internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc0002dacd0, {0xc00081cbf2, 0xe}, 0xc000815a00) + /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 +created by internal/singleflight.(*Group).DoChan + /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b + +goroutine 144 [runnable]: +net.cgoLookupIP·dwrap·22() + /usr/local/go/src/net/cgo_unix.go:230 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by net.cgoLookupIP + /usr/local/go/src/net/cgo_unix.go:230 +0x1ba + +goroutine 56 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 57 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 58 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 59 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +goroutine 60 [runnable]: +github.com/chyeh/pubip.Get·dwrap·2() + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +runtime.goexit() + /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 +created by github.com/chyeh/pubip.Get + /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b + +rax 0x8 +rbx 0x80 +rcx 0x0 +rdx 0x1 +rdi 0x8 +rsi 0x1 +rbp 0x20b2e1ea0 +rsp 0x20b2e1e58 +r8 0x600002c00000 +r9 0x80 +r10 0x0 +r11 0x7ff81d8b3870 +r12 0x0 +r13 0x0 +r14 0x1 +r15 0x8 +rip 0x7ff81d9e3dfe +rflags 0x216 +cs 0x2b +fs 0x0 +gs 0x0 +FAIL github.com/ChainSafe/gossamer/dot/network 1.833s +FAIL From 1009d6c7338f18ffc365ac38e800d77ae4c3fbb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Tue, 7 Dec 2021 09:18:27 -0400 Subject: [PATCH 04/35] chore: add locks to global logger New --- dot/network/mdns.go | 2 +- internal/log/logger.go | 3 + test.log | 2254 ---------------------------------------- 3 files changed, 4 insertions(+), 2255 deletions(-) delete mode 100644 test.log diff --git a/dot/network/mdns.go b/dot/network/mdns.go index b7943fa55a..fc329218f1 100644 --- a/dot/network/mdns.go +++ b/dot/network/mdns.go @@ -33,7 +33,7 @@ type mdns struct { // newMDNS creates a new mDNS instance from the host func newMDNS(host *host) *mdns { return &mdns{ - logger: log.New(log.AddContext("module", "mdns")), + logger: log.NewFromGlobal(log.AddContext("module", "mdns")), host: host, } } diff --git a/internal/log/logger.go b/internal/log/logger.go index ebc7eb83a0..1761fc1d6f 100644 --- a/internal/log/logger.go +++ b/internal/log/logger.go @@ -34,6 +34,9 @@ func New(options ...Option) *Logger { // It can use a different writer, but it is expected to use the // same writer since it is thread safe. func (l *Logger) New(options ...Option) *Logger { + l.mutex.Lock() + defer l.mutex.Unlock() + var childSettings settings childSettings.mergeWith(l.settings) childSettings.mergeWith(newSettings(options)) diff --git a/test.log b/test.log deleted file mode 100644 index 9ebd9dfd89..0000000000 --- a/test.log +++ /dev/null @@ -1,2254 +0,0 @@ -=== RUN TestEncodeBlockAnnounce -=== PAUSE TestEncodeBlockAnnounce -=== RUN TestDecodeBlockAnnounce -=== PAUSE TestDecodeBlockAnnounce -=== RUN TestEncodeBlockAnnounceHandshake -=== PAUSE TestEncodeBlockAnnounceHandshake -=== RUN TestDecodeBlockAnnounceHandshake -=== PAUSE TestDecodeBlockAnnounceHandshake -=== RUN TestHandleBlockAnnounceMessage -=== PAUSE TestHandleBlockAnnounceMessage -=== RUN TestValidateBlockAnnounceHandshake -=== PAUSE TestValidateBlockAnnounceHandshake -=== RUN TestBuildIdentity -=== PAUSE TestBuildIdentity -=== RUN TestBuild -=== PAUSE TestBuild -=== RUN TestMinPeers -=== PAUSE TestMinPeers -=== RUN TestMaxPeers -=== PAUSE TestMaxPeers -=== RUN TestProtectUnprotectPeer -=== PAUSE TestProtectUnprotectPeer -=== RUN TestPersistentPeers -=== PAUSE TestPersistentPeers -=== RUN TestRemovePeer -=== PAUSE TestRemovePeer -=== RUN TestSetReservedPeer -=== PAUSE TestSetReservedPeer -=== RUN TestKadDHT -=== PAUSE TestKadDHT -=== RUN TestBeginDiscovery -=== PAUSE TestBeginDiscovery -=== RUN TestBeginDiscovery_ThreeNodes -=== PAUSE TestBeginDiscovery_ThreeNodes -=== RUN TestGossip -=== PAUSE TestGossip -=== RUN TestExternalAddrs -=== PAUSE TestExternalAddrs -=== RUN TestExternalAddrsPublicIP -=== PAUSE TestExternalAddrsPublicIP -=== RUN TestConnect -=== PAUSE TestConnect -=== RUN TestBootstrap -=== PAUSE TestBootstrap -=== RUN TestSend -=== PAUSE TestSend -=== RUN TestExistingStream -=== PAUSE TestExistingStream -=== RUN TestStreamCloseMetadataCleanup -=== PAUSE TestStreamCloseMetadataCleanup -=== RUN Test_PeerSupportsProtocol -=== PAUSE Test_PeerSupportsProtocol -=== RUN Test_AddReservedPeers -=== PAUSE Test_AddReservedPeers -=== RUN Test_RemoveReservedPeers -=== PAUSE Test_RemoveReservedPeers -=== RUN TestStreamCloseEOF -=== PAUSE TestStreamCloseEOF -=== RUN TestPeerConnect -=== PAUSE TestPeerConnect -=== RUN TestBannedPeer -=== PAUSE TestBannedPeer -=== RUN TestPeerReputation -=== PAUSE TestPeerReputation -=== RUN TestEncodeLightRequest -=== PAUSE TestEncodeLightRequest -=== RUN TestEncodeLightResponse -=== PAUSE TestEncodeLightResponse -=== RUN TestDecodeLightMessage -=== PAUSE TestDecodeLightMessage -=== RUN TestHandleLightMessage_Response -=== PAUSE TestHandleLightMessage_Response -=== RUN TestMDNS -=== PAUSE TestMDNS -=== RUN TestMessageCache -=== PAUSE TestMessageCache -=== RUN TestMessageCacheError -=== PAUSE TestMessageCacheError -=== RUN TestEncodeBlockRequestMessage -=== PAUSE TestEncodeBlockRequestMessage -=== RUN TestEncodeBlockRequestMessage_BlockHash -=== PAUSE TestEncodeBlockRequestMessage_BlockHash -=== RUN TestEncodeBlockRequestMessage_BlockNumber -=== PAUSE TestEncodeBlockRequestMessage_BlockNumber -=== RUN TestBlockRequestString -=== PAUSE TestBlockRequestString -=== RUN TestEncodeBlockRequestMessage_NoOptionals -=== PAUSE TestEncodeBlockRequestMessage_NoOptionals -=== RUN TestEncodeBlockResponseMessage_Empty -=== PAUSE TestEncodeBlockResponseMessage_Empty -=== RUN TestEncodeBlockResponseMessage_WithBody -=== PAUSE TestEncodeBlockResponseMessage_WithBody -=== RUN TestEncodeBlockResponseMessage_WithAll -=== PAUSE TestEncodeBlockResponseMessage_WithAll -=== RUN TestEncodeBlockAnnounceMessage -=== PAUSE TestEncodeBlockAnnounceMessage -=== RUN TestDecode_BlockAnnounceMessage -=== PAUSE TestDecode_BlockAnnounceMessage -=== RUN TestEncodeTransactionMessageSingleExtrinsic -=== PAUSE TestEncodeTransactionMessageSingleExtrinsic -=== RUN TestEncodeTransactionMessageTwoExtrinsics -=== PAUSE TestEncodeTransactionMessageTwoExtrinsics -=== RUN TestDecodeTransactionMessageOneExtrinsic -=== PAUSE TestDecodeTransactionMessageOneExtrinsic -=== RUN TestDecodeTransactionMessageTwoExtrinsics -=== PAUSE TestDecodeTransactionMessageTwoExtrinsics -=== RUN TestDecodeConsensusMessage -=== PAUSE TestDecodeConsensusMessage -=== RUN TestCreateDecoder_BlockAnnounce -=== PAUSE TestCreateDecoder_BlockAnnounce -=== RUN TestCreateNotificationsMessageHandler_BlockAnnounce -=== PAUSE TestCreateNotificationsMessageHandler_BlockAnnounce -=== RUN TestCreateNotificationsMessageHandler_BlockAnnounceHandshake -=== PAUSE TestCreateNotificationsMessageHandler_BlockAnnounceHandshake -=== RUN Test_HandshakeTimeout -=== PAUSE Test_HandshakeTimeout -=== RUN TestCreateNotificationsMessageHandler_HandleTransaction -=== PAUSE TestCreateNotificationsMessageHandler_HandleTransaction -=== RUN TestBlockAnnounceHandshakeSize -=== PAUSE TestBlockAnnounceHandshakeSize -=== RUN Test_sizedBufferPool -=== PAUSE Test_sizedBufferPool -=== RUN Test_sizedBufferPool_race -=== PAUSE Test_sizedBufferPool_race -=== RUN TestStartService -=== PAUSE TestStartService -=== RUN TestBroadcastMessages -=== PAUSE TestBroadcastMessages -=== RUN TestBroadcastDuplicateMessage -=== PAUSE TestBroadcastDuplicateMessage -=== RUN TestService_NodeRoles -=== PAUSE TestService_NodeRoles -=== RUN TestService_Health -=== PAUSE TestService_Health -=== RUN TestPersistPeerStore -=== PAUSE TestPersistPeerStore -=== RUN TestHandleConn -=== PAUSE TestHandleConn -=== RUN TestSerivceIsMajorSyncMetrics -=== PAUSE TestSerivceIsMajorSyncMetrics -=== RUN TestStreamManager -=== PAUSE TestStreamManager -=== RUN TestStreamManager_KeepStream - stream_manager_test.go:91: ---- SKIP: TestStreamManager_KeepStream (0.00s) -=== RUN TestDecodeSyncMessage -=== PAUSE TestDecodeSyncMessage -=== RUN TestDecodeTransactionHandshake -=== PAUSE TestDecodeTransactionHandshake -=== RUN TestHandleTransactionMessage -=== PAUSE TestHandleTransactionMessage -=== RUN TestStringToAddrInfo ---- PASS: TestStringToAddrInfo (0.00s) -=== RUN TestStringsToAddrInfos ---- PASS: TestStringsToAddrInfos (0.00s) -=== RUN TestGenerateKey ---- PASS: TestGenerateKey (0.01s) -=== RUN TestReadLEB128ToUint64 ---- PASS: TestReadLEB128ToUint64 (0.00s) -=== RUN TestInvalidLeb128 ---- PASS: TestInvalidLeb128 (0.00s) -=== CONT TestHandleBlockAnnounceMessage -=== CONT TestMessageCache -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce -=== CONT TestExternalAddrs -=== CONT Test_RemoveReservedPeers -=== CONT TestProtectUnprotectPeer -=== CONT TestBootstrap -=== CONT TestGossip -=== CONT TestBeginDiscovery ---- PASS: TestProtectUnprotectPeer (0.00s) -2021-12-06T17:45:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip3122330010/001/TestGossip/nodeA/node.key pkg=network -2021-12-06T17:45:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrs1708786389/001/TestExternalAddrs/node/node.key pkg=network -2021-12-06T17:45:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers2813187184/001/Test_RemoveReservedPeers/nodeA/node.key pkg=network -2021-12-06T17:45:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce3981515342/001/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeA/node.key pkg=network -objc[69995]: Attempt to use unknown class 0x7ff85f1a5500. -SIGABRT: abort -PC=0x7ff81d9e3dfe m=9 sigcode=0 - -goroutine 0 [idle]: -runtime: unknown pc 0x7ff81d9e3dfe -stack: frame={sp:0x20b2e1e58, fp:0x0} stack=[0x20b263338,0x20b2e2f38) -0x000000020b2e1d58: 0x0000000000000002 0x0000000000000002 -0x000000020b2e1d68: 0x00000000087c2000 0x00000000087c2400 -0x000000020b2e1d78: 0x0000000000000003 0x000000020b2e1de0 -0x000000020b2e1d88: 0x00007ff81d816639 0x0c9254b17699798d -0x000000020b2e1d98: 0x0000000000000003 0x0c9254b176990000 -0x000000020b2e1da8: 0x0000000000000030 0x0000000000000000 -0x000000020b2e1db8: 0x000000000000002d 0x000000000000002d -0x000000020b2e1dc8: 0x0000000000000000 0x00000000087c2000 -0x000000020b2e1dd8: 0x00007ff85f1b8000 0x000000020b2e1e10 -0x000000020b2e1de8: 0x00007ff81d816566 0x00007ff81d81652e -0x000000020b2e1df8: 0x000000000000002d 0x0000000000000001 -0x000000020b2e1e08: 0x00007ff85f1b8000 0x000000020b2e1e50 -0x000000020b2e1e18: 0x00007ff81d832ad6 0x000000000000002c -0x000000020b2e1e28: 0x000000000000002d 0x0000600003304000 -0x000000020b2e1e38: 0x0000000000000003 0x0000600002c00000 -0x000000020b2e1e48: 0x0000000000000000 0x000000020b2e1e80 -0x000000020b2e1e58: <0x00007ff81d9e5893 0x0000000000000000 -0x000000020b2e1e68: 0x000000200b2e1ec0 0x0000600002c00000 -0x000000020b2e1e78: 0x000000020b2e1ec0 0x0000600003304000 -0x000000020b2e1e88: 0x0000000000000003 0x0000000000000080 -0x000000020b2e1e98: 0x0000000000000001 0x000000020b2e1eb0 -0x000000020b2e1ea8: 0x00007ff81d9e5843 0x000000020b2e1ef0 -0x000000020b2e1eb8: 0x00007ff81d8b1cb2 0x0000600002c00080 -0x000000020b2e1ec8: 0x0000000000000000 0x0000600002c00000 -0x000000020b2e1ed8: 0x00007ffffffffff8 0x00007ff85f1a5500 -0x000000020b2e1ee8: 0x0000000080080001 0x000000020b2e1fd0 -0x000000020b2e1ef8: 0x00007ff81d8b1c40 0x0000003000000010 -0x000000020b2e1f08: 0x000000020b2e1fe0 0x000000020b2e1f20 -0x000000020b2e1f18: 0x0000000000000000 0x0000000000000000 -0x000000020b2e1f28: 0x00007ff85f1a5500 0x00007ff85f1a5500 -0x000000020b2e1f38: 0x0000000000000001 0x00000000ffffffff -0x000000020b2e1f48: 0x0000000000000000 0x0000000000000000 -runtime: unknown pc 0x7ff81d9e3dfe -stack: frame={sp:0x20b2e1e58, fp:0x0} stack=[0x20b263338,0x20b2e2f38) -0x000000020b2e1d58: 0x0000000000000002 0x0000000000000002 -0x000000020b2e1d68: 0x00000000087c2000 0x00000000087c2400 -0x000000020b2e1d78: 0x0000000000000003 0x000000020b2e1de0 -0x000000020b2e1d88: 0x00007ff81d816639 0x0c9254b17699798d -0x000000020b2e1d98: 0x0000000000000003 0x0c9254b176990000 -0x000000020b2e1da8: 0x0000000000000030 0x0000000000000000 -0x000000020b2e1db8: 0x000000000000002d 0x000000000000002d -0x000000020b2e1dc8: 0x0000000000000000 0x00000000087c2000 -0x000000020b2e1dd8: 0x00007ff85f1b8000 0x000000020b2e1e10 -0x000000020b2e1de8: 0x00007ff81d816566 0x00007ff81d81652e -0x000000020b2e1df8: 0x000000000000002d 0x0000000000000001 -0x000000020b2e1e08: 0x00007ff85f1b8000 0x000000020b2e1e50 -0x000000020b2e1e18: 0x00007ff81d832ad6 0x000000000000002c -0x000000020b2e1e28: 0x000000000000002d 0x0000600003304000 -0x000000020b2e1e38: 0x0000000000000003 0x0000600002c00000 -0x000000020b2e1e48: 0x0000000000000000 0x000000020b2e1e80 -0x000000020b2e1e58: <0x00007ff81d9e5893 0x0000000000000000 -0x000000020b2e1e68: 0x000000200b2e1ec0 0x0000600002c00000 -0x000000020b2e1e78: 0x000000020b2e1ec0 0x0000600003304000 -0x000000020b2e1e88: 0x0000000000000003 0x0000000000000080 -0x000000020b2e1e98: 0x0000000000000001 0x000000020b2e1eb0 -0x000000020b2e1ea8: 0x00007ff81d9e5843 0x000000020b2e1ef0 -0x000000020b2e1eb8: 0x00007ff81d8b1cb2 0x0000600002c00080 -0x000000020b2e1ec8: 0x0000000000000000 0x0000600002c00000 -0x000000020b2e1ed8: 0x00007ffffffffff8 0x00007ff85f1a5500 -0x000000020b2e1ee8: 0x0000000080080001 0x000000020b2e1fd0 -0x000000020b2e1ef8: 0x00007ff81d8b1c40 0x0000003000000010 -0x000000020b2e1f08: 0x000000020b2e1fe0 0x000000020b2e1f20 -0x000000020b2e1f18: 0x0000000000000000 0x0000000000000000 -0x000000020b2e1f28: 0x00007ff85f1a5500 0x00007ff85f1a5500 -0x000000020b2e1f38: 0x0000000000000001 0x00000000ffffffff -0x000000020b2e1f48: 0x0000000000000000 0x0000000000000000 - -goroutine 191 [syscall]: -runtime.cgocall(0x4ef10c0, 0xc000827ca0) - /usr/local/go/src/runtime/cgocall.go:156 +0x6e fp=0xc000827c78 sp=0xc000827c40 pc=0x400666e -net._C2func_getaddrinfo(0xc00081cc26, 0x0, 0xc000813d70, 0xc00012c428) - _cgo_gotypes.go:97 +0x8b fp=0xc000827ca0 sp=0xc000827c78 pc=0x42b8a4b -net.cgoLookupIPCNAME.func1({0xc00081cc26, 0xa, 0xc00081cc04}, 0x0, 0x5ec1da0) - /usr/local/go/src/net/cgo_unix.go:163 +0xb2 fp=0xc000827d10 sp=0xc000827ca0 pc=0x42bb712 -net.cgoLookupIPCNAME({0x51584a5, 0x3}, {0xc00081cc04, 0xc000130018}) - /usr/local/go/src/net/cgo_unix.go:163 +0x26e fp=0xc000827f10 sp=0xc000827d10 pc=0x42bac0e -net.cgoIPLookup(0x5ec1db0, {0x51584a5, 0x3}, {0xc00081cc04, 0x9}) - /usr/local/go/src/net/cgo_unix.go:220 +0x67 fp=0xc000827f80 sp=0xc000827f10 pc=0x42bb827 -net.cgoLookupIP·dwrap·22() - /usr/local/go/src/net/cgo_unix.go:230 +0x72 fp=0xc000827fe0 sp=0xc000827f80 pc=0x42bbed2 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc000827fe8 sp=0xc000827fe0 pc=0x406e821 -created by net.cgoLookupIP - /usr/local/go/src/net/cgo_unix.go:230 +0x1ba - -goroutine 1 [chan receive]: -testing.tRunner.func1() - /usr/local/go/src/testing/testing.go:1225 +0x635 -testing.tRunner(0xc000702340, 0xc0009afb18) - /usr/local/go/src/testing/testing.go:1265 +0x269 -testing.runTests(0xc000392380, {0x5eb2c40, 0x50, 0x50}, {0x5ec4260, 0xc0009afbd0, 0x5ec3420}) - /usr/local/go/src/testing/testing.go:1596 +0x7cb -testing.(*M).Run(0xc000392380) - /usr/local/go/src/testing/testing.go:1504 +0x9d2 -github.com/ChainSafe/gossamer/dot/network.TestMain(0x5102a20) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x34 -main.main() - _testmain.go:205 +0x265 - -goroutine 19 [select]: -github.com/ipfs/go-log/writer.(*MirrorWriter).logRoutine(0xc000247530) - /Users/eclesiojunior/go/pkg/mod/github.com/ipfs/go-log@v1.0.5/writer/writer.go:71 +0x197 -created by github.com/ipfs/go-log/writer.NewMirrorWriter - /Users/eclesiojunior/go/pkg/mod/github.com/ipfs/go-log@v1.0.5/writer/writer.go:36 +0x185 - -goroutine 20 [select]: -go.opencensus.io/stats/view.(*worker).start(0xc00023a100) - /Users/eclesiojunior/go/pkg/mod/go.opencensus.io@v0.23.0/stats/view/worker.go:276 +0x185 -created by go.opencensus.io/stats/view.init.0 - /Users/eclesiojunior/go/pkg/mod/go.opencensus.io@v0.23.0/stats/view/worker.go:34 +0xf9 - -goroutine 5 [runnable]: -github.com/libp2p/go-cidranger/net.Network.LeastCommonBitPosition({{0xc0023a8b90, 0x4, 0x4}, 0x2a}, {{0xc000019390, 0x4, 0x4}, 0x20}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/net/ip.go:243 +0x1ae -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00080bec0, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000809b40}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:253 +0x47b -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00001af60, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000019090}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0002c81e0, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000131af0}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0001c2240, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc0001c1250}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00018c120, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000077190}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00001d200, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000076790}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0003092c0, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc00003cc10}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00001c180, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000019c90}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc00008cf60, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc00003def0}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0001d3080, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc0001d6710}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0000175c0, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc000015f50}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc0003086c0, {{0xc0023a8b90, 0x406ff59, 0x4071517}, 0xc00003c410}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc000308300, {{0xc0023a8b90, 0x4a8ff01, 0x4071545}, 0xc00003c190}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).insert(0xc000308240, {{0xc0023a8b90, 0x10, 0xc0023a8b70}, 0x10}, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:264 +0x57c -github.com/libp2p/go-cidranger.(*prefixTrie).Insert(0xc000308240, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/trie.go:95 +0x13e -github.com/libp2p/go-cidranger.(*versionedRanger).Insert(0x50788e0, {0x5518520, 0xc0006fed80}) - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-cidranger@v1.1.0/version.go:29 +0x10f -github.com/libp2p/go-libp2p-asn-util.newAsnStore() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-asn-util@v0.0.0-20200825225859-85005c6cf052/asn.go:61 +0x22f -github.com/libp2p/go-libp2p-asn-util.newIndirectAsnStore.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-asn-util@v0.0.0-20200825225859-85005c6cf052/asn.go:89 +0x9d -created by github.com/libp2p/go-libp2p-asn-util.newIndirectAsnStore - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-asn-util@v0.0.0-20200825225859-85005c6cf052/asn.go:87 +0x119 - -goroutine 55 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 24 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0007024e0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockAnnounce(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:21 +0x4b -testing.tRunner(0xc0007024e0, 0x53b4a98) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 25 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000313040) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestDecodeBlockAnnounce(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:57 +0x4b -testing.tRunner(0xc000313040, 0x53b4a48) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 26 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000313380) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockAnnounceHandshake(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:97 +0x48 -testing.tRunner(0xc000313380, 0x53b4a88) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 27 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000313a00) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestDecodeBlockAnnounceHandshake(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:113 +0x4b -testing.tRunner(0xc000313a00, 0x53b4a40) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 28 [runnable]: -encoding/binary.intDataSize({0x4fd2ac0, 0x5e1bce0}) - /usr/local/go/src/encoding/binary/binary.go:700 +0x39e -encoding/binary.Write({0x55180c0, 0xc000997bc0}, {0x5541cb0, 0x6916988}, {0x4fd2ac0, 0x5e1bce0}) - /usr/local/go/src/encoding/binary/binary.go:273 +0x85 -github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).encodeFixedWidthInt(0xc001681398, {0x4fd2ac0, 0xc0023a43dd}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:255 +0xf2 -github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).marshal(0xc000997bc0, {0x4fd2ac0, 0xc0023a43dd}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:39 +0x7cf -github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).encodeArray(0x5082060, {0x5082060, 0xc0023a43c0}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:185 +0x209 -github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).marshal(0xc000997bc0, {0x5082060, 0xc0023a43c0}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:78 +0xb05 -github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).encodeStruct(0xc000997bc0, {0x50e6d00, 0xc0023a43c0}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:287 +0x145 -github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).marshal(0xc000997bc0, {0x50e6d00, 0xc0023a43c0}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:76 +0xbaf -github.com/ChainSafe/gossamer/pkg/scale.Marshal({0x50e6d00, 0xc0023a43c0}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:19 +0xf3 -github.com/ChainSafe/gossamer/dot/types.(*Header).Hash(0xc0023a4300) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/types/header.go:102 +0xea -github.com/ChainSafe/gossamer/dot/network.testBlockResponseMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:99 +0x38f -github.com/ChainSafe/gossamer/dot/network.NewMockSyncer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:68 +0x3d0 -github.com/ChainSafe/gossamer/dot/network.createTestService(0xc000313d40, 0xc0000cbc20) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:96 +0x65e -github.com/ChainSafe/gossamer/dot/network.TestHandleBlockAnnounceMessage(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:140 +0x1a5 -testing.tRunner(0xc000313d40, 0x53b4b20) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 29 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0003824e0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestValidateBlockAnnounceHandshake(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/block_announce_test.go:154 +0x48 -testing.tRunner(0xc0003824e0, 0x53b4c20) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 30 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000382820) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestBuildIdentity(0xc000382820) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/config_test.go:19 +0x4b -testing.tRunner(0xc000382820, 0x53b4a08) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 31 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000382b60) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestBuild(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/config_test.go:62 +0x45 -testing.tRunner(0xc000382b60, 0x53b4a10) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 32 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000382ea0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestMinPeers(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:20 +0x4b -testing.tRunner(0xc000382ea0, 0x53b4b80) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 33 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0003831e0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestMaxPeers(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:60 +0x4b -testing.tRunner(0xc0003831e0, 0x53b4b58) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 54 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 67 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000383860) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestPersistentPeers(0xc000383860) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:135 +0xe5 -testing.tRunner(0xc000383860, 0x53b4ba0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 68 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000383ba0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestRemovePeer(0xc000383ba0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:174 +0xe5 -testing.tRunner(0xc000383ba0, 0x53b4bb8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 69 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000702680) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestSetReservedPeer(0xc000702680) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:215 +0xe5 -testing.tRunner(0xc000702680, 0x53b4be0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 70 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0007029c0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestKadDHT(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:77 +0xd3 -testing.tRunner(0xc0007029c0, 0x53b4b48) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 71 [runnable]: -reflect.Value.Index({0x5082060, 0xc0008f78c0, 0x91}, 0x6) - /usr/local/go/src/reflect/value.go:1273 +0x48f -github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).encodeArray(0x5082060, {0x5082060, 0xc0008f78c0}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:185 +0x1ef -github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).marshal(0xc0008d1800, {0x5082060, 0xc0008f78c0}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:78 +0xb05 -github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).encodeStruct(0xc0008d1800, {0x50e6d00, 0xc0008f78c0}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:287 +0x145 -github.com/ChainSafe/gossamer/pkg/scale.(*encodeState).marshal(0xc0008d1800, {0x50e6d00, 0xc0008f78c0}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:76 +0xbaf -github.com/ChainSafe/gossamer/pkg/scale.Marshal({0x50e6d00, 0xc0008f78c0}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/pkg/scale/encode.go:19 +0xf3 -github.com/ChainSafe/gossamer/dot/types.(*Header).Hash(0xc0008f7800) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/types/header.go:102 +0xea -github.com/ChainSafe/gossamer/dot/network.testBlockResponseMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:99 +0x38f -github.com/ChainSafe/gossamer/dot/network.NewMockSyncer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:68 +0x3d0 -github.com/ChainSafe/gossamer/dot/network.createTestService(0xc000702d00, 0xc0003ce480) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:96 +0x65e -github.com/ChainSafe/gossamer/dot/network.TestBeginDiscovery(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:114 +0x1c5 -testing.tRunner(0xc000702d00, 0x53b49d8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 72 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000703040) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestBeginDiscovery_ThreeNodes(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:143 +0x4b -testing.tRunner(0xc000703040, 0x53b49d0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 73 [select]: -github.com/chyeh/pubip.Get() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:168 +0x21d -github.com/ChainSafe/gossamer/dot/network.newHost({0x5533198, 0xc0006feac0}, 0xc000262120) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host.go:77 +0x352 -github.com/ChainSafe/gossamer/dot/network.NewService(0xc000262120) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:130 +0x3bf -github.com/ChainSafe/gossamer/dot/network.createTestService(0xc000703380, 0xc000262120) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:101 +0x6ce -github.com/ChainSafe/gossamer/dot/network.TestGossip(0xc000703380) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/gossip_test.go:33 +0x2a5 -testing.tRunner(0xc000703380, 0x53b4b18) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 74 [runnable]: -github.com/chyeh/pubip.Get() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x55d -github.com/ChainSafe/gossamer/dot/network.newHost({0x5533198, 0xc000728640}, 0xc0003ce000) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host.go:77 +0x352 -github.com/ChainSafe/gossamer/dot/network.NewService(0xc0003ce000) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:130 +0x3bf -github.com/ChainSafe/gossamer/dot/network.createTestService(0xc0007036c0, 0xc0003ce000) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:101 +0x6ce -github.com/ChainSafe/gossamer/dot/network.TestExternalAddrs(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:30 +0x1b0 -testing.tRunner(0xc0007036c0, 0x53b4b08) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 75 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000703a00) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestExternalAddrsPublicIP(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:46 +0x4b -testing.tRunner(0xc000703a00, 0x53b4b00) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 76 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000703d40) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestConnect(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:80 +0x4b -testing.tRunner(0xc000703d40, 0x53b4a18) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 77 [runnable]: -golang.org/x/crypto/blake2b.newDigest(0x20, {0x0, 0x0, 0x0}) - /Users/eclesiojunior/go/pkg/mod/golang.org/x/crypto@v0.0.0-20210813211128-0a44fdfbc16e/blake2b/blake2b.go:108 +0x76 -golang.org/x/crypto/blake2b.New256(...) - /Users/eclesiojunior/go/pkg/mod/golang.org/x/crypto@v0.0.0-20210813211128-0a44fdfbc16e/blake2b/blake2b.go:89 -github.com/ChainSafe/gossamer/lib/common.Blake2bHash({0xc000368a20, 0x63, 0x81}) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/lib/common/hasher.go:32 +0x65 -github.com/ChainSafe/gossamer/dot/types.(*Header).Hash(0xc000378180) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/types/header.go:107 +0xff -github.com/ChainSafe/gossamer/dot/network.testBlockResponseMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:99 +0x38f -github.com/ChainSafe/gossamer/dot/network.NewMockSyncer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/test_helpers.go:68 +0x3d0 -github.com/ChainSafe/gossamer/dot/network.createTestService(0xc0006a4820, 0xc0000cbe60) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:96 +0x65e -github.com/ChainSafe/gossamer/dot/network.TestBootstrap(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:135 +0x1c5 -testing.tRunner(0xc0006a4820, 0x53b49f0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 78 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0006a4b60) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestSend(0xc0006a4b60) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:167 +0x4b -testing.tRunner(0xc0006a4b60, 0x53b4bc0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 79 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0006a4ea0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestExistingStream(0xc0006a4ea0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:217 +0x4b -testing.tRunner(0xc0006a4ea0, 0x53b4af8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 80 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0006a51e0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestStreamCloseMetadataCleanup(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:283 +0x4b -testing.tRunner(0xc0006a51e0, 0x53b4bf8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 81 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0006a5520) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.Test_PeerSupportsProtocol(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:360 +0x4b -testing.tRunner(0xc0006a5520, 0x53b4c48) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 82 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0006a5860) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.Test_AddReservedPeers(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:426 +0x48 -testing.tRunner(0xc0006a5860, 0x53b4c28) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 83 [runnable]: -github.com/chyeh/pubip.Get() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x55d -github.com/ChainSafe/gossamer/dot/network.newHost({0x5533198, 0xc0009f05c0}, 0xc0006c0000) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host.go:77 +0x352 -github.com/ChainSafe/gossamer/dot/network.NewService(0xc0006c0000) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:130 +0x3bf -github.com/ChainSafe/gossamer/dot/network.createTestService(0xc0006a5ba0, 0xc0006c0000) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:101 +0x6ce -github.com/ChainSafe/gossamer/dot/network.Test_RemoveReservedPeers(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:470 +0x1c5 -testing.tRunner(0xc0006a5ba0, 0x53b4c50) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 84 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00027e4e0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestStreamCloseEOF(0xc00027e4e0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:507 +0x4b -testing.tRunner(0xc00027e4e0, 0x53b4bf0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 85 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00027e820) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestPeerConnect(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:560 +0x4b -testing.tRunner(0xc00027e820, 0x53b4b88) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 86 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00027f860) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestBannedPeer(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:601 +0x4b -testing.tRunner(0xc00027f860, 0x53b49c8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 87 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00027fba0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestPeerReputation(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:658 +0x4b -testing.tRunner(0xc00027fba0, 0x53b4b90) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 88 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000001520) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeLightRequest(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/light_test.go:19 +0x4b -testing.tRunner(0xc000001520, 0x53b4ad8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 89 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000001860) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeLightResponse(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/light_test.go:34 +0x4b -testing.tRunner(0xc000001860, 0x53b4ae0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 90 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000001ba0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestDecodeLightMessage(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/light_test.go:52 +0x4b -testing.tRunner(0xc000001ba0, 0x53b4a58) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 91 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000102b60) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestHandleLightMessage_Response(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/light_test.go:90 +0x4b -testing.tRunner(0xc000102b60, 0x53b4b30) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 92 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000102ea0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestMDNS(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/mdns_test.go:19 +0x48 -testing.tRunner(0xc000102ea0, 0x53b4b50) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 93 [sleep]: -time.Sleep(0x1dcd6500) - /usr/local/go/src/runtime/time.go:193 +0x12e -github.com/ChainSafe/gossamer/dot/network.TestMessageCache(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_cache_test.go:45 +0x345 -testing.tRunner(0xc000103380, 0x53b4b78) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 94 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000103860) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestMessageCacheError(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_cache_test.go:57 +0x45 -testing.tRunner(0xc000103860, 0x53b4b70) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 95 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000103ba0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockRequestMessage(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:21 +0x4b -testing.tRunner(0xc000103ba0, 0x53b4ab8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 96 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00043c000) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockRequestMessage_BlockHash(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:48 +0x4b -testing.tRunner(0xc00043c000, 0x53b4aa0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 97 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00043c340) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockRequestMessage_BlockNumber(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:72 +0x48 -testing.tRunner(0xc00043c340, 0x53b4aa8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 98 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00043c680) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestBlockRequestString(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:95 +0x48 -testing.tRunner(0xc00043c680, 0x53b49e8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 99 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00043c9c0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockRequestMessage_NoOptionals(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:116 +0x48 -testing.tRunner(0xc00043c9c0, 0x53b4ab0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 100 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00043cd00) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockResponseMessage_Empty(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:138 +0x48 -testing.tRunner(0xc00043cd00, 0x53b4ac0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 101 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00043d040) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockResponseMessage_WithBody(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:170 +0x4b -testing.tRunner(0xc00043d040, 0x53b4ad0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 102 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00043d380) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockResponseMessage_WithAll(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:221 +0x4b -testing.tRunner(0xc00043d380, 0x53b4ac8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 103 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00043d6c0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeBlockAnnounceMessage(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:284 +0x4b -testing.tRunner(0xc00043d6c0, 0x53b4a90) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 104 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00043da00) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestDecode_BlockAnnounceMessage(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:308 +0x4b -testing.tRunner(0xc00043da00, 0x53b4a80) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 105 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00043dd40) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeTransactionMessageSingleExtrinsic(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:343 +0x48 -testing.tRunner(0xc00043dd40, 0x53b4ae8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 106 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0004461a0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestEncodeTransactionMessageTwoExtrinsics(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:364 +0x48 -testing.tRunner(0xc0004461a0, 0x53b4af0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 107 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0004464e0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestDecodeTransactionMessageOneExtrinsic(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:380 +0x48 -testing.tRunner(0xc0004464e0, 0x53b4a70) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 108 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000446820) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestDecodeTransactionMessageTwoExtrinsics(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:397 +0x48 -testing.tRunner(0xc000446820, 0x53b4a78) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 109 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000446b60) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestDecodeConsensusMessage(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message_test.go:415 +0x48 -testing.tRunner(0xc000446b60, 0x53b4a50) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 110 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000446ea0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestCreateDecoder_BlockAnnounce(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:25 +0x4b -testing.tRunner(0xc000446ea0, 0x53b4a20) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 111 [runnable]: -github.com/chyeh/pubip.Get() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x55d -github.com/ChainSafe/gossamer/dot/network.newHost({0x5533198, 0xc001735740}, 0xc0003ce120) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host.go:77 +0x352 -github.com/ChainSafe/gossamer/dot/network.NewService(0xc0003ce120) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:130 +0x3bf -github.com/ChainSafe/gossamer/dot/network.createTestService(0xc0004471e0, 0xc0003ce120) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:101 +0x6ce -github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_BlockAnnounce(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:100 +0x1c5 -testing.tRunner(0xc0004471e0, 0x53b4a30) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 112 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000447520) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:152 +0x4b -testing.tRunner(0xc000447520, 0x53b4a28) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 113 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000447860) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.Test_HandshakeTimeout(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:231 +0x4b -testing.tRunner(0xc000447860, 0x53b4c40) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 114 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000447ba0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_HandleTransaction(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:313 +0x4b -testing.tRunner(0xc000447ba0, 0x53b4a38) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 115 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000452000) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestBlockAnnounceHandshakeSize(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:423 +0x48 -testing.tRunner(0xc000452000, 0x53b49e0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 116 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000452340) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.Test_sizedBufferPool(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/pool_test.go:36 +0x48 -testing.tRunner(0xc000452340, 0x53b4c60) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 117 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000452680) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.Test_sizedBufferPool_race(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/pool_test.go:69 +0x4b -testing.tRunner(0xc000452680, 0x53b4c58) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 118 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0004529c0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestStartService(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:130 +0x2f -testing.tRunner(0xc0004529c0, 0x53b4be8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 119 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000452d00) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:138 +0x4b -testing.tRunner(0xc000452d00, 0x53b4a00) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 120 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000453040) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:185 +0x4b -testing.tRunner(0xc000453040, 0x53b49f8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 121 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000453380) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestService_NodeRoles(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:259 +0x48 -testing.tRunner(0xc000453380, 0x53b4bd8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 122 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc0004536c0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestService_Health(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:273 +0x48 -testing.tRunner(0xc0004536c0, 0x53b4bd0) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 123 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000453a00) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestPersistPeerStore(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:298 +0x4b -testing.tRunner(0xc000453a00, 0x53b4b98) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 124 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc000453d40) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestHandleConn(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:324 +0x4b -testing.tRunner(0xc000453d40, 0x53b4b28) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 125 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00045c1a0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestSerivceIsMajorSyncMetrics(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:354 +0x4b -testing.tRunner(0xc00045c1a0, 0x53b4bc8) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 126 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00045c4e0) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestStreamManager(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager_test.go:67 +0x48 -testing.tRunner(0xc00045c4e0, 0x53b4c08) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 128 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00045cb60) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestDecodeSyncMessage(0xc00045cb60) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/sync_test.go:14 +0x48 -testing.tRunner(0xc00045cb60, 0x53b4a60) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 129 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00045cd00) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestDecodeTransactionHandshake(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction_test.go:19 +0x31 -testing.tRunner(0xc00045cd00, 0x53b4a68) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 130 [chan receive]: -testing.(*testContext).waitParallel(0xc0003380a0) - /usr/local/go/src/testing/testing.go:1364 +0x126 -testing.(*T).Parallel(0xc00045d040) - /usr/local/go/src/testing/testing.go:1105 +0x4b9 -github.com/ChainSafe/gossamer/dot/network.TestHandleTransactionMessage(0x0) - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction_test.go:32 +0x48 -testing.tRunner(0xc00045d040, 0x53b4b38) - /usr/local/go/src/testing/testing.go:1259 +0x230 -created by testing.(*T).Run - /usr/local/go/src/testing/testing.go:1306 +0x727 - -goroutine 136 [runnable]: -net/url.getScheme({0x5254021, 0x1b}) - /usr/local/go/src/net/url/url.go:431 +0x1b7 -net/url.parse({0x5254021, 0x1b}, 0x0) - /usr/local/go/src/net/url/url.go:528 +0x21b -net/url.Parse({0x5254021, 0x0}) - /usr/local/go/src/net/url/url.go:478 +0x65 -net/http.NewRequestWithContext({0x55331d0, 0xc000130018}, {0x51581c9, 0x3}, {0x5254021, 0x1b}, {0x0, 0x0}) - /usr/local/go/src/net/http/request.go:868 +0x11e -net/http.NewRequest(...) - /usr/local/go/src/net/http/request.go:830 -github.com/chyeh/pubip.GetIPBy({0x5254021, 0x1b}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:44 +0x15a -github.com/chyeh/pubip.worker({0x5254021, 0x1b}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 146 [runnable]: -sync.(*Once).doSlow(0xc000236048, 0xc0012072c8) - /usr/local/go/src/sync/once.go:68 +0x128 -sync.(*Once).Do(0xc000236048, 0x5) - /usr/local/go/src/sync/once.go:59 +0x47 -net/http.(*http2Transport).connPool(...) - /usr/local/go/src/net/http/h2_bundle.go:6821 -net/http.(*http2Transport).RoundTripOpt(0xc000236000, 0xc0009ae000, {0x61}) - /usr/local/go/src/net/http/h2_bundle.go:7078 +0x5a5 -net/http.(*http2Transport).RoundTrip(...) - /usr/local/go/src/net/http/h2_bundle.go:7046 -net/http.http2noDialH2RoundTripper.RoundTrip({0x5ead980}, 0xc0009ae000) - /usr/local/go/src/net/http/h2_bundle.go:9303 +0x3d -net/http.(*Transport).roundTrip(0x5ead980, 0xc0009ae000) - /usr/local/go/src/net/http/transport.go:539 +0x638 -net/http.(*Transport).RoundTrip(0xc0009ae000, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc0009ae000, {0x5519140, 0x5ead980}, {0xc00045c820, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc000996750, 0xc0009ae000, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc000996750, 0xc0009ae000) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x524b361, 0x15}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x524b361, 0x15}, 0xc00038b7d0, 0x415f1e8) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 147 [runnable]: -net/url.parse({0x5254021, 0x1b}, 0x0) - /usr/local/go/src/net/url/url.go:519 +0x185 -net/url.Parse({0x5254021, 0x0}) - /usr/local/go/src/net/url/url.go:478 +0x65 -net/http.NewRequestWithContext({0x55331d0, 0xc000130018}, {0x51581c9, 0x3}, {0x5254021, 0x1b}, {0x0, 0x0}) - /usr/local/go/src/net/http/request.go:868 +0x11e -net/http.NewRequest(...) - /usr/local/go/src/net/http/request.go:830 -github.com/chyeh/pubip.GetIPBy({0x5254021, 0x1b}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:44 +0x15a -github.com/chyeh/pubip.worker({0x5254021, 0x1b}, 0x6800000000, 0x3400000068) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 148 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc0006bce80, {{}, 0x0, {0x524770e, 0x4}, {0xc0007ba884, 0xc}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc0007aa100) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc0007aa100, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc0007aa100, {0x5519140, 0x5ead980}, {0xc00045d6c0, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc000996870, 0xc0007aa100, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc000996870, 0xc0007aa100) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x524770e, 0x13}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x524770e, 0x13}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 149 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc0006fedc0, {{}, 0x0, {0x524eacf, 0x4}, {0xc0023a8ba3, 0xd}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc0009ae200) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc0009ae200, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc0009ae200, {0x5519140, 0x5ead980}, {0xc00045d860, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc000996840, 0xc0009ae200, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc000996840, 0xc0009ae200) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x524eacf, 0x17}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x524eacf, 0x17}, 0xc00022aa80, 0x4071545) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 150 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc0006bd000, {{}, 0x0, {0x52493c3, 0x4}, {0xc0007ba8c0, 0x10}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc0007aa300) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc0007aa300, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc0007aa300, {0x5519140, 0x5ead980}, {0xc00045da00, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc000996900, 0xc0007aa300, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc000996900, 0xc0007aa300) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x52493c3, 0x14}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x52493c3, 0x14}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 151 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc0006bcec0, {{}, 0x0, {0x524b337, 0x4}, {0xc0007ba892, 0xe}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc0007aa200) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc0007aa200, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc0007aa200, {0x5519140, 0x5ead980}, {0xc00045dba0, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc0009968a0, 0xc0007aa200, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc0009968a0, 0xc0007aa200) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x524b337, 0x15}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x524b337, 0x15}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 152 [runnable]: -net/http.(*Transport).getConn(0x5ead980, 0xc00035a580, {{}, 0x0, {0x51be1fc, 0x4}, {0xc00240ec45, 0xb}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc000372100) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc000372100, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc000372100, {0x5519140, 0x5ead980}, {0xc00045dd40, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc0009968d0, 0xc000372100, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc0009968d0, 0xc000372100) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x51be1fc, 0xf}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x51be1fc, 0xf}, 0x0, 0xc00027d3a0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 153 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc0007286c0, {{}, 0x0, {0x525577d, 0x4}, {0xc000796240, 0x18}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc001256000) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc001256000, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc001256000, {0x5519140, 0x5ead980}, {0xc0009ce340, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc000996720, 0xc001256000, {0x0, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc000996720, 0xc001256000) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x525577d, 0x1c}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x525577d, 0x1c}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 162 [semacquire]: -sync.runtime_SemacquireMutex(0xc0008c90b8, 0x9c, 0x3) - /usr/local/go/src/runtime/sema.go:71 +0x25 -sync.(*Mutex).lockSlow(0xc00023604c) - /usr/local/go/src/sync/mutex.go:138 +0x21d -sync.(*Mutex).Lock(0xc00023604c) - /usr/local/go/src/sync/mutex.go:81 +0x65 -sync.(*Once).doSlow(0xc000236048, 0xc0008c92c8) - /usr/local/go/src/sync/once.go:64 +0x65 -sync.(*Once).Do(0xc000236048, 0x5) - /usr/local/go/src/sync/once.go:59 +0x47 -net/http.(*http2Transport).connPool(...) - /usr/local/go/src/net/http/h2_bundle.go:6821 -net/http.(*http2Transport).RoundTripOpt(0xc000236000, 0xc000294200, {0x61}) - /usr/local/go/src/net/http/h2_bundle.go:7078 +0x5a5 -net/http.(*http2Transport).RoundTrip(...) - /usr/local/go/src/net/http/h2_bundle.go:7046 -net/http.http2noDialH2RoundTripper.RoundTrip({0x5ead980}, 0xc000294200) - /usr/local/go/src/net/http/h2_bundle.go:9303 +0x3d -net/http.(*Transport).roundTrip(0x5ead980, 0xc000294200) - /usr/local/go/src/net/http/transport.go:539 +0x638 -net/http.(*Transport).RoundTrip(0xc000294200, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc000294200, {0x5519140, 0x5ead980}, {0xc000313860, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc0007e9b30, 0xc000294200, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc0007e9b30, 0xc000294200) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x524b361, 0x15}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x524b361, 0x15}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 178 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc0008158c0, {{}, 0x0, {0x525b25a, 0x4}, {0xc00078dac0, 0x1c}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc000742100) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc000742100, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc000742100, {0x5519140, 0x5ead980}, {0xc00081e000, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc0008137d0, 0xc000742100, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc0008137d0, 0xc000742100) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x525b25a, 0x20}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x525b25a, 0x20}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 194 [select]: -github.com/dgraph-io/ristretto.(*defaultPolicy).processItems(0xc0006b7d10) - /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3-0.20200630154024-f66de99634de/policy.go:96 +0x16d -created by github.com/dgraph-io/ristretto.newDefaultPolicy - /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3-0.20200630154024-f66de99634de/policy.go:80 +0x2d1 - -goroutine 8 [select]: -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc001248240}, {0x51584a5, 0x5ec4260}, {0xc000796240, 0x15}) - /usr/local/go/src/net/lookup.go:302 +0x81c -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc001248240}, {0x51584a5, 0x3}, {0xc000796240, 0x18}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc001248240}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc000796240, 0x18}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc000796240, 0x18}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc000796240, 0x18}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x525577d, 0x4}, {0xc000796240, 0x18}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x0, 0xc00029db80) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 179 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc000815940, {{}, 0x0, {0x5255799, 0x4}, {0xc00072a180, 0x18}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc000742200) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc000742200, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc000742200, {0x5519140, 0x5ead980}, {0xc00081e1a0, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc0008138c0, 0xc000742200, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc0008138c0, 0xc000742200) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x5255799, 0x1c}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x5255799, 0x1c}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 180 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc000815980, {{}, 0x0, {0x51e584a, 0x4}, {0xc00081cbe3, 0xd}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc000742300) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc000742300, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc000742300, {0x5519140, 0x5ead980}, {0xc00081e340, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc000813980, 0xc000742300, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc000813980, 0xc000742300) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x51e584a, 0x11}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x51e584a, 0x11}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 181 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc000815a40, {{}, 0x0, {0x524b34c, 0x4}, {0xc00072a198, 0x11}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc000742400) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc000742400, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc000742400, {0x5519140, 0x5ead980}, {0xc00081e4e0, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc000813aa0, 0xc000742400, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc000813aa0, 0xc000742400) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x524b34c, 0x15}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x524b34c, 0x15}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 182 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc000815b00, {{}, 0x0, {0x51cc2de, 0x4}, {0xc00081cc04, 0xc}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc000742500) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc000742500, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc000742500, {0x5519140, 0x5ead980}, {0xc00081e680, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc000813bf0, 0xc000742500, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc000813bf0, 0xc000742500) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x51cc2de, 0x10}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x51cc2de, 0x10}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 183 [runnable]: -net/url.getScheme({0x52557b5, 0x1c}) - /usr/local/go/src/net/url/url.go:431 +0x1b7 -net/url.parse({0x52557b5, 0x1c}, 0x0) - /usr/local/go/src/net/url/url.go:528 +0x21b -net/url.Parse({0x52557b5, 0x0}) - /usr/local/go/src/net/url/url.go:478 +0x65 -net/http.NewRequestWithContext({0x55331d0, 0xc000130018}, {0x51581c9, 0x3}, {0x52557b5, 0x1c}, {0x0, 0x0}) - /usr/local/go/src/net/http/request.go:868 +0x11e -net/http.NewRequest(...) - /usr/local/go/src/net/http/request.go:830 -github.com/chyeh/pubip.GetIPBy({0x52557b5, 0x1c}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:44 +0x15a -github.com/chyeh/pubip.worker({0x52557b5, 0x1c}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 137 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc00168c5c0, {{}, 0x0, {0x524770e, 0x4}, {0xc000917fa4, 0xc}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc00090c100) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc00090c100, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc00090c100, {0x5519140, 0x5ead980}, {0xc000920000, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc0002d37d0, 0xc00090c100, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc0002d37d0, 0xc00090c100) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x524770e, 0x13}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x524770e, 0x13}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 38 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 154 [select]: -net/http.(*Transport).getConn(0x5ead980, 0xc0006feb00, {{}, 0x0, {0x524eacf, 0x4}, {0xc0023a8693, 0xd}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc0009ae100) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc0009ae100, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc0009ae100, {0x5519140, 0x5ead980}, {0xc0009ce4e0, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc000997c20, 0xc0009ae100, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc000997c20, 0xc0009ae100) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x524eacf, 0x17}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x524eacf, 0x17}, 0x0, 0x0) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 155 [runnable]: -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0023a8693, 0xd}) - /usr/local/go/src/net/dial.go:406 +0x653 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0023a8693, 0xd}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524eacf, 0x4}, {0xc0023a8693, 0xd}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x17, 0xc00099e370) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 9 [runnable]: -net/http.(*Transport).getConn(0x5ead980, 0xc000728840, {{}, 0x0, {0x52493c3, 0x4}, {0xc0012462d0, 0x10}, 0x0}) - /usr/local/go/src/net/http/transport.go:1372 +0xa45 -net/http.(*Transport).roundTrip(0x5ead980, 0xc001256100) - /usr/local/go/src/net/http/transport.go:581 +0xcdf -net/http.(*Transport).RoundTrip(0xc001256100, 0x5519140) - /usr/local/go/src/net/http/roundtrip.go:18 +0x37 -net/http.send(0xc001256100, {0x5519140, 0x5ead980}, {0xc00125a1a0, 0x40522a0, 0x0}) - /usr/local/go/src/net/http/client.go:252 +0x93f -net/http.(*Client).send(0xc000717950, 0xc001256100, {0x43b968e, 0x14, 0x0}) - /usr/local/go/src/net/http/client.go:176 +0x158 -net/http.(*Client).do(0xc000717950, 0xc001256100) - /usr/local/go/src/net/http/client.go:725 +0x1087 -net/http.(*Client).Do(...) - /usr/local/go/src/net/http/client.go:593 -github.com/chyeh/pubip.GetIPBy({0x52493c3, 0x14}) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:50 +0x225 -github.com/chyeh/pubip.worker({0x52493c3, 0x14}, 0xc001261fd0, 0x46039a8) - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:130 +0x5a -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 10 [select]: -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc001248720}, {0x51584a5, 0xc000049b30}, {0xc0012462d0, 0xd}) - /usr/local/go/src/net/lookup.go:302 +0x81c -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc001248720}, {0x51584a5, 0x3}, {0xc0012462d0, 0x10}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc001248720}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc0012462d0, 0x10}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0012462d0, 0x10}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0012462d0, 0x10}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x52493c3, 0x4}, {0xc0012462d0, 0x10}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x14, 0xc00029dc30) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 39 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 184 [runnable]: -sync.(*WaitGroup).Add(0x6916b88, 0x1) - /usr/local/go/src/sync/waitgroup.go:80 +0x1c5 -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc00081b680}, {0x51584a5, 0xc0023b0f68}, {0xc00078dac0, 0x19}) - /usr/local/go/src/net/lookup.go:293 +0x585 -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc00081b680}, {0x51584a5, 0x3}, {0xc00078dac0, 0x1c}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc00081b680}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc00078dac0, 0x1c}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00078dac0, 0x1c}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00078dac0, 0x1c}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x525b25a, 0x4}, {0xc00078dac0, 0x1c}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x20, 0xc000731b80) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 138 [select]: -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc00092c180}, {0x51584a5, 0xc0008c70d8}, {0xc000917fa4, 0x9}) - /usr/local/go/src/net/lookup.go:302 +0x81c -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc00092c180}, {0x51584a5, 0x3}, {0xc000917fa4, 0xc}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc00092c180}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc000917fa4, 0xc}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc000917fa4, 0xc}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc000917fa4, 0xc}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524770e, 0x4}, {0xc000917fa4, 0xc}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x13, 0xc000348580) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 195 [select]: -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc0007be660}, {0x51584a5, 0xc00005b930}, {0xc0007ba884, 0x9}) - /usr/local/go/src/net/lookup.go:302 +0x81c -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc0007be660}, {0x51584a5, 0x3}, {0xc0007ba884, 0xc}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc0007be660}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc0007ba884, 0xc}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba884, 0xc}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba884, 0xc}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524770e, 0x4}, {0xc0007ba884, 0xc}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x0, 0xc00079a790) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 196 [select]: -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc0007be420}, {0x51584a5, 0xc00248ef68}, {0xc0007ba892, 0xb}) - /usr/local/go/src/net/lookup.go:302 +0x81c -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc0007be420}, {0x51584a5, 0x3}, {0xc0007ba892, 0xe}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc0007be420}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc0007ba892, 0xe}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba892, 0xe}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba892, 0xe}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524b337, 0x4}, {0xc0007ba892, 0xe}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x0, 0xc00079a840) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 185 [runnable]: -net/http.(*Transport).queueForDial·dwrap·107() - /usr/local/go/src/net/http/transport.go:1415 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 156 [select]: -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc0009a8d80}, {0x51584a5, 0xc0000544b0}, {0xc0023a8ba3, 0xa}) - /usr/local/go/src/net/lookup.go:302 +0x81c -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc0009a8d80}, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xd}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc0009a8d80}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xd}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xd}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xd}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524eacf, 0x4}, {0xc0023a8ba3, 0xd}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x17, 0xc00099e420) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 40 [runnable]: -net/http.(*Transport).queueForDial·dwrap·107() - /usr/local/go/src/net/http/transport.go:1415 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 186 [select]: -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc00081ba40}, {0x51584a5, 0xc0000563d0}, {0xc00081cbe3, 0xa}) - /usr/local/go/src/net/lookup.go:302 +0x81c -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc00081ba40}, {0x51584a5, 0x3}, {0xc00081cbe3, 0xd}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc00081ba40}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc00081cbe3, 0xd}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00081cbe3, 0xd}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00081cbe3, 0xd}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x51e584a, 0x4}, {0xc00081cbe3, 0xd}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x11, 0xc000731ce0) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 197 [select]: -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc0007be9c0}, {0x51584a5, 0xc00005b6b0}, {0xc0007ba8c0, 0xd}) - /usr/local/go/src/net/lookup.go:302 +0x81c -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc0007be9c0}, {0x51584a5, 0x3}, {0xc0007ba8c0, 0x10}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc0007be9c0}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc0007ba8c0, 0x10}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba8c0, 0x10}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc0007ba8c0, 0x10}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x52493c3, 0x4}, {0xc0007ba8c0, 0x10}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x0, 0xc00079a8f0) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 187 [select]: -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc00081bda0}, {0x51584a5, 0xc000056170}, {0xc00072a198, 0xe}) - /usr/local/go/src/net/lookup.go:302 +0x81c -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc00081bda0}, {0x51584a5, 0x3}, {0xc00072a198, 0x11}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc00081bda0}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc00072a198, 0x11}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00072a198, 0x11}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00072a198, 0x11}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x524b34c, 0x4}, {0xc00072a198, 0x11}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x15, 0xc000731d90) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 139 [select]: -net.cgoLookupIP({0x5533198, 0xc00168c600}, {0x51584a5, 0x9}, {0xc000917fa4, 0x0}) - /usr/local/go/src/net/cgo_unix.go:231 +0x289 -net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc00168c600}, {0x51584a5, 0x3}, {0xc000917fa4, 0x9}) - /usr/local/go/src/net/lookup_unix.go:97 +0x113 -net.glob..func1({0x5533198, 0xc00168c600}, 0xc0012188d0, {0x51584a5, 0x3}, {0xc000917fa4, 0x9}) - /usr/local/go/src/net/hook.go:23 +0x89 -net.(*Resolver).lookupIPAddr.func1() - /usr/local/go/src/net/lookup.go:296 +0x133 -internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc0002dac30, {0xc000917fb3, 0xd}, 0xc00168c640) - /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 -created by internal/singleflight.(*Group).DoChan - /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b - -goroutine 198 [select]: -net.cgoLookupIP({0x5533198, 0xc0006bd040}, {0x51584a5, 0xd}, {0xc0007ba8c0, 0x0}) - /usr/local/go/src/net/cgo_unix.go:231 +0x289 -net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc0006bd040}, {0x51584a5, 0x3}, {0xc0007ba8c0, 0xd}) - /usr/local/go/src/net/lookup_unix.go:97 +0x113 -net.glob..func1({0x5533198, 0xc0006bd040}, 0xc00027d060, {0x51584a5, 0x3}, {0xc0007ba8c0, 0xd}) - /usr/local/go/src/net/hook.go:23 +0x89 -net.(*Resolver).lookupIPAddr.func1() - /usr/local/go/src/net/lookup.go:296 +0x133 -internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc000032f00, {0xc00003e420, 0x11}, 0xc0006bd080) - /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 -created by internal/singleflight.(*Group).DoChan - /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b - -goroutine 157 [runnable]: -context.(*cancelCtx).Done(0xc0006fee00) - /usr/local/go/src/context/context.go:358 +0x1f8 -net.cgoLookupIP({0x5533198, 0xc0006fee00}, {0x51584a5, 0xa}, {0xc0023a8ba3, 0x0}) - /usr/local/go/src/net/cgo_unix.go:234 +0x202 -net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc0006fee00}, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xa}) - /usr/local/go/src/net/lookup_unix.go:97 +0x113 -net.glob..func1({0x5533198, 0xc0006fee00}, 0xc0023a6100, {0x51584a5, 0x3}, {0xc0023a8ba3, 0xa}) - /usr/local/go/src/net/hook.go:23 +0x89 -net.(*Resolver).lookupIPAddr.func1() - /usr/local/go/src/net/lookup.go:296 +0x133 -internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc000989630, {0xc0023a8bb2, 0xe}, 0xc0006fee40) - /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 -created by internal/singleflight.(*Group).DoChan - /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b - -goroutine 188 [select]: -net.cgoLookupIP({0x5533198, 0xc000815a80}, {0x51584a5, 0xe}, {0xc00072a198, 0x0}) - /usr/local/go/src/net/cgo_unix.go:231 +0x289 -net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc000815a80}, {0x51584a5, 0x3}, {0xc00072a198, 0xe}) - /usr/local/go/src/net/lookup_unix.go:97 +0x113 -net.glob..func1({0x5533198, 0xc000815a80}, 0xc0009c11c0, {0x51584a5, 0x3}, {0xc00072a198, 0xe}) - /usr/local/go/src/net/hook.go:23 +0x89 -net.(*Resolver).lookupIPAddr.func1() - /usr/local/go/src/net/lookup.go:296 +0x133 -internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc0008005f0, {0xc00072a1b0, 0x12}, 0xc000815ac0) - /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 -created by internal/singleflight.(*Group).DoChan - /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b - -goroutine 11 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 12 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 13 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 14 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 140 [select]: -net.cgoLookupIP({0x5533198, 0xc0006bcf00}, {0x51584a5, 0xb}, {0xc0007ba892, 0x0}) - /usr/local/go/src/net/cgo_unix.go:231 +0x289 -net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc0006bcf00}, {0x51584a5, 0x3}, {0xc0007ba892, 0xb}) - /usr/local/go/src/net/lookup_unix.go:97 +0x113 -net.glob..func1({0x5533198, 0xc0006bcf00}, 0xc00027cf80, {0x51584a5, 0x3}, {0xc0007ba892, 0xb}) - /usr/local/go/src/net/hook.go:23 +0x89 -net.(*Resolver).lookupIPAddr.func1() - /usr/local/go/src/net/lookup.go:296 +0x133 -internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc0002dac80, {0xc0007ba8a1, 0xf}, 0xc0006bcf40) - /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 -created by internal/singleflight.(*Group).DoChan - /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b - -goroutine 158 [runnable]: -sync.runtime_SemacquireMutex(0x4071517, 0x47, 0xc000303a80) - /usr/local/go/src/runtime/sema.go:71 +0x25 -sync.(*Mutex).lockSlow(0x6916b7c) - /usr/local/go/src/sync/mutex.go:138 +0x21d -sync.(*Mutex).Lock(0x6916b7c) - /usr/local/go/src/sync/mutex.go:81 +0x65 -sync.(*Once).doSlow(0x6916b78, 0x53b72b8) - /usr/local/go/src/sync/once.go:64 +0x65 -sync.(*Once).Do(0x6916b78, 0x53b72b8) - /usr/local/go/src/sync/once.go:59 +0x47 -net.systemConf(...) - /usr/local/go/src/net/conf.go:43 -net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc0006fee80}, {0x51584a5, 0x3}, {0xc000796240, 0x15}) - /usr/local/go/src/net/lookup_unix.go:95 +0xa9 -net.glob..func1({0x5533198, 0xc0006fee80}, 0xc0023a6120, {0x51584a5, 0x3}, {0xc000796240, 0x15}) - /usr/local/go/src/net/hook.go:23 +0x89 -net.(*Resolver).lookupIPAddr.func1() - /usr/local/go/src/net/lookup.go:296 +0x133 -internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc000989680, {0xc000987120, 0x19}, 0xc0006feec0) - /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 -created by internal/singleflight.(*Group).DoChan - /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b - -goroutine 15 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 189 [select]: -net.(*Resolver).lookupIPAddr(0x5ec1da0, {0x5533208, 0xc0008381e0}, {0x51584a5, 0xc0008310d8}, {0xc00081cc04, 0x9}) - /usr/local/go/src/net/lookup.go:302 +0x81c -net.(*Resolver).internetAddrList(0x5533208, {0x5533208, 0xc0008381e0}, {0x51584a5, 0x3}, {0xc00081cc04, 0xc}) - /usr/local/go/src/net/ipsock.go:288 +0x7c6 -net.(*Resolver).resolveAddrList(0x6916988, {0x5533208, 0xc0008381e0}, {0x515a26d, 0x4}, {0x51584a5, 0x3}, {0xc00081cc04, 0xc}, {0x0, ...}) - /usr/local/go/src/net/dial.go:221 +0x556 -net.(*Dialer).DialContext(0xc00012faa0, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00081cc04, 0xc}) - /usr/local/go/src/net/dial.go:406 +0x6e5 -net/http.(*Transport).dial(0x5ead980, {0x55331d0, 0xc000130018}, {0x51584a5, 0x3}, {0xc00081cc04, 0xc}) - /usr/local/go/src/net/http/transport.go:1166 +0x26a -net/http.(*Transport).dialConn(0x5ead980, {0x55331d0, 0xc000130018}, {{}, 0x0, {0x51cc2de, 0x4}, {0xc00081cc04, 0xc}, 0x0}) - /usr/local/go/src/net/http/transport.go:1604 +0xd58 -net/http.(*Transport).dialConnFor(0x10, 0xc000731e40) - /usr/local/go/src/net/http/transport.go:1446 +0x13b -created by net/http.(*Transport).queueForDial - /usr/local/go/src/net/http/transport.go:1415 +0x175 - -goroutine 190 [select]: -net.cgoLookupIP({0x5533198, 0xc000815b40}, {0x51584a5, 0x9}, {0xc00081cc04, 0x30afffff}) - /usr/local/go/src/net/cgo_unix.go:231 +0x289 -net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc000815b40}, {0x51584a5, 0x3}, {0xc00081cc04, 0x9}) - /usr/local/go/src/net/lookup_unix.go:97 +0x113 -net.glob..func1({0x5533198, 0xc000815b40}, 0xc0009c1230, {0x51584a5, 0x3}, {0xc00081cc04, 0x9}) - /usr/local/go/src/net/hook.go:23 +0x89 -net.(*Resolver).lookupIPAddr.func1() - /usr/local/go/src/net/lookup.go:296 +0x133 -internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc000800690, {0xc00081cc13, 0xd}, 0xc000815b80) - /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 -created by internal/singleflight.(*Group).DoChan - /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b - -goroutine 159 [select]: -github.com/dgraph-io/ristretto.(*Cache).processItems(0xc0009a9260) - /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3-0.20200630154024-f66de99634de/cache.go:311 +0x176 -created by github.com/dgraph-io/ristretto.NewCache - /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3-0.20200630154024-f66de99634de/cache.go:162 +0x85a - -goroutine 199 [runnable]: -net.cgoLookupIP·dwrap·22() - /usr/local/go/src/net/cgo_unix.go:230 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by net.cgoLookupIP - /usr/local/go/src/net/cgo_unix.go:230 +0x1ba - -goroutine 200 [runnable]: -net.cgoLookupIP·dwrap·22() - /usr/local/go/src/net/cgo_unix.go:230 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by net.cgoLookupIP - /usr/local/go/src/net/cgo_unix.go:230 +0x1ba - -goroutine 141 [syscall]: -net._C2func_getaddrinfo(0xc000917fc6, 0x0, 0xc0002d3a40, 0xc000798058) - _cgo_gotypes.go:97 +0x8b -net.cgoLookupIPCNAME.func1({0xc000917fc6, 0xa, 0xc000917fa4}, 0xc0002d37d0, 0x5ec1da0) - /usr/local/go/src/net/cgo_unix.go:163 +0xb2 -net.cgoLookupIPCNAME({0x51584a5, 0x3}, {0xc000917fa4, 0xc000130018}) - /usr/local/go/src/net/cgo_unix.go:163 +0x26e -net.cgoIPLookup(0x5ec1db0, {0x51584a5, 0x3}, {0xc000917fa4, 0x9}) - /usr/local/go/src/net/cgo_unix.go:220 +0x67 -created by net.cgoLookupIP - /usr/local/go/src/net/cgo_unix.go:230 +0x1ba - -goroutine 201 [runnable]: -net.cgoLookupIP·dwrap·22() - /usr/local/go/src/net/cgo_unix.go:230 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by net.cgoLookupIP - /usr/local/go/src/net/cgo_unix.go:230 +0x1ba - -goroutine 142 [runnable]: -net.cgoLookupIP·dwrap·22() - /usr/local/go/src/net/cgo_unix.go:230 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by net.cgoLookupIP - /usr/local/go/src/net/cgo_unix.go:230 +0x1ba - -goroutine 143 [select]: -net.cgoLookupIP({0x5533198, 0xc0008159c0}, {0x51584a5, 0xa}, {0xc00081cbe3, 0x0}) - /usr/local/go/src/net/cgo_unix.go:231 +0x289 -net.(*Resolver).lookupIP(0x5ec1da0, {0x5533198, 0xc0008159c0}, {0x51584a5, 0x3}, {0xc00081cbe3, 0xa}) - /usr/local/go/src/net/lookup_unix.go:97 +0x113 -net.glob..func1({0x5533198, 0xc0008159c0}, 0xc0009c1150, {0x51584a5, 0x3}, {0xc00081cbe3, 0xa}) - /usr/local/go/src/net/hook.go:23 +0x89 -net.(*Resolver).lookupIPAddr.func1() - /usr/local/go/src/net/lookup.go:296 +0x133 -internal/singleflight.(*Group).doCall(0x5ec1db0, 0xc0002dacd0, {0xc00081cbf2, 0xe}, 0xc000815a00) - /usr/local/go/src/internal/singleflight/singleflight.go:95 +0x68 -created by internal/singleflight.(*Group).DoChan - /usr/local/go/src/internal/singleflight/singleflight.go:88 +0x59b - -goroutine 144 [runnable]: -net.cgoLookupIP·dwrap·22() - /usr/local/go/src/net/cgo_unix.go:230 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by net.cgoLookupIP - /usr/local/go/src/net/cgo_unix.go:230 +0x1ba - -goroutine 56 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 57 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 58 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 59 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -goroutine 60 [runnable]: -github.com/chyeh/pubip.Get·dwrap·2() - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 -runtime.goexit() - /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 -created by github.com/chyeh/pubip.Get - /Users/eclesiojunior/go/pkg/mod/github.com/chyeh/pubip@v0.0.0-20170203095919-b7e679cf541c/pubip.go:165 +0x66b - -rax 0x8 -rbx 0x80 -rcx 0x0 -rdx 0x1 -rdi 0x8 -rsi 0x1 -rbp 0x20b2e1ea0 -rsp 0x20b2e1e58 -r8 0x600002c00000 -r9 0x80 -r10 0x0 -r11 0x7ff81d8b3870 -r12 0x0 -r13 0x0 -r14 0x1 -r15 0x8 -rip 0x7ff81d9e3dfe -rflags 0x216 -cs 0x2b -fs 0x0 -gs 0x0 -FAIL github.com/ChainSafe/gossamer/dot/network 1.833s -FAIL From dd4f9c76ee2593387df71853361a4dfe2be6a557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Tue, 7 Dec 2021 11:34:11 -0400 Subject: [PATCH 05/35] chore: resolve data race with stop channel to peerset --- dot/network/block_announce_test.go | 4 +- dot/network/connmgr_test.go | 18 +- dot/network/discovery_test.go | 12 +- dot/network/gossip_test.go | 6 +- .../{test_helpers.go => helpers_test.go} | 2 +- dot/network/host_test.go | 58 +- dot/network/light_test.go | 4 +- dot/network/mdns_test.go | 4 +- dot/network/notifications_test.go | 18 +- dot/network/service_test.go | 18 +- dot/network/sync_test.go | 2 +- dot/network/transaction_test.go | 2 +- dot/network/utils_test.go | 21 +- dot/peerset/handler.go | 13 +- dot/peerset/peerset.go | 12 +- test.log | 3146 +++++++++++++++++ 16 files changed, 3249 insertions(+), 91 deletions(-) rename dot/network/{test_helpers.go => helpers_test.go} (98%) create mode 100644 test.log diff --git a/dot/network/block_announce_test.go b/dot/network/block_announce_test.go index 67123f38a2..fa977f127d 100644 --- a/dot/network/block_announce_test.go +++ b/dot/network/block_announce_test.go @@ -132,7 +132,7 @@ func TestHandleBlockAnnounceMessage(t *testing.T) { config := &Config{ BasePath: basePath, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -155,7 +155,7 @@ func TestValidateBlockAnnounceHandshake(t *testing.T) { configA := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/connmgr_test.go b/dot/network/connmgr_test.go index 8c9ddf04db..f9a642117c 100644 --- a/dot/network/connmgr_test.go +++ b/dot/network/connmgr_test.go @@ -25,7 +25,7 @@ func TestMinPeers(t *testing.T) { for i := range nodes { config := &Config{ BasePath: utils.NewTestBasePath(t, fmt.Sprintf("node%d", i)), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -38,7 +38,7 @@ func TestMinPeers(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), Bootnodes: []string{addrs.String(), addrs1.String()}, NoMDNS: true, MinPeers: min, @@ -65,7 +65,7 @@ func TestMaxPeers(t *testing.T) { for i := range nodes { config := &Config{ BasePath: utils.NewTestBasePath(t, fmt.Sprintf("node%d", i)), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MaxPeers: max, @@ -136,7 +136,7 @@ func TestPersistentPeers(t *testing.T) { configA := &Config{ BasePath: utils.NewTestBasePath(t, "node-a"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -145,7 +145,7 @@ func TestPersistentPeers(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "node-b"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoMDNS: true, PersistentPeers: []string{addrs[0].String()}, } @@ -176,7 +176,7 @@ func TestRemovePeer(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -189,7 +189,7 @@ func TestRemovePeer(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), Bootnodes: []string{addrA.String()}, NoMDNS: true, } @@ -218,7 +218,7 @@ func TestSetReservedPeer(t *testing.T) { for i := range nodes { config := &Config{ BasePath: utils.NewTestBasePath(t, fmt.Sprintf("node%d", i)), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -233,7 +233,7 @@ func TestSetReservedPeer(t *testing.T) { basePathD := utils.NewTestBasePath(t, "node3") config := &Config{ BasePath: basePathD, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoMDNS: true, PersistentPeers: []string{addrA.String(), addrB.String()}, } diff --git a/dot/network/discovery_test.go b/dot/network/discovery_test.go index 32d47ccaed..085e532ea1 100644 --- a/dot/network/discovery_test.go +++ b/dot/network/discovery_test.go @@ -24,7 +24,7 @@ func newTestDiscovery(t *testing.T, num int) []*discovery { for i := 0; i < num; i++ { config := &Config{ BasePath: utils.NewTestBasePath(t, fmt.Sprintf("node%d", i)), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -106,7 +106,7 @@ func TestBeginDiscovery(t *testing.T) { configA := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -116,7 +116,7 @@ func TestBeginDiscovery(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -144,7 +144,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configA := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -154,7 +154,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -164,7 +164,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configC := &Config{ BasePath: utils.NewTestBasePath(t, "nodeC"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/gossip_test.go b/dot/network/gossip_test.go index 7b72f1c6a5..76c1d5521b 100644 --- a/dot/network/gossip_test.go +++ b/dot/network/gossip_test.go @@ -25,7 +25,7 @@ func TestGossip(t *testing.T) { configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -37,7 +37,7 @@ func TestGossip(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -58,7 +58,7 @@ func TestGossip(t *testing.T) { basePathC := utils.NewTestBasePath(t, "nodeC") configC := &Config{ BasePath: basePathC, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/test_helpers.go b/dot/network/helpers_test.go similarity index 98% rename from dot/network/test_helpers.go rename to dot/network/helpers_test.go index ea77b4a0e6..7b5fbd6391 100644 --- a/dot/network/test_helpers.go +++ b/dot/network/helpers_test.go @@ -194,7 +194,7 @@ var starting, _ = variadic.NewUint64OrHash(uint64(1)) var one = uint32(1) -func NewTestBlockRequestMessage(t *testing.T) *BlockRequestMessage { +func newTestBlockRequestMessage(t *testing.T) *BlockRequestMessage { t.Helper() return &BlockRequestMessage{ diff --git a/dot/network/host_test.go b/dot/network/host_test.go index 5d322e0b2b..805ab3f673 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -22,7 +22,7 @@ func TestExternalAddrs(t *testing.T) { config := &Config{ BasePath: utils.NewTestBasePath(t, "node"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -48,7 +48,7 @@ func TestExternalAddrsPublicIP(t *testing.T) { config := &Config{ BasePath: utils.NewTestBasePath(t, "node"), PublicIP: "10.0.5.2", - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -83,7 +83,7 @@ func TestConnect(t *testing.T) { configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -95,7 +95,7 @@ func TestConnect(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -127,7 +127,7 @@ func TestBootstrap(t *testing.T) { configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -141,7 +141,7 @@ func TestBootstrap(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), Bootnodes: []string{addrA.String()}, NoMDNS: true, } @@ -169,7 +169,7 @@ func TestSend(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -181,7 +181,7 @@ func TestSend(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -200,7 +200,7 @@ func TestSend(t *testing.T) { } require.NoError(t, err) - testBlockReqMessage := NewTestBlockRequestMessage(t) + testBlockReqMessage := newTestBlockRequestMessage(t) _, err = nodeA.host.send(addrInfoB.ID, nodeB.host.protocolID, testBlockReqMessage) require.NoError(t, err) @@ -219,7 +219,7 @@ func TestExistingStream(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -233,7 +233,7 @@ func TestExistingStream(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -252,7 +252,7 @@ func TestExistingStream(t *testing.T) { } require.NoError(t, err) - testBlockReqMessage := NewTestBlockRequestMessage(t) + testBlockReqMessage := newTestBlockRequestMessage(t) // node A opens the stream to send the first message stream, err := nodeA.host.send(addrInfoB.ID, nodeB.host.protocolID, testBlockReqMessage) @@ -285,7 +285,7 @@ func TestStreamCloseMetadataCleanup(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -298,7 +298,7 @@ func TestStreamCloseMetadataCleanup(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -362,7 +362,7 @@ func Test_PeerSupportsProtocol(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -372,7 +372,7 @@ func Test_PeerSupportsProtocol(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -428,7 +428,7 @@ func Test_AddReservedPeers(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -439,7 +439,7 @@ func Test_AddReservedPeers(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -462,7 +462,7 @@ func Test_RemoveReservedPeers(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -473,7 +473,7 @@ func Test_RemoveReservedPeers(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -509,7 +509,7 @@ func TestStreamCloseEOF(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -521,7 +521,7 @@ func TestStreamCloseEOF(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -541,7 +541,7 @@ func TestStreamCloseEOF(t *testing.T) { } require.NoError(t, err) - testBlockReqMessage := NewTestBlockRequestMessage(t) + testBlockReqMessage := newTestBlockRequestMessage(t) stream, err := nodeA.host.send(addrInfoB.ID, nodeB.host.protocolID, testBlockReqMessage) require.NoError(t, err) @@ -562,7 +562,7 @@ func TestPeerConnect(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -576,7 +576,7 @@ func TestPeerConnect(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -604,7 +604,7 @@ func TestBannedPeer(t *testing.T) { configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -618,7 +618,7 @@ func TestBannedPeer(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -661,7 +661,7 @@ func TestPeerReputation(t *testing.T) { configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -675,7 +675,7 @@ func TestPeerReputation(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, diff --git a/dot/network/light_test.go b/dot/network/light_test.go index fc71b08788..1ac8cf9d3e 100644 --- a/dot/network/light_test.go +++ b/dot/network/light_test.go @@ -91,7 +91,7 @@ func TestHandleLightMessage_Response(t *testing.T) { config := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -99,7 +99,7 @@ func TestHandleLightMessage_Response(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/mdns_test.go b/dot/network/mdns_test.go index 5065314b99..86c1ee908f 100644 --- a/dot/network/mdns_test.go +++ b/dot/network/mdns_test.go @@ -22,7 +22,7 @@ func TestMDNS(t *testing.T) { configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, } @@ -33,7 +33,7 @@ func TestMDNS(t *testing.T) { configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, } diff --git a/dot/network/notifications_test.go b/dot/network/notifications_test.go index 20693b66ab..d23b712533 100644 --- a/dot/network/notifications_test.go +++ b/dot/network/notifications_test.go @@ -28,7 +28,7 @@ func TestCreateDecoder_BlockAnnounce(t *testing.T) { config := &Config{ BasePath: basePath, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -92,7 +92,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounce(t *testing.T) { config := &Config{ BasePath: basePath, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -101,7 +101,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounce(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -153,7 +153,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(t *testing.T) config := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -172,7 +172,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(t *testing.T) configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -233,7 +233,7 @@ func Test_HandshakeTimeout(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -244,7 +244,7 @@ func Test_HandshakeTimeout(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), RandSeed: 2, NoBootstrap: true, NoMDNS: true, @@ -316,7 +316,7 @@ func TestCreateNotificationsMessageHandler_HandleTransaction(t *testing.T) { basePath := utils.NewTestBasePath(t, "nodeA") config := &Config{ BasePath: basePath, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, batchSize: batchSize, @@ -326,7 +326,7 @@ func TestCreateNotificationsMessageHandler_HandleTransaction(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/service_test.go b/dot/network/service_test.go index 981ee19fe2..0f0136afaa 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -39,7 +39,7 @@ func createServiceHelper(t *testing.T, num int) []*Service { for i := 0; i < num; i++ { config := &Config{ BasePath: utils.NewTestBasePath(t, fmt.Sprintf("node%d", i)), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -63,7 +63,7 @@ func createTestService(t *testing.T, cfg *Config) (srvc *Service) { cfg = &Config{ BasePath: basePath, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, LogLvl: 4, @@ -140,7 +140,7 @@ func TestBroadcastMessages(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -151,7 +151,7 @@ func TestBroadcastMessages(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -189,7 +189,7 @@ func TestBroadcastDuplicateMessage(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -200,7 +200,7 @@ func TestBroadcastDuplicateMessage(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -275,7 +275,7 @@ func TestService_Health(t *testing.T) { basePath := utils.NewTestBasePath(t, "nodeA") config := &Config{ BasePath: basePath, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -325,7 +325,7 @@ func TestHandleConn(t *testing.T) { configA := &Config{ BasePath: utils.NewTestBasePath(t, "nodeA"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -334,7 +334,7 @@ func TestHandleConn(t *testing.T) { configB := &Config{ BasePath: utils.NewTestBasePath(t, "nodeB"), - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/sync_test.go b/dot/network/sync_test.go index a8aa546ee3..bf6a3052d4 100644 --- a/dot/network/sync_test.go +++ b/dot/network/sync_test.go @@ -12,7 +12,7 @@ import ( func TestDecodeSyncMessage(t *testing.T) { t.Parallel() - testBlockReqMessage := NewTestBlockRequestMessage(t) + testBlockReqMessage := newTestBlockRequestMessage(t) testPeer := peer.ID("noot") reqEnc, err := testBlockReqMessage.Encode() diff --git a/dot/network/transaction_test.go b/dot/network/transaction_test.go index f8b19aed4b..308066fd3d 100644 --- a/dot/network/transaction_test.go +++ b/dot/network/transaction_test.go @@ -41,7 +41,7 @@ func TestHandleTransactionMessage(t *testing.T) { config := &Config{ BasePath: basePath, - Port: uint16(availablePorts.get()), + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, TransactionHandler: mockhandler, diff --git a/dot/network/utils_test.go b/dot/network/utils_test.go index b43e36c41d..07072a07aa 100644 --- a/dot/network/utils_test.go +++ b/dot/network/utils_test.go @@ -5,22 +5,35 @@ package network import ( "bytes" + "net" "testing" "github.com/ChainSafe/gossamer/lib/utils" "github.com/stretchr/testify/require" ) +func availablePort(t *testing.T) uint16 { + addr, err := net.ResolveTCPAddr("tcp", "localhost:0") + require.NoError(t, err) + + l, err := net.ListenTCP("tcp", addr) + require.NoError(t, err) + defer l.Close() + + port := l.Addr().(*net.TCPAddr).Port + return uint16(port) +} + const portsAmount = 7100 type portsQueue chan int -func (p *portsQueue) get() int { - return <-*p +func (p portsQueue) get() int { + return <-p } -func (p *portsQueue) put(port int) { - *p <- port +func (p portsQueue) put(port int) { + p <- port } var availablePorts portsQueue diff --git a/dot/peerset/handler.go b/dot/peerset/handler.go index 0a807505df..3f873ee02f 100644 --- a/dot/peerset/handler.go +++ b/dot/peerset/handler.go @@ -9,9 +9,10 @@ import ( // Handler manages peerSet. type Handler struct { - actionQueue chan<- action - peerSet *PeerSet - closeCh chan struct{} + actionQueue chan<- action + peerSet *PeerSet + closeCh chan struct{} + peerStateCloseCh chan struct{} } // NewPeerSetHandler creates a new *peerset.Handler. @@ -117,7 +118,9 @@ func (h *Handler) Start() { actionCh := make(chan action, msgChanSize) h.closeCh = make(chan struct{}) h.actionQueue = actionCh - h.peerSet.start(actionCh) + + h.peerStateCloseCh = make(chan struct{}) + h.peerSet.start(actionCh, h.peerStateCloseCh) } // SortedPeers return chan for sorted connected peer in the peerSet. @@ -139,6 +142,6 @@ func (h *Handler) Stop() { default: close(h.closeCh) close(h.actionQueue) - h.peerSet.stop() + close(h.peerStateCloseCh) } } diff --git a/dot/peerset/peerset.go b/dot/peerset/peerset.go index 7492cb617b..a178b49de9 100644 --- a/dot/peerset/peerset.go +++ b/dot/peerset/peerset.go @@ -667,14 +667,14 @@ func (ps *PeerSet) disconnect(setIdx int, reason DropReason, peers ...peer.ID) e } // start handles all the action for the peerSet. -func (ps *PeerSet) start(aq chan action) { +func (ps *PeerSet) start(aq chan action, stopCh chan struct{}) { ps.actionQueue = aq ps.resultMsgCh = make(chan Message, msgChanSize) - go ps.doWork() + go ps.doWork(stopCh) } -func (ps *PeerSet) doWork() { +func (ps *PeerSet) doWork(stopCh chan struct{}) { ps.stopCh = make(chan struct{}) ticker := time.NewTicker(ps.nextPeriodicAllocSlots) @@ -685,7 +685,7 @@ func (ps *PeerSet) doWork() { for { select { - case <-ps.stopCh: + case <-stopCh: return case <-ticker.C: l := ps.peerState.getSetLength() @@ -731,7 +731,3 @@ func (ps *PeerSet) doWork() { } } } - -func (ps *PeerSet) stop() { - close(ps.stopCh) -} diff --git a/test.log b/test.log new file mode 100644 index 0000000000..a09b6a528f --- /dev/null +++ b/test.log @@ -0,0 +1,3146 @@ +=== RUN TestEncodeBlockAnnounce +=== PAUSE TestEncodeBlockAnnounce +=== RUN TestDecodeBlockAnnounce +=== PAUSE TestDecodeBlockAnnounce +=== RUN TestEncodeBlockAnnounceHandshake +=== PAUSE TestEncodeBlockAnnounceHandshake +=== RUN TestDecodeBlockAnnounceHandshake +=== PAUSE TestDecodeBlockAnnounceHandshake +=== RUN TestHandleBlockAnnounceMessage +=== PAUSE TestHandleBlockAnnounceMessage +=== RUN TestValidateBlockAnnounceHandshake +=== PAUSE TestValidateBlockAnnounceHandshake +=== RUN TestBuildIdentity +=== PAUSE TestBuildIdentity +=== RUN TestBuild +=== PAUSE TestBuild +=== RUN TestMinPeers +=== PAUSE TestMinPeers +=== RUN TestMaxPeers +=== PAUSE TestMaxPeers +=== RUN TestProtectUnprotectPeer +=== PAUSE TestProtectUnprotectPeer +=== RUN TestPersistentPeers +=== PAUSE TestPersistentPeers +=== RUN TestRemovePeer +=== PAUSE TestRemovePeer +=== RUN TestSetReservedPeer +=== PAUSE TestSetReservedPeer +=== RUN TestKadDHT +=== PAUSE TestKadDHT +=== RUN TestBeginDiscovery +=== PAUSE TestBeginDiscovery +=== RUN TestBeginDiscovery_ThreeNodes +=== PAUSE TestBeginDiscovery_ThreeNodes +=== RUN TestGossip +=== PAUSE TestGossip +=== RUN TestExternalAddrs +=== PAUSE TestExternalAddrs +=== RUN TestExternalAddrsPublicIP +=== PAUSE TestExternalAddrsPublicIP +=== RUN TestConnect +=== PAUSE TestConnect +=== RUN TestBootstrap +=== PAUSE TestBootstrap +=== RUN TestSend +=== PAUSE TestSend +=== RUN TestExistingStream +=== PAUSE TestExistingStream +=== RUN TestStreamCloseMetadataCleanup +=== PAUSE TestStreamCloseMetadataCleanup +=== RUN Test_PeerSupportsProtocol +=== PAUSE Test_PeerSupportsProtocol +=== RUN Test_AddReservedPeers +=== PAUSE Test_AddReservedPeers +=== RUN Test_RemoveReservedPeers +=== PAUSE Test_RemoveReservedPeers +=== RUN TestStreamCloseEOF +=== PAUSE TestStreamCloseEOF +=== RUN TestPeerConnect +=== PAUSE TestPeerConnect +=== RUN TestBannedPeer +=== PAUSE TestBannedPeer +=== RUN TestPeerReputation +=== PAUSE TestPeerReputation +=== RUN TestEncodeLightRequest +=== PAUSE TestEncodeLightRequest +=== RUN TestEncodeLightResponse +=== PAUSE TestEncodeLightResponse +=== RUN TestDecodeLightMessage +=== PAUSE TestDecodeLightMessage +=== RUN TestHandleLightMessage_Response +=== PAUSE TestHandleLightMessage_Response +=== RUN TestMDNS +=== PAUSE TestMDNS +=== RUN TestMessageCache +=== PAUSE TestMessageCache +=== RUN TestMessageCacheError +=== PAUSE TestMessageCacheError +=== RUN TestEncodeBlockRequestMessage +=== PAUSE TestEncodeBlockRequestMessage +=== RUN TestEncodeBlockRequestMessage_BlockHash +=== PAUSE TestEncodeBlockRequestMessage_BlockHash +=== RUN TestEncodeBlockRequestMessage_BlockNumber +=== PAUSE TestEncodeBlockRequestMessage_BlockNumber +=== RUN TestBlockRequestString +=== PAUSE TestBlockRequestString +=== RUN TestEncodeBlockRequestMessage_NoOptionals +=== PAUSE TestEncodeBlockRequestMessage_NoOptionals +=== RUN TestEncodeBlockResponseMessage_Empty +=== PAUSE TestEncodeBlockResponseMessage_Empty +=== RUN TestEncodeBlockResponseMessage_WithBody +=== PAUSE TestEncodeBlockResponseMessage_WithBody +=== RUN TestEncodeBlockResponseMessage_WithAll +=== PAUSE TestEncodeBlockResponseMessage_WithAll +=== RUN TestEncodeBlockAnnounceMessage +=== PAUSE TestEncodeBlockAnnounceMessage +=== RUN TestDecode_BlockAnnounceMessage +=== PAUSE TestDecode_BlockAnnounceMessage +=== RUN TestEncodeTransactionMessageSingleExtrinsic +=== PAUSE TestEncodeTransactionMessageSingleExtrinsic +=== RUN TestEncodeTransactionMessageTwoExtrinsics +=== PAUSE TestEncodeTransactionMessageTwoExtrinsics +=== RUN TestDecodeTransactionMessageOneExtrinsic +=== PAUSE TestDecodeTransactionMessageOneExtrinsic +=== RUN TestDecodeTransactionMessageTwoExtrinsics +=== PAUSE TestDecodeTransactionMessageTwoExtrinsics +=== RUN TestDecodeConsensusMessage +=== PAUSE TestDecodeConsensusMessage +=== RUN TestCreateDecoder_BlockAnnounce +=== PAUSE TestCreateDecoder_BlockAnnounce +=== RUN TestCreateNotificationsMessageHandler_BlockAnnounce +=== PAUSE TestCreateNotificationsMessageHandler_BlockAnnounce +=== RUN TestCreateNotificationsMessageHandler_BlockAnnounceHandshake +=== PAUSE TestCreateNotificationsMessageHandler_BlockAnnounceHandshake +=== RUN Test_HandshakeTimeout +=== PAUSE Test_HandshakeTimeout +=== RUN TestCreateNotificationsMessageHandler_HandleTransaction +=== PAUSE TestCreateNotificationsMessageHandler_HandleTransaction +=== RUN TestBlockAnnounceHandshakeSize +=== PAUSE TestBlockAnnounceHandshakeSize +=== RUN Test_sizedBufferPool +=== PAUSE Test_sizedBufferPool +=== RUN Test_sizedBufferPool_race +=== PAUSE Test_sizedBufferPool_race +=== RUN TestStartService +=== PAUSE TestStartService +=== RUN TestBroadcastMessages +=== PAUSE TestBroadcastMessages +=== RUN TestBroadcastDuplicateMessage +=== PAUSE TestBroadcastDuplicateMessage +=== RUN TestService_NodeRoles +=== PAUSE TestService_NodeRoles +=== RUN TestService_Health +=== PAUSE TestService_Health +=== RUN TestPersistPeerStore +=== PAUSE TestPersistPeerStore +=== RUN TestHandleConn +=== PAUSE TestHandleConn +=== RUN TestSerivceIsMajorSyncMetrics +=== PAUSE TestSerivceIsMajorSyncMetrics +=== RUN TestStreamManager +=== PAUSE TestStreamManager +=== RUN TestStreamManager_KeepStream + stream_manager_test.go:91: +--- SKIP: TestStreamManager_KeepStream (0.00s) +=== RUN TestDecodeSyncMessage +=== PAUSE TestDecodeSyncMessage +=== RUN TestDecodeTransactionHandshake +=== PAUSE TestDecodeTransactionHandshake +=== RUN TestHandleTransactionMessage +=== PAUSE TestHandleTransactionMessage +=== RUN TestStringToAddrInfo +--- PASS: TestStringToAddrInfo (0.00s) +=== RUN TestStringsToAddrInfos +--- PASS: TestStringsToAddrInfos (0.00s) +=== RUN TestGenerateKey +--- PASS: TestGenerateKey (0.01s) +=== RUN TestReadLEB128ToUint64 +--- PASS: TestReadLEB128ToUint64 (0.00s) +=== RUN TestInvalidLeb128 +--- PASS: TestInvalidLeb128 (0.00s) +=== CONT TestDecodeBlockAnnounce +=== CONT TestHandleTransactionMessage +=== CONT TestMDNS +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce +=== CONT TestCreateDecoder_BlockAnnounce +=== CONT TestDecodeConsensusMessage +=== CONT TestDecodeTransactionMessageTwoExtrinsics +=== CONT TestDecodeTransactionMessageOneExtrinsic +--- PASS: TestDecodeConsensusMessage (0.00s) +--- PASS: TestDecodeTransactionMessageOneExtrinsic (0.00s) +=== CONT TestEncodeTransactionMessageSingleExtrinsic +=== CONT Test_HandshakeTimeout +--- PASS: TestDecodeTransactionMessageTwoExtrinsics (0.00s) +=== CONT TestGossip +--- PASS: TestEncodeTransactionMessageSingleExtrinsic (0.00s) +=== CONT TestDecode_BlockAnnounceMessage +--- PASS: TestDecode_BlockAnnounceMessage (0.00s) +=== CONT TestEncodeTransactionMessageTwoExtrinsics +--- PASS: TestEncodeTransactionMessageTwoExtrinsics (0.00s) +=== CONT TestEncodeBlockAnnounceMessage +--- PASS: TestDecodeBlockAnnounce (0.00s) +=== CONT TestEncodeBlockResponseMessage_WithAll +--- PASS: TestEncodeBlockAnnounceMessage (0.00s) +=== CONT TestEncodeBlockResponseMessage_WithBody +--- PASS: TestEncodeBlockResponseMessage_WithBody (0.01s) +=== CONT TestEncodeBlockResponseMessage_Empty +--- PASS: TestEncodeBlockResponseMessage_WithAll (0.01s) +=== CONT TestEncodeBlockRequestMessage_NoOptionals +--- PASS: TestEncodeBlockResponseMessage_Empty (0.00s) +=== CONT TestEncodeBlockRequestMessage_BlockNumber +--- PASS: TestEncodeBlockRequestMessage_NoOptionals (0.00s) +=== CONT TestBlockRequestString +BlockRequestMessage RequestedData=1 StartingBlock={[220 209 52 103 1 202 131 150 73 110 82 170 39 133 177 116 141 235 109 176 149 81 183 33 89 220 179 224 137 145 2 91]} EndBlockHash=0x0000000000000000000000000000000000000000000000000000000000000000 Direction=1 Max=0 +--- PASS: TestBlockRequestString (0.00s) +=== CONT TestService_NodeRoles +2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS3893076944/001/TestMDNS/nodeA/node.key pkg=network +2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout2437718893/001/Test_HandshakeTimeout/nodeA/node.key pkg=network +2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce2396403150/001/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeA/node.key pkg=network +2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateDecoder_BlockAnnounce2495888367/001/TestCreateDecoder_BlockAnnounce/nodeA/node.key pkg=network +--- PASS: TestEncodeBlockRequestMessage_BlockNumber (0.02s) +=== CONT TestDecodeTransactionHandshake +--- PASS: TestDecodeTransactionHandshake (0.00s) +=== CONT TestDecodeSyncMessage +2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip688433834/001/TestGossip/nodeA/node.key pkg=network +=== CONT TestSerivceIsMajorSyncMetrics +--- PASS: TestDecodeSyncMessage (0.00s) +--- PASS: TestSerivceIsMajorSyncMetrics (0.00s) +=== CONT TestStreamManager +2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_NodeRoles545505989/001/TestService_NodeRoles/node/node.key pkg=network +2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleTransactionMessage1609341858/001/TestHandleTransactionMessage/nodeA/node.key pkg=network +2021-12-07T09:49:08-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55615/p2p/12D3KooWCVPkhujHMobg6jh8WTYG2GGBbxG8Tbkk7LGvDGBznwcr pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55613/p2p/12D3KooWDBcsgunRRo6rzvXndcjRCAbnNeTGCWq5rdWGbivx2MJW pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55614/p2p/12D3KooWK9xCm2WCMQcbanfS9NPzQAjWExNKFaAeFFi1yCKNWUtE pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55618/p2p/12D3KooWSfUa6hiGg8mAGp8JsDn6eJtEE8dfJcUordWqEmnabAWu pkg=network +=== CONT TestService_NodeRoles + service_test.go:266: + Error Trace: service_test.go:102 + service_test.go:266 + Error: Received unexpected error: + failed to listen on any addresses: [listen tcp4 0.0.0.0:7000: bind: address already in use] + Test: TestService_NodeRoles +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +--- FAIL: TestService_NodeRoles (0.44s) +=== CONT TestSetReservedPeer +2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55617/p2p/12D3KooWAm7gKozL6vQt1WKJCYshJ4Jn9usah1F1wGQUdcw2hvwu pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55616/p2p/12D3KooWCyXFxiLpEYdUh6xSSdHJJ5UizvSz3Gqfi152hU2rYBZm pkg=network +2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer583867775/001/TestSetReservedPeer/node0/node.key pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55621/p2p/12D3KooWGBVooSxRPATXs761zLnbpwNxmxWLKMRYE2whQVBJNg1t pkg=network +2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce2396403150/002/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeB/node.key pkg=network +2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS3893076944/002/TestMDNS/nodeB/node.key pkg=network +2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 2 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout2437718893/002/Test_HandshakeTimeout/nodeB/node.key pkg=network +2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip688433834/002/TestGossip/nodeB/node.key pkg=network +2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer583867775/002/TestSetReservedPeer/node1/node.key pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55622/p2p/12D3KooWAnM2m6Ut5pEYbPfrzpi1L42y8ZdY6fRyzyen3Sbr4FiC pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55624/p2p/12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55623/p2p/12D3KooWAEettb7XdCDLnY9M4RFpajbjLMgTt7LZWNVnDUpLwLJg pkg=network +--- PASS: TestCreateDecoder_BlockAnnounce (1.27s) +=== CONT TestHandleConn +=== CONT TestBeginDiscovery_ThreeNodes +--- PASS: TestHandleTransactionMessage (1.29s) +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55625/p2p/12D3KooWSbZjEdFRsH486bf3MmFUYhMevKbsktjeTg3Mdbwu4uXE pkg=network +2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn3732804873/001/TestHandleConn/nodeA/node.key pkg=network +2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes4171104864/001/TestBeginDiscovery_ThreeNodes/nodeA/node.key pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55626/p2p/12D3KooWE9V1PzooukD5cu2rg3D7hjwHWgwAgo187BnRnxz9aaJp pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55627/p2p/12D3KooWBYG5oegE8VD9BfNnGJxPKkaj6GxRJPyQytYyVgujAc1D pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55628/p2p/12D3KooWSLyN3VpKLx8srHnu9oGXm3PaaWGNK99GszQS44Vqzv9p pkg=network +2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 DBUG gossiping from host 12D3KooWK9xCm2WCMQcbanfS9NPzQAjWExNKFaAeFFi1yCKNWUtE message of type 0: BlockAnnounceHandshake Roles=4 BestBlockNumber=77 BestBlockHash=0x0100000000000000000000000000000000000000000000000000000000000000 GenesisHash=0x0200000000000000000000000000000000000000000000000000000000000000 pkg=network +2021-12-07T09:49:10-04:00 EROR message type 0 not supported by any notifications protocol pkg=network +2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip688433834/003/TestGossip/nodeC/node.key pkg=network +2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +--- PASS: TestCreateNotificationsMessageHandler_BlockAnnounce (1.96s) +=== CONT TestHandleBlockAnnounceMessage +2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer583867775/003/TestSetReservedPeer/node2/node.key pkg=network +2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleBlockAnnounceMessage849112843/001/TestHandleBlockAnnounceMessage/nodeA/node.key pkg=network +2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55629/p2p/12D3KooWHjw8bfdCbmdchtqs3tPC42Xq8kb5fswhe1KG4YBmtaA2 pkg=network +================== +WARNING: DATA RACE +Write at 0x000005df4ec8 by goroutine 93: + github.com/ChainSafe/gossamer/dot/network.setupStreamManagerTest.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager_test.go:28 +0x32 + testing.(*common).Cleanup.func1() + /usr/local/go/src/testing/testing.go:912 +0x199 + testing.(*common).runCleanup() + /usr/local/go/src/testing/testing.go:1049 +0x154 + testing.tRunner.func2() + /usr/local/go/src/testing/testing.go:1253 +0x4f + testing.tRunner() + /usr/local/go/src/testing/testing.go:1265 +0x268 + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous read at 0x000005df4ec8 by goroutine 792: + github.com/ChainSafe/gossamer/dot/network.(*streamManager).start.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager.go:39 +0x4a + +Goroutine 93 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 792 (running) created at: + github.com/ChainSafe/gossamer/dot/network.(*streamManager).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager.go:38 +0x90 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:284 +0x136c + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 + github.com/ChainSafe/gossamer/dot/network.TestSetReservedPeer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:225 +0x164 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +=== CONT TestStreamManager + testing.go:1152: race detected during execution of test +--- FAIL: TestStreamManager (2.01s) +=== CONT TestValidateBlockAnnounceHandshake +2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn3732804873/002/TestHandleConn/nodeB/node.key pkg=network +2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes4171104864/002/TestBeginDiscovery_ThreeNodes/nodeB/node.key pkg=network +2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestValidateBlockAnnounceHandshake4090063501/001/TestValidateBlockAnnounceHandshake/nodeA/node.key pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55630/p2p/12D3KooWBMDWaZKUqEbHE1GB9jgVopTtvo9CL1XYrg23TSSWNAjT pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55631/p2p/12D3KooWCTamdmKZuoDA7yETaL6yuzRwp1asYQbF1Gz5KSjiRuDs pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55633/p2p/12D3KooWEWEEcLvXRv4y6Di9XkD7pm1cs2UVtQutogwWnvuYb8em pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55632/p2p/12D3KooWQyxMmfzo3iZHHkX7B9o1xjHuMqKyW2TP9quj25zCpkKu pkg=network +2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55634/p2p/12D3KooWCZqJxdxGgJ7U9dyvRCZGRxtghHFFCHJDa4F4hoBbWAwZ pkg=network +2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestGossip + gossip_test.go:93: + Error Trace: gossip_test.go:93 + Error: Received unexpected error: + protocol not supported + Test: TestGossip +2021-12-07T09:49:11-04:00 WARN failed to open connection for peer 12D3KooWCVPkhujHMobg6jh8WTYG2GGBbxG8Tbkk7LGvDGBznwcr: context canceled pkg=network +2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer583867775/004/TestSetReservedPeer/node3/node.key pkg=network +2021-12-07T09:49:11-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network +2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes4171104864/003/TestBeginDiscovery_ThreeNodes/nodeC/node.key pkg=network +=== CONT TestHandleBlockAnnounceMessage + testing.go:1152: race detected during execution of test +=== CONT TestBuild +--- FAIL: TestHandleBlockAnnounceMessage (1.08s) +=== CONT TestHandleLightMessage_Response +--- PASS: TestBuild (0.05s) +=== CONT TestGossip + testing.go:1152: race detected during execution of test +--- FAIL: TestGossip (3.11s) +=== CONT TestMessageCache +=== CONT TestEncodeLightResponse +--- PASS: TestValidateBlockAnnounceHandshake (1.11s) +=== CONT TestMDNS + testing.go:1152: race detected during execution of test +--- FAIL: TestMDNS (3.15s) +=== CONT TestEncodeLightRequest +--- PASS: TestEncodeLightRequest (0.00s) +=== CONT TestPeerReputation +--- PASS: TestEncodeLightResponse (0.00s) +=== CONT TestBannedPeer +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55636/p2p/12D3KooWRri33ShHTfZFqYSqRhfx5edjo8irAycQCQUnL7DZpqXS pkg=network +2021-12-07T09:49:11-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response1764702853/001/TestHandleLightMessage_Response/nodeA/node.key pkg=network +2021-12-07T09:49:11-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation2161340469/001/TestPeerReputation/nodeA/node.key pkg=network +2021-12-07T09:49:11-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1677319629/001/TestBannedPeer/nodeA/node.key pkg=network +2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:12-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55637/p2p/12D3KooWHck5LMQahgos6W6L9kLnbUCxoihqTiyqffbRTRLBNL7f pkg=network +2021-12-07T09:49:12-04:00 DBUG connection successful with peer 12D3KooWGBVooSxRPATXs761zLnbpwNxmxWLKMRYE2whQVBJNg1t pkg=network +2021-12-07T09:49:12-04:00 DBUG connection successful with peer 12D3KooWE9V1PzooukD5cu2rg3D7hjwHWgwAgo187BnRnxz9aaJp pkg=network +=== CONT TestHandleConn + testing.go:1152: race detected during execution of test +--- FAIL: TestHandleConn (2.26s) +=== CONT TestDecodeLightMessage +--- PASS: TestDecodeLightMessage (0.01s) +=== CONT TestStreamCloseEOF +2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:12-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55638/p2p/12D3KooW9vANHSkThbzaSaHdx8vwU1T3AkiEQs3oR4B9S7YcxisY pkg=network +2021-12-07T09:49:12-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF3614206454/001/TestStreamCloseEOF/nodeA/node.key pkg=network +2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:12-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55639/p2p/12D3KooWCsMRrBPgr9VJXW7rJbWytzQ8S4NXAFHpgjrp4TcvE5qL pkg=network +2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:12-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55640/p2p/12D3KooWNNpQ1tBpcwm9KetFszUn83gM3Acu6PwUHqLRsWc21H1M pkg=network +2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:12-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55641/p2p/12D3KooWKzzvfpvvd1TmG86vGVfxnXUbbnAMs7zTg3Vsva9WWxQM pkg=network +2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:12-04:00 DBUG starting DHT with bootnodes [{12D3KooWEWEEcLvXRv4y6Di9XkD7pm1cs2UVtQutogwWnvuYb8em: [/ip4/127.0.0.1/tcp/55633]} {12D3KooWHck5LMQahgos6W6L9kLnbUCxoihqTiyqffbRTRLBNL7f: [/ip4/127.0.0.1/tcp/55637]}]... pkg=network +2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:12-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation2161340469/002/TestPeerReputation/nodeB/node.key pkg=network +2021-12-07T09:49:12-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response1764702853/002/TestHandleLightMessage_Response/nodeB/node.key pkg=network +2021-12-07T09:49:12-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1677319629/002/TestBannedPeer/nodeB/node.key pkg=network +2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:13-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF3614206454/002/TestStreamCloseEOF/nodeB/node.key pkg=network +2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:13-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55643/p2p/12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H pkg=network +2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:13-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55642/p2p/12D3KooWLvG14Zj9UP9CLGmhs6NZFRoY3HYwVMiP3uP3V98xCCKo pkg=network +2021-12-07T09:49:13-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55644/p2p/12D3KooWJb4s5aUvMFvVdsFy9FVBknTe9TF6F5Gt3jLgFqVPqkYe pkg=network +2021-12-07T09:49:13-04:00 DBUG connection successful with peer 12D3KooWBMDWaZKUqEbHE1GB9jgVopTtvo9CL1XYrg23TSSWNAjT pkg=network +2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:13-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55645/p2p/12D3KooWByC5btgjovc3oHWUwP5jcPadehCBUB5ni79ZiT2jtwNZ pkg=network +================== +WARNING: DATA RACE +Write at 0x00c03f244550 by goroutine 36: + runtime.closechan() + /usr/local/go/src/runtime/chan.go:355 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e + github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 + github.com/ChainSafe/gossamer/dot/network.createTestService.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a + testing.(*common).Cleanup.func1() + /usr/local/go/src/testing/testing.go:912 +0x199 + testing.(*common).runCleanup() + /usr/local/go/src/testing/testing.go:1049 +0x154 + testing.tRunner.func2() + /usr/local/go/src/testing/testing.go:1253 +0x4f + testing.tRunner() + /usr/local/go/src/testing/testing.go:1265 +0x268 + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous read at 0x00c03f244550 by goroutine 677: + runtime.chansend() + /usr/local/go/src/runtime/chan.go:158 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Incoming() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:86 +0xc4 + github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:435 +0xfb + github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:433 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Swarm).addConn·dwrap·13() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm.go:285 +0x58 + +Goroutine 36 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 +================== +=== CONT TestSetReservedPeer + testing.go:1152: race detected during execution of test +=== CONT TestPeerConnect +--- FAIL: TestSetReservedPeer (4.31s) +2021-12-07T09:49:13-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect1443991448/001/TestPeerConnect/nodeA/node.key pkg=network +2021-12-07T09:49:13-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T09:49:13-04:00 DBUG starting DHT with bootnodes [{12D3KooWSLyN3VpKLx8srHnu9oGXm3PaaWGNK99GszQS44Vqzv9p: [/ip4/127.0.0.1/tcp/55628]}]... pkg=network +2021-12-07T09:49:13-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T09:49:13-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network +2021-12-07T09:49:13-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:13-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:13-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:13-04:00 WARN ignoring LightRequest without request data pkg=network +2021-12-07T09:49:13-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T09:49:13-04:00 WARN failed to send LightResponse message to peer 12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H: stream closed pkg=network +2021-12-07T09:49:13-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/light/2, peer=12D3KooW9vANHSkThbzaSaHdx8vwU1T3AkiEQs3oR4B9S7YcxisY pkg=network +2021-12-07T09:49:13-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T09:49:13-04:00 WARN failed to send LightResponse message to peer 12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H: stream closed pkg=network +2021-12-07T09:49:13-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:13-04:00 WARN failed to send LightResponse message to peer 12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H: stream closed pkg=network +2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:13-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55646/p2p/12D3KooWS4VxjQeMheNz5wm9VVxcS8kd68pEHaaaz53NSfH1avLA pkg=network +2021-12-07T09:49:13-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T09:49:13-04:00 WARN failed to send LightResponse message to peer 12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H: stream closed pkg=network +2021-12-07T09:49:13-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T09:49:13-04:00 WARN failed to send LightResponse message to peer 12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H: stream closed pkg=network +2021-12-07T09:49:13-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:13-04:00 DBUG connection successful with peer 12D3KooWLvG14Zj9UP9CLGmhs6NZFRoY3HYwVMiP3uP3V98xCCKo pkg=network +2021-12-07T09:49:13-04:00 DBUG connection successful with peer 12D3KooWJb4s5aUvMFvVdsFy9FVBknTe9TF6F5Gt3jLgFqVPqkYe pkg=network +2021-12-07T09:49:13-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset +2021-12-07T09:49:13-04:00 DBUG connection dropped successfully for peer 12D3KooWJb4s5aUvMFvVdsFy9FVBknTe9TF6F5Gt3jLgFqVPqkYe pkg=network +=== CONT TestHandleLightMessage_Response + testing.go:1152: race detected during execution of test +=== CONT Test_RemoveReservedPeers +--- FAIL: TestHandleLightMessage_Response (1.97s) +2021-12-07T09:49:13-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers2335871119/001/Test_RemoveReservedPeers/nodeA/node.key pkg=network +================== +WARNING: DATA RACE +Read at 0x00c045a3a600 by goroutine 54: + runtime.mapaccess2_faststr() + /usr/local/go/src/runtime/map_faststr.go:107 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).getNode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:114 +0x8b + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:109 +0x31 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c045a3a600 by goroutine 730: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:330 +0x288 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:715 +0x529 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x47 + +Goroutine 54 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 730 (running) created at: + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x170 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 + github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c01527e708 by goroutine 54: + github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).getNode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:114 +0x99 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:109 +0x31 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c01527e708 by goroutine 730: + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:330 +0x297 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:715 +0x529 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x47 + +Goroutine 54 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 730 (running) created at: + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x170 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 + github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c018b32470 by goroutine 54: + github.com/ChainSafe/gossamer/dot/peerset.(*node).getReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:91 +0x10a + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:113 +0x117 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c018b32470 by goroutine 730: + github.com/ChainSafe/gossamer/dot/peerset.(*node).addReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:95 +0x210 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:329 +0x41 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:715 +0x529 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x47 + +Goroutine 54 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 730 (running) created at: + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x170 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 + github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:14-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55647/p2p/12D3KooWE2A3Rvu8bA3PtPJetMKmCejMwCZSfhZY21yxaNik37MN pkg=network +=== CONT TestPeerReputation + testing.go:1152: race detected during execution of test +=== CONT Test_AddReservedPeers +--- FAIL: TestPeerReputation (2.15s) +2021-12-07T09:49:14-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers3796944281/001/Test_AddReservedPeers/nodeA/node.key pkg=network +2021-12-07T09:49:14-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:14-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55649/p2p/12D3KooWRBWijSckfLN79ALNMbUsLz8yGHpVXF74rDpFJUJo9Cbh pkg=network +2021-12-07T09:49:14-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect1443991448/002/TestPeerConnect/nodeB/node.key pkg=network +2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:14-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55650/p2p/12D3KooWGHCLxXmiYyBUFfrKNfAUPgb1tihtSnK5Vbmd6mbpcWiM pkg=network +2021-12-07T09:49:14-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset +2021-12-07T09:49:14-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:14-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers2335871119/002/Test_RemoveReservedPeers/nodeB/node.key pkg=network +2021-12-07T09:49:14-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T09:49:14-04:00 DBUG starting DHT with bootnodes [{12D3KooWSLyN3VpKLx8srHnu9oGXm3PaaWGNK99GszQS44Vqzv9p: [/ip4/127.0.0.1/tcp/55628]}]... pkg=network +2021-12-07T09:49:14-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:14-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55651/p2p/12D3KooWLjeMK8aNp1gzhnMDrXwZ1VMxVrmX4pqXJWnhFbCj2Vjq pkg=network +2021-12-07T09:49:14-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:14-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers3796944281/002/Test_AddReservedPeers/nodeB/node.key pkg=network +2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:14-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55652/p2p/12D3KooWSUE95oHwaxf8HZKbc68HUBHDnoeH7bWh7oJg39RRbbzA pkg=network +2021-12-07T09:49:14-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:14-04:00 DBUG connection successful with peer 12D3KooWGHCLxXmiYyBUFfrKNfAUPgb1tihtSnK5Vbmd6mbpcWiM pkg=network +=== CONT TestPeerConnect + testing.go:1152: race detected during execution of test +--- FAIL: TestPeerConnect (1.52s) +=== CONT TestStreamCloseMetadataCleanup +2021-12-07T09:49:15-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup4042372936/001/TestStreamCloseMetadataCleanup/nodeA/node.key pkg=network +2021-12-07T09:49:15-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:15-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55653/p2p/12D3KooWGkYFWKtDjrjWiuvsxiReHkBDXSb8ofZ3DEbJzDAE3Bw5 pkg=network +2021-12-07T09:49:15-04:00 DBUG connection successful with peer 12D3KooWLjeMK8aNp1gzhnMDrXwZ1VMxVrmX4pqXJWnhFbCj2Vjq pkg=network +2021-12-07T09:49:15-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:15-04:00 DBUG connection successful with peer 12D3KooWSUE95oHwaxf8HZKbc68HUBHDnoeH7bWh7oJg39RRbbzA pkg=network +=== CONT TestMessageCache + testing.go:1152: race detected during execution of test +--- FAIL: TestMessageCache (3.51s) +=== CONT TestExistingStream +2021-12-07T09:49:15-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream2557317831/001/TestExistingStream/nodeA/node.key pkg=network +2021-12-07T09:49:15-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T09:49:15-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T09:49:15-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:15-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup4042372936/002/TestStreamCloseMetadataCleanup/nodeB/node.key pkg=network +=== CONT Test_RemoveReservedPeers + testing.go:1152: race detected during execution of test +=== CONT TestSend +--- FAIL: Test_RemoveReservedPeers (1.95s) +2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:15-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55654/p2p/12D3KooWGAx1JXaMk79v6fzXstxr5tgpXwwpyVJ2CvhvinS7YosK pkg=network +=== CONT TestBootstrap +--- PASS: Test_AddReservedPeers (1.73s) +2021-12-07T09:49:15-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend3377903579/001/TestSend/nodeA/node.key pkg=network +2021-12-07T09:49:15-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap1193564528/001/TestBootstrap/nodeA/node.key pkg=network +2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:15-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55655/p2p/12D3KooWANbAbE2yLdhGKtaXE2Q2RPqL89zD8wpFEK5ArpSAmPZH pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55656/p2p/12D3KooWHdnCoSTysuxS9g6pQDuibZmGY5nYtm9C2KbNcnPaStth pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55657/p2p/12D3KooWHDp7ymbYSJw3XEbv44GhmRx7bZypa7N8SGEWt7ux15nT pkg=network +2021-12-07T09:49:16-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:16-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream2557317831/002/TestExistingStream/nodeB/node.key pkg=network +2021-12-07T09:49:16-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestBeginDiscovery_ThreeNodes + testing.go:1152: race detected during execution of test +--- FAIL: TestBeginDiscovery_ThreeNodes (6.42s) +=== CONT TestConnect +2021-12-07T09:49:16-04:00 DBUG connection successful with peer 12D3KooWJb4s5aUvMFvVdsFy9FVBknTe9TF6F5Gt3jLgFqVPqkYe pkg=network +2021-12-07T09:49:16-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect3518812401/001/TestConnect/nodeA/node.key pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55658/p2p/12D3KooWRpX9drYiXnkEXno8ceAD2YawXTnMNVecR2gqxgjxPoBD pkg=network +2021-12-07T09:49:16-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:16-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:16-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend3377903579/002/TestSend/nodeB/node.key pkg=network +2021-12-07T09:49:16-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap1193564528/002/TestBootstrap/nodeB/node.key pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55659/p2p/12D3KooWP5SL3UEs9WbxpHoCYGMV9xy7p1DGB3kyqqYk1dnWKoJp pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55660/p2p/12D3KooWEBa7TXRqxb4Vd35za34iZYW13F3UHzNQeGGu8KMeBgzh pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55661/p2p/12D3KooWNSwHuuGu4Rq1EryCCHiDyfCtnH8oswTsxYYUoi7FaWqq pkg=network +2021-12-07T09:49:16-04:00 DBUG bootstrapping to peer 12D3KooWHDp7ymbYSJw3XEbv44GhmRx7bZypa7N8SGEWt7ux15nT pkg=network +2021-12-07T09:49:16-04:00 DBUG connection successful with peer 12D3KooWHDp7ymbYSJw3XEbv44GhmRx7bZypa7N8SGEWt7ux15nT pkg=network +=== CONT TestBannedPeer + testing.go:1152: race detected during execution of test +--- FAIL: TestBannedPeer (5.07s) +=== CONT Test_sizedBufferPool +=== CONT TestKadDHT +--- PASS: Test_sizedBufferPool (0.00s) +2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:17-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3033539690/001/TestKadDHT/node0/node.key pkg=network +2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:17-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55663/p2p/12D3KooWFLXde5C18HZ88BJcWnsXQhKEhd1J9BX5brRfFegoD3tx pkg=network +2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:17-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect3518812401/002/TestConnect/nodeB/node.key pkg=network +2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:17-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55664/p2p/12D3KooWKEfYx2nr1HeNg41BSa2KgLmnkmLuUjKTBQTLLzKdVN1n pkg=network +=== CONT TestEncodeBlockAnnounceHandshake +--- PASS: TestBootstrap (1.64s) +=== CONT TestBeginDiscovery +--- PASS: TestEncodeBlockAnnounceHandshake (0.00s) +2021-12-07T09:49:17-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery1717403580/001/TestBeginDiscovery/nodeA/node.key pkg=network +2021-12-07T09:49:17-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWGkYFWKtDjrjWiuvsxiReHkBDXSb8ofZ3DEbJzDAE3Bw5 pkg=network +2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:17-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55665/p2p/12D3KooWDnfzYuoGtGTuVFzxZsaAXRNwuAGdbdDmZSSwuyqPeKPZ pkg=network +2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:17-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3033539690/002/TestKadDHT/node1/node.key pkg=network +2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:17-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55666/p2p/12D3KooWSjBCybiZtiTbjMC6xBxAbiVfTdNuKrSfd1BwTgptHA2v pkg=network +2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestDecodeBlockAnnounceHandshake +--- PASS: TestConnect (1.55s) +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake +--- PASS: TestDecodeBlockAnnounceHandshake (0.00s) +2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake1062558172/001/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeA/node.key pkg=network +2021-12-07T09:49:18-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery1717403580/002/TestBeginDiscovery/nodeB/node.key pkg=network +================== +WARNING: DATA RACE +Read at 0x00c01932eba0 by goroutine 46: + runtime.mapaccess1_faststr() + /usr/local/go/src/runtime/map_faststr.go:12 +0x0 + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcbc + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c01932eba0 by goroutine 198: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 46 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 198 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c00127c608 by goroutine 46: + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcc9 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c00127c608 by goroutine 198: + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 46 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 198 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +2021-12-07T09:49:18-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55667/p2p/12D3KooWGmJKonCaP9NGW4nq6B2RQyYvoWKUJWQGGzCCPjCxpC7Z pkg=network +2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55668/p2p/12D3KooWDfc5yFjQG1u6YmN36UwTMzpBMiFn7igCLAgRUbKCxr9K pkg=network +2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3033539690/003/TestKadDHT/node2/node.key pkg=network +2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55669/p2p/12D3KooWA8qur5nqe3oH5NbQQS1xqsMDqgBGPRKHufqhEnnnuMnW pkg=network +================== +WARNING: DATA RACE +Read at 0x00c02075c270 by goroutine 45: + runtime.mapaccess2_faststr() + /usr/local/go/src/runtime/map_faststr.go:107 +0x0 + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:209 +0xa3c + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c02075c270 by goroutine 984: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 984 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c063190b88 by goroutine 45: + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:209 +0xa4d + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c063190b88 by goroutine 984: + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 984 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c00fcad0b0 by goroutine 45: + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xae4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c00fcad0b0 by goroutine 984: + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x17c + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 984 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c03f180900 by goroutine 45: + reflect.typedmemmove() + /usr/local/go/src/runtime/mbarrier.go:178 +0x0 + reflect.packEface() + /usr/local/go/src/reflect/value.go:123 +0xae + reflect.valueInterface() + /usr/local/go/src/reflect/value.go:1381 +0x18a + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:154 +0x9dc + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.DeepEqual() + /usr/local/go/src/reflect/deepequal.go:218 +0x404 + github.com/stretchr/testify/assert.ObjectsAreEqual() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 + github.com/stretchr/testify/assert.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 + github.com/stretchr/testify/require.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c03f180900 by goroutine 984: + github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:194 +0x77b + github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 984 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c03f180908 by goroutine 45: + reflect.Value.IsNil() + /usr/local/go/src/reflect/value.go:1425 +0x1d8 + reflect.deepValueEqual.func1() + /usr/local/go/src/reflect/deepequal.go:50 +0x11d + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:55 +0x16d + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.DeepEqual() + /usr/local/go/src/reflect/deepequal.go:218 +0x404 + github.com/stretchr/testify/assert.ObjectsAreEqual() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 + github.com/stretchr/testify/assert.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 + github.com/stretchr/testify/require.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c03f180908 by goroutine 984: + github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:195 +0x7c8 + github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 984 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c03f180918 by goroutine 45: + reflect.Value.IsNil() + /usr/local/go/src/reflect/value.go:1419 +0x225 + reflect.deepValueEqual.func1() + /usr/local/go/src/reflect/deepequal.go:50 +0x11d + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:55 +0x16d + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.DeepEqual() + /usr/local/go/src/reflect/deepequal.go:218 +0x404 + github.com/stretchr/testify/assert.ObjectsAreEqual() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 + github.com/stretchr/testify/assert.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 + github.com/stretchr/testify/require.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c03f180918 by goroutine 984: + github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:196 +0x835 + github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 984 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c0192fcfa0 by goroutine 45: + reflect.typedmemmove() + /usr/local/go/src/runtime/mbarrier.go:178 +0x0 + reflect.packEface() + /usr/local/go/src/reflect/value.go:123 +0xae + reflect.valueInterface() + /usr/local/go/src/reflect/value.go:1381 +0x18a + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:154 +0x9dc + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:90 +0x1684 + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.DeepEqual() + /usr/local/go/src/reflect/deepequal.go:218 +0x404 + github.com/stretchr/testify/assert.ObjectsAreEqual() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 + github.com/stretchr/testify/assert.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 + github.com/stretchr/testify/require.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c0192fcfa0 by goroutine 984: + github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:182 +0x6fa + github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 984 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c03f180920 by goroutine 45: + reflect.typedmemmove() + /usr/local/go/src/runtime/mbarrier.go:178 +0x0 + reflect.packEface() + /usr/local/go/src/reflect/value.go:123 +0xae + reflect.valueInterface() + /usr/local/go/src/reflect/value.go:1381 +0x18a + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:154 +0x9dc + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.DeepEqual() + /usr/local/go/src/reflect/deepequal.go:218 +0x404 + github.com/stretchr/testify/assert.ObjectsAreEqual() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 + github.com/stretchr/testify/assert.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 + github.com/stretchr/testify/require.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c03f180920 by goroutine 984: + github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:197 +0x89a + github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 984 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c03f180928 by goroutine 45: + reflect.Value.IsNil() + /usr/local/go/src/reflect/value.go:1419 +0x225 + reflect.deepValueEqual.func1() + /usr/local/go/src/reflect/deepequal.go:50 +0x11d + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:55 +0x16d + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.DeepEqual() + /usr/local/go/src/reflect/deepequal.go:218 +0x404 + github.com/stretchr/testify/assert.ObjectsAreEqual() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 + github.com/stretchr/testify/assert.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 + github.com/stretchr/testify/require.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c03f180928 by goroutine 984: + github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:198 +0x8ba + github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 984 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c00fa4e35c by goroutine 45: + reflect.typedmemmove() + /usr/local/go/src/runtime/mbarrier.go:178 +0x0 + reflect.packEface() + /usr/local/go/src/reflect/value.go:123 +0xae + reflect.valueInterface() + /usr/local/go/src/reflect/value.go:1381 +0x18a + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:154 +0x9dc + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.DeepEqual() + /usr/local/go/src/reflect/deepequal.go:218 +0x404 + github.com/stretchr/testify/assert.ObjectsAreEqual() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 + github.com/stretchr/testify/assert.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 + github.com/stretchr/testify/require.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c00fa4e358 by goroutine 984: + github.com/ChainSafe/gossamer/dot/network/proto.(*BlockRequest).Reset() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/proto/api.v1.pb.go:102 +0x37 + google.golang.org/protobuf/proto.Reset() + /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/reset.go:18 +0x4d + google.golang.org/protobuf/proto.UnmarshalOptions.unmarshal() + /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/decode.go:77 +0xcc + google.golang.org/protobuf/proto.Unmarshal() + /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/decode.go:50 +0xa4 + github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:152 +0xf4 + github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 984 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +2021-12-07T09:49:18-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network +=== CONT TestSend + testing.go:1152: race detected during execution of test +--- FAIL: TestSend (2.78s) +=== CONT TestMaxPeers +2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3065712103/001/TestMaxPeers/node0/node.key pkg=network +2021-12-07T09:49:18-04:00 WARN min peers higher than max peers; setting to default pkg=network +=== CONT TestStreamCloseMetadataCleanup + testing.go:1152: race detected during execution of test +--- FAIL: TestStreamCloseMetadataCleanup (3.70s) +=== CONT TestPersistPeerStore +2021-12-07T09:49:18-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:18-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55671/p2p/12D3KooWHM3njgDQCkyv4HaibNjUmqcvYfhG7MgiQfhyH9yWmTpP pkg=network +2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore1461834304/001/TestPersistPeerStore/node0/node.key pkg=network +2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake1062558172/002/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeB/node.key pkg=network +================== +WARNING: DATA RACE +Read at 0x00c0011efeb8 by goroutine 51: + github.com/ChainSafe/gossamer/dot/network.TestStreamCloseEOF() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:555 +0xa5e + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c0011efeb8 by goroutine 813: + [failed to restore the stack] + +Goroutine 51 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 +================== +2021-12-07T09:49:18-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:18-04:00 DBUG starting DHT with bootnodes [{12D3KooWDfc5yFjQG1u6YmN36UwTMzpBMiFn7igCLAgRUbKCxr9K: [/ip4/127.0.0.1/tcp/55668]}]... pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55672/p2p/12D3KooWLtXSCQueZk1zQQZRmyY7VLQJggATzyTBAXTHssoa9opF pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55673/p2p/12D3KooWDpc1zkdWj7BVwARqNTA583rqW5KcYjTDne2xSe4XWxqa pkg=network +=== CONT TestStreamCloseEOF + testing.go:1152: race detected during execution of test +--- FAIL: TestStreamCloseEOF (6.76s) +=== CONT TestService_Health +================== +WARNING: DATA RACE +Read at 0x00c0458f9860 by goroutine 46: + runtime.mapaccess1_faststr() + /usr/local/go/src/runtime/map_faststr.go:12 +0x0 + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1008 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c0458f9860 by goroutine 440: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 46 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 440 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c000963268 by goroutine 46: + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1015 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c000963268 by goroutine 440: + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 46 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 440 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +2021-12-07T09:49:19-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network +2021-12-07T09:49:19-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network +2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_Health1518250653/001/TestService_Health/nodeA/node.key pkg=network +2021-12-07T09:49:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestExistingStream + testing.go:1152: race detected during execution of test +--- FAIL: TestExistingStream (3.91s) +=== CONT TestEncodeBlockRequestMessage_BlockHash +=== CONT TestRemovePeer +--- PASS: TestEncodeBlockRequestMessage_BlockHash (0.00s) +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55674/p2p/12D3KooWHRqmdG5YWNmwXsiaw5LSBt7f1TgzhJ9oxcMzqUWu6Zhm pkg=network +2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3065712103/002/TestMaxPeers/node1/node.key pkg=network +2021-12-07T09:49:19-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer2086655697/001/TestRemovePeer/nodeA/node.key pkg=network +2021-12-07T09:49:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55675/p2p/12D3KooWMkDRTnrBF1H14jSSP5m9Rkxuned2qzMoouAdSNbzSYNV pkg=network +2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore1461834304/002/TestPersistPeerStore/node1/node.key pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55676/p2p/12D3KooWEAt3EiWF6vqj4QWLJAs8Yu9QZgqxo7hprVMFsjhAJJ4g pkg=network +2021-12-07T09:49:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:19-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWGmJKonCaP9NGW4nq6B2RQyYvoWKUJWQGGzCCPjCxpC7Z pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55677/p2p/12D3KooWNm3F7LeFf8CjpKMJ3CDsUDEDTfeXjyoB7Tc3hB9Z11mt pkg=network +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake + testing.go:1152: race detected during execution of test +=== CONT TestEncodeBlockRequestMessage +--- FAIL: TestCreateNotificationsMessageHandler_BlockAnnounceHandshake (1.72s) +=== CONT TestMessageCacheError +--- PASS: TestEncodeBlockRequestMessage (0.00s) +=== CONT TestProtectUnprotectPeer +--- PASS: TestMessageCacheError (0.00s) +=== CONT TestPersistentPeers +--- PASS: TestProtectUnprotectPeer (0.00s) +2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers3295774362/001/TestPersistentPeers/node-a/node.key pkg=network +2021-12-07T09:49:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:19-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T09:49:19-04:00 DBUG starting DHT with bootnodes [{12D3KooWDnfzYuoGtGTuVFzxZsaAXRNwuAGdbdDmZSSwuyqPeKPZ: [/ip4/127.0.0.1/tcp/55665]}]... pkg=network +2021-12-07T09:49:19-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T09:49:19-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55678/p2p/12D3KooWLJP9Dx6XxpgSBg6rR5tFn3QqhN6XWJwnQzggwAGEbKuz pkg=network +=== CONT TestService_Health + testing.go:1152: race detected during execution of test +=== CONT TestBroadcastDuplicateMessage +--- FAIL: TestService_Health (0.86s) +2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1959176661/001/TestBroadcastDuplicateMessage/nodeA/node.key pkg=network +2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3065712103/003/TestMaxPeers/node2/node.key pkg=network +2021-12-07T09:49:20-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T09:49:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer2086655697/002/TestRemovePeer/nodeB/node.key pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55680/p2p/12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM pkg=network +2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55681/p2p/12D3KooWB8E8pokfGRjM3MqpUJ9HjWvNG6FBh25c2YSf1SPZLWhS pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55682/p2p/12D3KooWPdq14dHBGej2nTRo4VQ1QEhztignfSCL8gTRP3pYVtKT pkg=network +2021-12-07T09:49:20-04:00 DBUG bootstrapping to peer 12D3KooWEAt3EiWF6vqj4QWLJAs8Yu9QZgqxo7hprVMFsjhAJJ4g pkg=network +================== +WARNING: DATA RACE +Write at 0x00c0003a27d8 by goroutine 90: + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:87 +0x557 + github.com/ChainSafe/gossamer/dot/network.TestPersistPeerStore() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:319 +0x43e + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous read at 0x00c0003a27d8 by goroutine 872: + github.com/ChainSafe/gossamer/dot/network.(*Service).startTxnBatchProcessing() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction.go:123 +0x26a + github.com/ChainSafe/gossamer/dot/network.(*Service).createBatchMessageHandler·dwrap·25() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction.go:150 +0x47 + +Goroutine 90 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 872 (finished) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).createBatchMessageHandler() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction.go:150 +0xd8 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:215 +0x7be + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 + github.com/ChainSafe/gossamer/dot/network.createServiceHelper() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:47 +0x244 + github.com/ChainSafe/gossamer/dot/network.TestPersistPeerStore() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:300 +0x5c + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +2021-12-07T09:49:20-04:00 DBUG connection successful with peer 12D3KooWEAt3EiWF6vqj4QWLJAs8Yu9QZgqxo7hprVMFsjhAJJ4g pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55672/p2p/12D3KooWLtXSCQueZk1zQQZRmyY7VLQJggATzyTBAXTHssoa9opF pkg=network +2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers3295774362/002/TestPersistentPeers/node-b/node.key pkg=network +2021-12-07T09:49:20-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55683/p2p/12D3KooWLXhe1yWKYyk9BqKyXpigK7DfpeKGrJiTW7b22c8Z4MpT pkg=network +2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 DBUG cleaning up outbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network +2021-12-07T09:49:20-04:00 DBUG failed to send handshake to peer 12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA on protocol /gossamer/test/0/block-announces/1: handshake timeout reached pkg=network +2021-12-07T09:49:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1959176661/002/TestBroadcastDuplicateMessage/nodeB/node.key pkg=network +2021-12-07T09:49:20-04:00 DBUG connection successful with peer 12D3KooWLJP9Dx6XxpgSBg6rR5tFn3QqhN6XWJwnQzggwAGEbKuz pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55684/p2p/12D3KooWEKUkNUxmHJB8vu4FXiH8eYDj68u4qjdtiHhZWVHLVquV pkg=network +2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3065712103/004/TestMaxPeers/node3/node.key pkg=network +2021-12-07T09:49:20-04:00 WARN min peers higher than max peers; setting to default pkg=network +=== CONT TestMaxPeers + connmgr_test.go:73: + Error Trace: service_test.go:102 + connmgr_test.go:73 + Error: Received unexpected error: + failed to listen on any addresses: [listen tcp4 0.0.0.0:55685: socket: too many open files] + Test: TestMaxPeers +2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:20-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T09:49:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestPersistPeerStore + testing.go:1152: race detected during execution of test +--- FAIL: TestPersistPeerStore (2.51s) +=== CONT TestBroadcastMessages +=== CONT TestBeginDiscovery + testing.go:1152: race detected during execution of test +--- FAIL: TestBeginDiscovery (3.83s) +=== CONT TestStartService +=== CONT TestMaxPeers + testing.go:1152: race detected during execution of test +=== CONT Test_sizedBufferPool_race +--- FAIL: TestMaxPeers (2.71s) +=== CONT TestBuildIdentity +--- PASS: Test_sizedBufferPool_race (0.01s) +=== CONT TestMinPeers +--- PASS: TestBuildIdentity (0.01s) +2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages1014623317/001/TestBroadcastMessages/nodeA/node.key pkg=network +2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStartService1316991366/001/TestStartService/node/node.key pkg=network +2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2134942998/001/TestMinPeers/node0/node.key pkg=network +2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:21-04:00 DBUG connection dropped successfully for peer 12D3KooWEAt3EiWF6vqj4QWLJAs8Yu9QZgqxo7hprVMFsjhAJJ4g pkg=network +2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55687/p2p/12D3KooWP23THBBSA2sybVkn3yTftg5r9ASJem5atYjSSx6nkBxv pkg=network +================== +WARNING: DATA RACE +Write at 0x00c03f0a1ab8 by goroutine 87: + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:248 +0xe8b + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous read at 0x00c03f0a1ab8 by goroutine 454: + github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:285 +0x3b2 + github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 + +Goroutine 87 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 454 (finished) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0x467 + github.com/ChainSafe/gossamer/dot/network.(*Service).GossipMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:530 +0x3d9 + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:241 +0xd56 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55686/p2p/12D3KooWEnuRQdQAYqA1Ltk6N9nQr9QkDd6RTfM1MMxuar9uADLg pkg=network +2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55688/p2p/12D3KooWG3trjP6icopsMp8H4BrBWSmJxyAnK3cS4oJv8KqWSC3a pkg=network +================== +WARNING: DATA RACE +Read at 0x00c03f01e2a0 by goroutine 87: + runtime.mapaccess1_faststr() + /usr/local/go/src/runtime/map_faststr.go:12 +0x0 + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf78 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c03f01e2a0 by goroutine 416: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 87 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 416 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c0217aa4a8 by goroutine 87: + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf85 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c0217aa4a8 by goroutine 416: + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 87 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 416 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +2021-12-07T09:49:21-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network +2021-12-07T09:49:21-04:00 DBUG connection dropped successfully for peer 12D3KooWLXhe1yWKYyk9BqKyXpigK7DfpeKGrJiTW7b22c8Z4MpT pkg=network +2021-12-07T09:49:21-04:00 DBUG connection successful with peer 12D3KooWLXhe1yWKYyk9BqKyXpigK7DfpeKGrJiTW7b22c8Z4MpT pkg=network +=== CONT TestRemovePeer + testing.go:1152: race detected during execution of test +=== CONT Test_HandshakeTimeout + testing.go:1152: race detected during execution of test +--- FAIL: TestRemovePeer (2.57s) +=== CONT TestCreateNotificationsMessageHandler_HandleTransaction +--- FAIL: Test_HandshakeTimeout (13.11s) +=== CONT TestExternalAddrsPublicIP +================== +WARNING: DATA RACE +Write at 0x00c0a5802370 by goroutine 87: + runtime.closechan() + /usr/local/go/src/runtime/chan.go:355 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e + github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 + github.com/ChainSafe/gossamer/dot/network.createTestService.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a + testing.(*common).Cleanup.func1() + /usr/local/go/src/testing/testing.go:912 +0x199 + testing.(*common).runCleanup() + /usr/local/go/src/testing/testing.go:1049 +0x154 + testing.tRunner.func2() + /usr/local/go/src/testing/testing.go:1253 +0x4f + testing.tRunner() + /usr/local/go/src/testing/testing.go:1265 +0x268 + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous read at 0x00c0a5802370 by goroutine 341: + runtime.chansend() + /usr/local/go/src/runtime/chan.go:158 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).ReportPeer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:77 +0xf0 + github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:315 +0x957 + github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 + +Goroutine 87 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 341 (finished) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0x467 + github.com/ChainSafe/gossamer/dot/network.(*Service).GossipMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:530 +0x3d9 + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:252 +0xeda + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +=== CONT TestBroadcastDuplicateMessage + testing.go:1152: race detected during execution of test +=== CONT TestBlockAnnounceHandshakeSize +--- FAIL: TestBroadcastDuplicateMessage (1.98s) +=== CONT Test_PeerSupportsProtocol +--- PASS: TestBlockAnnounceHandshakeSize (0.00s) +2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrsPublicIP1277160877/001/TestExternalAddrsPublicIP/node/node.key pkg=network +2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction1495981099/001/TestCreateNotificationsMessageHandler_HandleTransaction/nodeA/node.key pkg=network +2021-12-07T09:49:21-04:00 DBUG using config PublicIP: 10.0.5.2 pkg=network +2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol2165929546/001/Test_PeerSupportsProtocol/nodeA/node.key pkg=network +2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages1014623317/002/TestBroadcastMessages/nodeB/node.key pkg=network +2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2134942998/002/TestMinPeers/node1/node.key pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55690/p2p/12D3KooWFELyQ3o3kxzwgfT7DVK57dbEjnyEAgQBGv4YMPWFJ8of pkg=network +2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/10.0.5.2/tcp/55690/p2p/12D3KooWFELyQ3o3kxzwgfT7DVK57dbEjnyEAgQBGv4YMPWFJ8of pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55689/p2p/12D3KooWDBTPy8cHxnW1G2t2yDvnF4suaAKEWrkHyassa577bRa5 pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55691/p2p/12D3KooWJrgz5bedFef26GJEG3fyicmPusQHUtTaBa22jPw1XuKT pkg=network +=== CONT TestStartService + testing.go:1152: race detected during execution of test +--- FAIL: TestStartService (1.02s) +=== CONT TestEncodeBlockAnnounce +=== CONT TestExternalAddrs +--- PASS: TestEncodeBlockAnnounce (0.00s) +2021-12-07T09:49:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrs1362798046/001/TestExternalAddrs/node/node.key pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55692/p2p/12D3KooWAtb22j1mLxT7ouqxWjh3mSDELvAkC4NNhSgULYmSH7Yu pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55693/p2p/12D3KooWAiXz4XU6NEfxDTmVTo1pjmHnwMCnfzxHYMEEZQiQCAxj pkg=network +=== CONT TestPersistentPeers + testing.go:1152: race detected during execution of test +--- FAIL: TestPersistentPeers (2.77s) +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55694/p2p/12D3KooWBW7SbgJPUD3tg6TMyjJiDyETtnnVLftXZxngZMkvSUdh pkg=network +2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestExternalAddrsPublicIP + testing.go:1152: race detected during execution of test +--- FAIL: TestExternalAddrsPublicIP (0.86s) +2021-12-07T09:49:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction1495981099/002/TestCreateNotificationsMessageHandler_HandleTransaction/nodeB/node.key pkg=network +2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol2165929546/002/Test_PeerSupportsProtocol/nodeB/node.key pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55695/p2p/12D3KooWAXBVQW5m7m3rumuxawPS7iuSLBVAZVQfC1naZmezyqVk pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55696/p2p/12D3KooWFBAhx16WaH4Qe1b6BFatHzKhFfhkeV9VDD4gtcZkg8wr pkg=network +2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:23-04:00 DBUG gossiping from host 12D3KooWP23THBBSA2sybVkn3yTftg5r9ASJem5atYjSSx6nkBxv message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T09:49:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2134942998/003/TestMinPeers/nodeB/node.key pkg=network +2021-12-07T09:49:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +--- PASS: TestExternalAddrs (0.86s) +2021-12-07T09:49:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T09:49:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55698/p2p/12D3KooWHeTpguzUYAMvmZQ19WubbKdxq96rvYVNUUPYZGLaz8BP pkg=network +2021-12-07T09:49:23-04:00 DBUG bootstrapping to peer 12D3KooWG3trjP6icopsMp8H4BrBWSmJxyAnK3cS4oJv8KqWSC3a pkg=network +2021-12-07T09:49:23-04:00 DBUG bootstrapping to peer 12D3KooWAiXz4XU6NEfxDTmVTo1pjmHnwMCnfzxHYMEEZQiQCAxj pkg=network +2021-12-07T09:49:23-04:00 DBUG connection successful with peer 12D3KooWG3trjP6icopsMp8H4BrBWSmJxyAnK3cS4oJv8KqWSC3a pkg=network +2021-12-07T09:49:23-04:00 DBUG connection successful with peer 12D3KooWAiXz4XU6NEfxDTmVTo1pjmHnwMCnfzxHYMEEZQiQCAxj pkg=network +2021-12-07T09:49:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +--- PASS: Test_PeerSupportsProtocol (1.72s) +2021-12-07T09:49:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T09:49:23-04:00 DBUG connection dropped successfully for peer 12D3KooWG3trjP6icopsMp8H4BrBWSmJxyAnK3cS4oJv8KqWSC3a pkg=network +2021-12-07T09:49:23-04:00 DBUG transaction message TransactionMessage extrinsics count=2 for peer 12D3KooWAXBVQW5m7m3rumuxawPS7iuSLBVAZVQfC1naZmezyqVk not included into batch pkg=network +=== CONT TestMinPeers + testing.go:1152: race detected during execution of test +--- FAIL: TestMinPeers (2.59s) +================== +WARNING: DATA RACE +Read at 0x00c09be7aba0 by goroutine 86: + runtime.mapaccess1_faststr() + /usr/local/go/src/runtime/map_faststr.go:12 +0x0 + github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9a4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c09be7aba0 by goroutine 668: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 86 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 668 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c06b6133c8 by goroutine 86: + github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9b1 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c06b6133c8 by goroutine 668: + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 86 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 668 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +2021-12-07T09:49:25-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network +=== CONT TestCreateNotificationsMessageHandler_HandleTransaction + testing.go:1152: race detected during execution of test +--- FAIL: TestCreateNotificationsMessageHandler_HandleTransaction (3.37s) +=== CONT TestBroadcastMessages + testing.go:1152: race detected during execution of test +--- FAIL: TestBroadcastMessages (3.99s) +2021-12-07T09:49:27-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T09:49:27-04:00 DBUG starting DHT with bootnodes [{12D3KooWA8qur5nqe3oH5NbQQS1xqsMDqgBGPRKHufqhEnnnuMnW: [/ip4/127.0.0.1/tcp/55669]}]... pkg=network +2021-12-07T09:49:28-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T09:49:28-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T09:49:28-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T09:49:28-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network +2021-12-07T09:49:28-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T09:49:28-04:00 DBUG starting DHT with bootnodes [{12D3KooWFLXde5C18HZ88BJcWnsXQhKEhd1J9BX5brRfFegoD3tx: [/ip4/127.0.0.1/tcp/55663]}]... pkg=network +================== +WARNING: DATA RACE +Read at 0x00c040f0ca90 by goroutine 37: + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x264 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c040f0ca90 by goroutine 177: + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:108 +0x6b2 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 37 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c0667a9530 by goroutine 963: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x111 + +Previous write at 0x00c0667a9530 by goroutine 177: + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:139 +0x93d + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 963 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c06b428a80 by goroutine 963: + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindLocal() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:714 +0x5d + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:625 +0x1b1 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + +Previous write at 0x00c06b428a80 by goroutine 177: + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 963 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c0667a9538 by goroutine 852: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x115 + +Previous write at 0x00c0667a9538 by goroutine 177: + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:139 +0x93d + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 852 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c06b428ad8 by goroutine 963: + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + +Previous write at 0x00c06b428ad8 by goroutine 177: + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 963 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c06b4293b0 by goroutine 963: + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + +Previous write at 0x00c06b4293b0 by goroutine 177: + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 963 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c024127d58 by goroutine 963: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + +Previous write at 0x00c024127d58 by goroutine 177: + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 963 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c024127da0 by goroutine 963: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:394 +0xde + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + +Previous write at 0x00c024127da0 by goroutine 177: + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 963 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c024127db8 by goroutine 963: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:399 +0x148 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + +Previous write at 0x00c024127db8 by goroutine 177: + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 963 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c0009c3ab0 by goroutine 963: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2ab + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + +Previous write at 0x00c0009c3ab0 by goroutine 177: + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1c4 + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 963 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c0009c3aa8 by goroutine 963: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2cb + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + +Previous write at 0x00c0009c3aa8 by goroutine 177: + github.com/libp2p/go-libp2p-kbucket.newBucket() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x12a + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 963 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c06b42bb88 by goroutine 963: + container/list.(*List).Front() + /usr/local/go/src/container/list/list.go:70 +0x57 + github.com/libp2p/go-libp2p-kbucket.(*peerDistanceSorter).appendPeersFromList() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/sorting.go:40 +0x69 + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2e4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + +Previous write at 0x00c06b42bb88 by goroutine 177: + container/list.(*List).Init() + /usr/local/go/src/container/list/list.go:57 +0x113 + container/list.New() + /usr/local/go/src/container/list/list.go:62 +0x96 + github.com/libp2p/go-libp2p-kbucket.newBucket() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x121 + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 963 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c06b429500 by goroutine 852: + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindLocal() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:714 +0x5d + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:625 +0x1b1 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + +Previous write at 0x00c06b429500 by goroutine 177: + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 852 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c06b429558 by goroutine 852: + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + +Previous write at 0x00c06b429558 by goroutine 177: + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 852 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c06b429e30 by goroutine 852: + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + +Previous write at 0x00c06b429e30 by goroutine 177: + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 852 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c024127ed8 by goroutine 852: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + +Previous write at 0x00c024127ed8 by goroutine 177: + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 + github.com/libp2p/go-libp2p-kad-dht/dual.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + github.com/ChainSafe/gossamer/dot/network.(*discovery).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 + +Goroutine 852 (running) created at: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 177 (running) created at: + github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 + github.com/ChainSafe/gossamer/dot/network.TestKadDHT() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +2021-12-07T09:49:29-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T09:49:29-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T09:49:38-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T09:49:38-04:00 DBUG starting DHT with bootnodes [{12D3KooWFLXde5C18HZ88BJcWnsXQhKEhd1J9BX5brRfFegoD3tx: [/ip4/127.0.0.1/tcp/55663]}]... pkg=network +2021-12-07T09:49:39-04:00 DBUG DHT discovery started! pkg=network +=== CONT TestKadDHT + testing.go:1152: race detected during execution of test +--- FAIL: TestKadDHT (22.31s) +FAIL +FAIL github.com/ChainSafe/gossamer/dot/network 32.338s +FAIL From f6d51f0a2707443fbd8715a1f637bc0085e28f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Tue, 7 Dec 2021 14:14:31 -0400 Subject: [PATCH 06/35] chore: data race at peerstate nodes --- dot/peerset/peerset.go | 5 +- dot/peerset/peerstate.go | 19 + test.log | 2817 +++++++++++++++++++------------------- 3 files changed, 1419 insertions(+), 1422 deletions(-) diff --git a/dot/peerset/peerset.go b/dot/peerset/peerset.go index a178b49de9..74120981e9 100644 --- a/dot/peerset/peerset.go +++ b/dot/peerset/peerset.go @@ -230,6 +230,7 @@ func newPeerSet(cfg *ConfigSet) (*PeerSet, error) { // TODO: currently we only have one set, change this once we have more (#1886). cfgSet := cfg.Set[0] now := time.Now() + ps := &PeerSet{ peerState: peerState, reservedNode: make(map[peer.ID]struct{}), @@ -321,13 +322,11 @@ func (ps *PeerSet) reportPeer(change ReputationChange, peers ...peer.ID) error { } for _, pid := range peers { - n, err := ps.peerState.getNode(pid) + rep, err := ps.peerState.addReputation(pid, change) if err != nil { return err } - rep := n.addReputation(change.Value) - ps.peerState.nodes[pid] = n if rep >= BannedThresholdValue { return nil } diff --git a/dot/peerset/peerstate.go b/dot/peerset/peerstate.go index 16acfab4a3..6c4ba7b66c 100644 --- a/dot/peerset/peerstate.go +++ b/dot/peerset/peerstate.go @@ -7,6 +7,7 @@ import ( "fmt" "math" "sort" + "sync" "time" "github.com/libp2p/go-libp2p-core/peer" @@ -108,6 +109,8 @@ type PeersState struct { // configuration of each set. The size of this Info is never modified. // since, single Info can also manage the flow. sets []Info + + mu *sync.Mutex } func (ps *PeersState) getNode(p peer.ID) (*node, error) { @@ -139,6 +142,7 @@ func NewPeerState(cfgs []*config) (*PeersState, error) { peerState := &PeersState{ nodes: make(map[peer.ID]*node), sets: infoSet, + mu: new(sync.Mutex), } return peerState, nil @@ -207,6 +211,21 @@ func (ps *PeersState) sortedPeers(idx int) peer.IDSlice { return peerIDs } +func (ps *PeersState) addReputation(pid peer.ID, change ReputationChange) (Reputation, error) { + ps.mu.Lock() + defer ps.mu.Unlock() + + n, err := ps.getNode(pid) + if err != nil { + return 0, err + } + + rep := n.addReputation(change.Value) + ps.nodes[pid] = n + + return rep, nil +} + // highestNotConnectedPeer returns the peer with the highest Reputation and that we are not connected to. func (ps *PeersState) highestNotConnectedPeer(set int) peer.ID { var maxRep = math.MinInt32 diff --git a/test.log b/test.log index a09b6a528f..c2ce9b4a7f 100644 --- a/test.log +++ b/test.log @@ -159,69 +159,89 @@ --- PASS: TestReadLEB128ToUint64 (0.00s) === RUN TestInvalidLeb128 --- PASS: TestInvalidLeb128 (0.00s) -=== CONT TestDecodeBlockAnnounce -=== CONT TestHandleTransactionMessage -=== CONT TestMDNS -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce -=== CONT TestCreateDecoder_BlockAnnounce -=== CONT TestDecodeConsensusMessage -=== CONT TestDecodeTransactionMessageTwoExtrinsics -=== CONT TestDecodeTransactionMessageOneExtrinsic ---- PASS: TestDecodeConsensusMessage (0.00s) ---- PASS: TestDecodeTransactionMessageOneExtrinsic (0.00s) -=== CONT TestEncodeTransactionMessageSingleExtrinsic -=== CONT Test_HandshakeTimeout ---- PASS: TestDecodeTransactionMessageTwoExtrinsics (0.00s) -=== CONT TestGossip ---- PASS: TestEncodeTransactionMessageSingleExtrinsic (0.00s) -=== CONT TestDecode_BlockAnnounceMessage ---- PASS: TestDecode_BlockAnnounceMessage (0.00s) -=== CONT TestEncodeTransactionMessageTwoExtrinsics ---- PASS: TestEncodeTransactionMessageTwoExtrinsics (0.00s) -=== CONT TestEncodeBlockAnnounceMessage ---- PASS: TestDecodeBlockAnnounce (0.00s) -=== CONT TestEncodeBlockResponseMessage_WithAll ---- PASS: TestEncodeBlockAnnounceMessage (0.00s) -=== CONT TestEncodeBlockResponseMessage_WithBody ---- PASS: TestEncodeBlockResponseMessage_WithBody (0.01s) -=== CONT TestEncodeBlockResponseMessage_Empty ---- PASS: TestEncodeBlockResponseMessage_WithAll (0.01s) -=== CONT TestEncodeBlockRequestMessage_NoOptionals ---- PASS: TestEncodeBlockResponseMessage_Empty (0.00s) -=== CONT TestEncodeBlockRequestMessage_BlockNumber ---- PASS: TestEncodeBlockRequestMessage_NoOptionals (0.00s) -=== CONT TestBlockRequestString -BlockRequestMessage RequestedData=1 StartingBlock={[220 209 52 103 1 202 131 150 73 110 82 170 39 133 177 116 141 235 109 176 149 81 183 33 89 220 179 224 137 145 2 91]} EndBlockHash=0x0000000000000000000000000000000000000000000000000000000000000000 Direction=1 Max=0 ---- PASS: TestBlockRequestString (0.00s) -=== CONT TestService_NodeRoles -2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS3893076944/001/TestMDNS/nodeA/node.key pkg=network -2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout2437718893/001/Test_HandshakeTimeout/nodeA/node.key pkg=network -2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce2396403150/001/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeA/node.key pkg=network -2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateDecoder_BlockAnnounce2495888367/001/TestCreateDecoder_BlockAnnounce/nodeA/node.key pkg=network ---- PASS: TestEncodeBlockRequestMessage_BlockNumber (0.02s) +=== CONT TestEncodeBlockAnnounce +=== CONT TestConnect +=== CONT TestSend +=== CONT TestEncodeBlockRequestMessage_BlockHash +=== CONT TestProtectUnprotectPeer === CONT TestDecodeTransactionHandshake +=== CONT TestExternalAddrsPublicIP --- PASS: TestDecodeTransactionHandshake (0.00s) +--- PASS: TestProtectUnprotectPeer (0.00s) === CONT TestDecodeSyncMessage -2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip688433834/001/TestGossip/nodeA/node.key pkg=network +=== CONT TestStreamManager +=== CONT TestHandleTransactionMessage +--- PASS: TestEncodeBlockAnnounce (0.00s) +=== CONT TestHandleConn +--- PASS: TestEncodeBlockRequestMessage_BlockHash (0.00s) === CONT TestSerivceIsMajorSyncMetrics --- PASS: TestDecodeSyncMessage (0.00s) +=== CONT TestService_Health +=== CONT TestPersistPeerStore --- PASS: TestSerivceIsMajorSyncMetrics (0.00s) -=== CONT TestStreamManager -2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_NodeRoles545505989/001/TestService_NodeRoles/node/node.key pkg=network -2021-12-07T09:49:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleTransactionMessage1609341858/001/TestHandleTransactionMessage/nodeA/node.key pkg=network -2021-12-07T09:49:08-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55615/p2p/12D3KooWCVPkhujHMobg6jh8WTYG2GGBbxG8Tbkk7LGvDGBznwcr pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55613/p2p/12D3KooWDBcsgunRRo6rzvXndcjRCAbnNeTGCWq5rdWGbivx2MJW pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55614/p2p/12D3KooWK9xCm2WCMQcbanfS9NPzQAjWExNKFaAeFFi1yCKNWUtE pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55618/p2p/12D3KooWSfUa6hiGg8mAGp8JsDn6eJtEE8dfJcUordWqEmnabAWu pkg=network +2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn4268313620/001/TestHandleConn/nodeA/node.key pkg=network +2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend2900299396/001/TestSend/nodeA/node.key pkg=network +2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore94951440/001/TestPersistPeerStore/node0/node.key pkg=network +2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleTransactionMessage3641071078/001/TestHandleTransactionMessage/nodeA/node.key pkg=network +2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect3616675384/001/TestConnect/nodeA/node.key pkg=network +2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrsPublicIP1770149508/001/TestExternalAddrsPublicIP/node/node.key pkg=network +2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_Health1709777133/001/TestService_Health/nodeA/node.key pkg=network +2021-12-07T14:13:18-04:00 DBUG using config PublicIP: 10.0.5.2 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59917/p2p/12D3KooWDGM8pN1FEoxTS6J6vcuVwuqJodNmTpts4kWomenuSBds pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59920/p2p/12D3KooWJpgKwogrp1u5FfWkM4nNLfY7vBrDSKs4ewPt5oDNQAu1 pkg=network +2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59918/p2p/12D3KooWAnSQbPBMtjW7mzqW3e4ws5Ar37MYnHd5wmcx3bFRWFwk pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59919/p2p/12D3KooWR8sskw9WBDGAKh8imiZTfJp43hyFiKbcTa2WpPwEWee1 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59922/p2p/12D3KooWAaEtWJG25WygAaXGCQF9ECpQM9shnFgUj9hgChquSwxi pkg=network +2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59923/p2p/12D3KooWMrGBjUfQ7iVsrHvpUyCCmNbZEqTnugnEtsXCnimZ7KHS pkg=network +2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/10.0.5.2/tcp/59923/p2p/12D3KooWMrGBjUfQ7iVsrHvpUyCCmNbZEqTnugnEtsXCnimZ7KHS pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59921/p2p/12D3KooWBMEB5PmjCD5GKbG4biU3tpDnNZ4hNGHYdHVMcN1d2vco pkg=network +2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore94951440/002/TestPersistPeerStore/node1/node.key pkg=network +2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend2900299396/002/TestSend/nodeB/node.key pkg=network +2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect3616675384/002/TestConnect/nodeB/node.key pkg=network +2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn4268313620/002/TestHandleConn/nodeB/node.key pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59925/p2p/12D3KooWSSWfJkQPLRbvm1YsgMB6mUhwpW2H9jFvTvtWBvfsD7u6 pkg=network +=== CONT TestService_NodeRoles +--- PASS: TestExternalAddrsPublicIP (1.24s) +=== CONT TestBroadcastDuplicateMessage +--- PASS: TestHandleTransactionMessage (1.25s) +--- PASS: TestService_Health (1.27s) +=== CONT TestBroadcastMessages +2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_NodeRoles2602836300/001/TestService_NodeRoles/node/node.key pkg=network +2021-12-07T14:13:19-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1298061595/001/TestBroadcastDuplicateMessage/nodeA/node.key pkg=network +2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59926/p2p/12D3KooWJ4yNtwAFyY9JVw3gLDFdhRmBhbiW7cTHaAzBjk126gex pkg=network +2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages80421202/001/TestBroadcastMessages/nodeA/node.key pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59927/p2p/12D3KooWNSXEVi6n8F5mrigpPNHtPrXxyuAdLv4MKFUCwzTz1fNF pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59928/p2p/12D3KooWGrnKabWEhfJ82BdUjHtuCYEHm2Rek6xTwYLKkGLAV2iV pkg=network === CONT TestService_NodeRoles service_test.go:266: Error Trace: service_test.go:102 @@ -229,95 +249,40 @@ BlockRequestMessage RequestedData=1 StartingBlock={[220 209 52 103 1 202 131 150 Error: Received unexpected error: failed to listen on any addresses: [listen tcp4 0.0.0.0:7000: bind: address already in use] Test: TestService_NodeRoles -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network ---- FAIL: TestService_NodeRoles (0.44s) -=== CONT TestSetReservedPeer -2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55617/p2p/12D3KooWAm7gKozL6vQt1WKJCYshJ4Jn9usah1F1wGQUdcw2hvwu pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55616/p2p/12D3KooWCyXFxiLpEYdUh6xSSdHJJ5UizvSz3Gqfi152hU2rYBZm pkg=network -2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer583867775/001/TestSetReservedPeer/node0/node.key pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55621/p2p/12D3KooWGBVooSxRPATXs761zLnbpwNxmxWLKMRYE2whQVBJNg1t pkg=network -2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce2396403150/002/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeB/node.key pkg=network -2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS3893076944/002/TestMDNS/nodeB/node.key pkg=network -2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 2 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout2437718893/002/Test_HandshakeTimeout/nodeB/node.key pkg=network -2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip688433834/002/TestGossip/nodeB/node.key pkg=network -2021-12-07T09:49:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer583867775/002/TestSetReservedPeer/node1/node.key pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:09-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:09-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55622/p2p/12D3KooWAnM2m6Ut5pEYbPfrzpi1L42y8ZdY6fRyzyen3Sbr4FiC pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55624/p2p/12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55623/p2p/12D3KooWAEettb7XdCDLnY9M4RFpajbjLMgTt7LZWNVnDUpLwLJg pkg=network ---- PASS: TestCreateDecoder_BlockAnnounce (1.27s) -=== CONT TestHandleConn -=== CONT TestBeginDiscovery_ThreeNodes ---- PASS: TestHandleTransactionMessage (1.29s) -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55625/p2p/12D3KooWSbZjEdFRsH486bf3MmFUYhMevKbsktjeTg3Mdbwu4uXE pkg=network -2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn3732804873/001/TestHandleConn/nodeA/node.key pkg=network -2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes4171104864/001/TestBeginDiscovery_ThreeNodes/nodeA/node.key pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55626/p2p/12D3KooWE9V1PzooukD5cu2rg3D7hjwHWgwAgo187BnRnxz9aaJp pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55627/p2p/12D3KooWBYG5oegE8VD9BfNnGJxPKkaj6GxRJPyQytYyVgujAc1D pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55628/p2p/12D3KooWSLyN3VpKLx8srHnu9oGXm3PaaWGNK99GszQS44Vqzv9p pkg=network -2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 DBUG gossiping from host 12D3KooWK9xCm2WCMQcbanfS9NPzQAjWExNKFaAeFFi1yCKNWUtE message of type 0: BlockAnnounceHandshake Roles=4 BestBlockNumber=77 BestBlockHash=0x0100000000000000000000000000000000000000000000000000000000000000 GenesisHash=0x0200000000000000000000000000000000000000000000000000000000000000 pkg=network -2021-12-07T09:49:10-04:00 EROR message type 0 not supported by any notifications protocol pkg=network -2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip688433834/003/TestGossip/nodeC/node.key pkg=network -2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network ---- PASS: TestCreateNotificationsMessageHandler_BlockAnnounce (1.96s) -=== CONT TestHandleBlockAnnounceMessage -2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer583867775/003/TestSetReservedPeer/node2/node.key pkg=network -2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleBlockAnnounceMessage849112843/001/TestHandleBlockAnnounceMessage/nodeA/node.key pkg=network -2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:10-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:10-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55629/p2p/12D3KooWHjw8bfdCbmdchtqs3tPC42Xq8kb5fswhe1KG4YBmtaA2 pkg=network +--- FAIL: TestService_NodeRoles (0.29s) +=== CONT TestStartService +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59929/p2p/12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc pkg=network +2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStartService1037822963/001/TestStartService/node/node.key pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59930/p2p/12D3KooWNTj2Sx1REpoLn4MPAvUFuShPwGABZ8DUxEFy9XFgtM8c pkg=network +2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59931/p2p/12D3KooWL5hwT1F24bmp6ny3e43vvi2MUGNDbEu9hLBJhtMTEonL pkg=network +2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network ================== WARNING: DATA RACE -Write at 0x000005df4ec8 by goroutine 93: - github.com/ChainSafe/gossamer/dot/network.setupStreamManagerTest.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager_test.go:28 +0x32 - testing.(*common).Cleanup.func1() - /usr/local/go/src/testing/testing.go:912 +0x199 - testing.(*common).runCleanup() - /usr/local/go/src/testing/testing.go:1049 +0x154 - testing.tRunner.func2() - /usr/local/go/src/testing/testing.go:1253 +0x4f +Write at 0x00c000756118 by goroutine 90: + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:87 +0x557 + github.com/ChainSafe/gossamer/dot/network.TestPersistPeerStore() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:319 +0x43e testing.tRunner() - /usr/local/go/src/testing/testing.go:1265 +0x268 + /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous read at 0x000005df4ec8 by goroutine 792: - github.com/ChainSafe/gossamer/dot/network.(*streamManager).start.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager.go:39 +0x4a +Previous read at 0x00c000756118 by goroutine 308: + github.com/ChainSafe/gossamer/dot/network.(*Service).startTxnBatchProcessing() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction.go:123 +0x26a + github.com/ChainSafe/gossamer/dot/network.(*Service).createBatchMessageHandler·dwrap·25() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction.go:150 +0x47 -Goroutine 93 (running) created at: +Goroutine 90 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -332,144 +297,63 @@ Goroutine 93 (running) created at: /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 main.main() _testmain.go:205 +0x264 - -Goroutine 792 (running) created at: - github.com/ChainSafe/gossamer/dot/network.(*streamManager).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager.go:38 +0x90 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:284 +0x136c - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 - github.com/ChainSafe/gossamer/dot/network.TestSetReservedPeer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:225 +0x164 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 ================== -=== CONT TestStreamManager - testing.go:1152: race detected during execution of test ---- FAIL: TestStreamManager (2.01s) -=== CONT TestValidateBlockAnnounceHandshake -2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn3732804873/002/TestHandleConn/nodeB/node.key pkg=network -2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes4171104864/002/TestBeginDiscovery_ThreeNodes/nodeB/node.key pkg=network -2021-12-07T09:49:10-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestValidateBlockAnnounceHandshake4090063501/001/TestValidateBlockAnnounceHandshake/nodeA/node.key pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55630/p2p/12D3KooWBMDWaZKUqEbHE1GB9jgVopTtvo9CL1XYrg23TSSWNAjT pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55631/p2p/12D3KooWCTamdmKZuoDA7yETaL6yuzRwp1asYQbF1Gz5KSjiRuDs pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55633/p2p/12D3KooWEWEEcLvXRv4y6Di9XkD7pm1cs2UVtQutogwWnvuYb8em pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55632/p2p/12D3KooWQyxMmfzo3iZHHkX7B9o1xjHuMqKyW2TP9quj25zCpkKu pkg=network -2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55634/p2p/12D3KooWCZqJxdxGgJ7U9dyvRCZGRxtghHFFCHJDa4F4hoBbWAwZ pkg=network -2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestGossip - gossip_test.go:93: - Error Trace: gossip_test.go:93 - Error: Received unexpected error: - protocol not supported - Test: TestGossip -2021-12-07T09:49:11-04:00 WARN failed to open connection for peer 12D3KooWCVPkhujHMobg6jh8WTYG2GGBbxG8Tbkk7LGvDGBznwcr: context canceled pkg=network -2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer583867775/004/TestSetReservedPeer/node3/node.key pkg=network -2021-12-07T09:49:11-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network -2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes4171104864/003/TestBeginDiscovery_ThreeNodes/nodeC/node.key pkg=network -=== CONT TestHandleBlockAnnounceMessage - testing.go:1152: race detected during execution of test -=== CONT TestBuild ---- FAIL: TestHandleBlockAnnounceMessage (1.08s) -=== CONT TestHandleLightMessage_Response ---- PASS: TestBuild (0.05s) -=== CONT TestGossip +2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59917/p2p/12D3KooWDGM8pN1FEoxTS6J6vcuVwuqJodNmTpts4kWomenuSBds pkg=network +2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages80421202/002/TestBroadcastMessages/nodeB/node.key pkg=network +2021-12-07T14:13:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1298061595/002/TestBroadcastDuplicateMessage/nodeB/node.key pkg=network +=== CONT TestConnect testing.go:1152: race detected during execution of test ---- FAIL: TestGossip (3.11s) -=== CONT TestMessageCache -=== CONT TestEncodeLightResponse ---- PASS: TestValidateBlockAnnounceHandshake (1.11s) -=== CONT TestMDNS +--- FAIL: TestConnect (2.13s) +=== CONT Test_sizedBufferPool_race +=== CONT Test_sizedBufferPool +--- PASS: Test_sizedBufferPool_race (0.00s) +=== CONT TestCreateNotificationsMessageHandler_HandleTransaction +--- PASS: Test_sizedBufferPool (0.00s) +2021-12-07T14:13:20.515-0400 ERROR peerstore/ds pstoreds/keybook.go:65 error when fetching pubkey from datastore for peer 12D3KooWAaEtWJG25WygAaXGCQF9ECpQM9shnFgUj9hgChquSwxi: datastore closed + +2021-12-07T14:13:20.518-0400 ERROR peerstore/ds pstoreds/keybook.go:85 error while updating pubkey in datastore for peer 12D3KooWAaEtWJG25WygAaXGCQF9ECpQM9shnFgUj9hgChquSwxi: datastore closed + +2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction3714922272/001/TestCreateNotificationsMessageHandler_HandleTransaction/nodeA/node.key pkg=network +2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59932/p2p/12D3KooWPTRWGoqdT7QLFLBVcBjYjeSoiCXeS3vAzRiWhv7XpoB8 pkg=network +=== CONT TestStartService testing.go:1152: race detected during execution of test ---- FAIL: TestMDNS (3.15s) -=== CONT TestEncodeLightRequest ---- PASS: TestEncodeLightRequest (0.00s) -=== CONT TestPeerReputation ---- PASS: TestEncodeLightResponse (0.00s) -=== CONT TestBannedPeer -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:11-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:11-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55636/p2p/12D3KooWRri33ShHTfZFqYSqRhfx5edjo8irAycQCQUnL7DZpqXS pkg=network -2021-12-07T09:49:11-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response1764702853/001/TestHandleLightMessage_Response/nodeA/node.key pkg=network -2021-12-07T09:49:11-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation2161340469/001/TestPeerReputation/nodeA/node.key pkg=network -2021-12-07T09:49:11-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1677319629/001/TestBannedPeer/nodeA/node.key pkg=network -2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:12-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55637/p2p/12D3KooWHck5LMQahgos6W6L9kLnbUCxoihqTiyqffbRTRLBNL7f pkg=network -2021-12-07T09:49:12-04:00 DBUG connection successful with peer 12D3KooWGBVooSxRPATXs761zLnbpwNxmxWLKMRYE2whQVBJNg1t pkg=network -2021-12-07T09:49:12-04:00 DBUG connection successful with peer 12D3KooWE9V1PzooukD5cu2rg3D7hjwHWgwAgo187BnRnxz9aaJp pkg=network +--- FAIL: TestStartService (0.90s) +=== CONT TestBlockAnnounceHandshakeSize +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake +--- PASS: TestBlockAnnounceHandshakeSize (0.00s) === CONT TestHandleConn testing.go:1152: race detected during execution of test ---- FAIL: TestHandleConn (2.26s) -=== CONT TestDecodeLightMessage ---- PASS: TestDecodeLightMessage (0.01s) -=== CONT TestStreamCloseEOF -2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:12-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55638/p2p/12D3KooW9vANHSkThbzaSaHdx8vwU1T3AkiEQs3oR4B9S7YcxisY pkg=network -2021-12-07T09:49:12-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF3614206454/001/TestStreamCloseEOF/nodeA/node.key pkg=network -2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:12-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55639/p2p/12D3KooWCsMRrBPgr9VJXW7rJbWytzQ8S4NXAFHpgjrp4TcvE5qL pkg=network -2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:12-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55640/p2p/12D3KooWNNpQ1tBpcwm9KetFszUn83gM3Acu6PwUHqLRsWc21H1M pkg=network -2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:12-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:12-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55641/p2p/12D3KooWKzzvfpvvd1TmG86vGVfxnXUbbnAMs7zTg3Vsva9WWxQM pkg=network -2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:12-04:00 DBUG starting DHT with bootnodes [{12D3KooWEWEEcLvXRv4y6Di9XkD7pm1cs2UVtQutogwWnvuYb8em: [/ip4/127.0.0.1/tcp/55633]} {12D3KooWHck5LMQahgos6W6L9kLnbUCxoihqTiyqffbRTRLBNL7f: [/ip4/127.0.0.1/tcp/55637]}]... pkg=network -2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:12-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation2161340469/002/TestPeerReputation/nodeB/node.key pkg=network -2021-12-07T09:49:12-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response1764702853/002/TestHandleLightMessage_Response/nodeB/node.key pkg=network -2021-12-07T09:49:12-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1677319629/002/TestBannedPeer/nodeB/node.key pkg=network -2021-12-07T09:49:12-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:13-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF3614206454/002/TestStreamCloseEOF/nodeB/node.key pkg=network -2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:13-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55643/p2p/12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H pkg=network -2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:13-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55642/p2p/12D3KooWLvG14Zj9UP9CLGmhs6NZFRoY3HYwVMiP3uP3V98xCCKo pkg=network -2021-12-07T09:49:13-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55644/p2p/12D3KooWJb4s5aUvMFvVdsFy9FVBknTe9TF6F5Gt3jLgFqVPqkYe pkg=network -2021-12-07T09:49:13-04:00 DBUG connection successful with peer 12D3KooWBMDWaZKUqEbHE1GB9jgVopTtvo9CL1XYrg23TSSWNAjT pkg=network -2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:13-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55645/p2p/12D3KooWByC5btgjovc3oHWUwP5jcPadehCBUB5ni79ZiT2jtwNZ pkg=network +=== CONT Test_HandshakeTimeout +--- FAIL: TestHandleConn (2.44s) +2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout1742717102/001/Test_HandshakeTimeout/nodeA/node.key pkg=network +2021-12-07T14:13:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake540250484/001/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeA/node.key pkg=network +2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59933/p2p/12D3KooWDk9g6Attx6BpQ9HFyqHtUG365z1SFDo5x52hWvVNK6We pkg=network +2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59934/p2p/12D3KooWLjYAwxJRnbiVMDkZzWD5X7SpZ3YWLk4rJDPMnTVr5yJY pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59935/p2p/12D3KooWSfRwGZEi2Xt53YZ7t4hisQrbKtQ1zzbfZcZUxnXB4CW7 pkg=network +=== CONT TestPersistPeerStore + testing.go:1152: race detected during execution of test +=== CONT TestCreateDecoder_BlockAnnounce +--- FAIL: TestPersistPeerStore (2.77s) ================== WARNING: DATA RACE -Write at 0x00c03f244550 by goroutine 36: - runtime.closechan() - /usr/local/go/src/runtime/chan.go:355 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e - github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 - github.com/ChainSafe/gossamer/dot/network.createTestService.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a +Write at 0x000005df4ec8 by goroutine 93: + github.com/ChainSafe/gossamer/dot/network.setupStreamManagerTest.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager_test.go:28 +0x32 testing.(*common).Cleanup.func1() /usr/local/go/src/testing/testing.go:912 +0x199 testing.(*common).runCleanup() @@ -481,19 +365,11 @@ Write at 0x00c03f244550 by goroutine 36: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous read at 0x00c03f244550 by goroutine 677: - runtime.chansend() - /usr/local/go/src/runtime/chan.go:158 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Incoming() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:86 +0xc4 - github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:435 +0xfb - github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:433 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Swarm).addConn·dwrap·13() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm.go:285 +0x58 +Previous read at 0x000005df4ec8 by goroutine 271: + github.com/ChainSafe/gossamer/dot/network.(*streamManager).start.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager.go:39 +0x4a -Goroutine 36 (running) created at: +Goroutine 93 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -509,370 +385,34 @@ Goroutine 36 (running) created at: main.main() _testmain.go:205 +0x264 ================== -=== CONT TestSetReservedPeer - testing.go:1152: race detected during execution of test -=== CONT TestPeerConnect ---- FAIL: TestSetReservedPeer (4.31s) -2021-12-07T09:49:13-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect1443991448/001/TestPeerConnect/nodeA/node.key pkg=network -2021-12-07T09:49:13-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T09:49:13-04:00 DBUG starting DHT with bootnodes [{12D3KooWSLyN3VpKLx8srHnu9oGXm3PaaWGNK99GszQS44Vqzv9p: [/ip4/127.0.0.1/tcp/55628]}]... pkg=network -2021-12-07T09:49:13-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T09:49:13-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network -2021-12-07T09:49:13-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:13-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:13-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:13-04:00 WARN ignoring LightRequest without request data pkg=network -2021-12-07T09:49:13-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T09:49:13-04:00 WARN failed to send LightResponse message to peer 12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H: stream closed pkg=network -2021-12-07T09:49:13-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/light/2, peer=12D3KooW9vANHSkThbzaSaHdx8vwU1T3AkiEQs3oR4B9S7YcxisY pkg=network -2021-12-07T09:49:13-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T09:49:13-04:00 WARN failed to send LightResponse message to peer 12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H: stream closed pkg=network -2021-12-07T09:49:13-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:13-04:00 WARN failed to send LightResponse message to peer 12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H: stream closed pkg=network -2021-12-07T09:49:13-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:13-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55646/p2p/12D3KooWS4VxjQeMheNz5wm9VVxcS8kd68pEHaaaz53NSfH1avLA pkg=network -2021-12-07T09:49:13-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T09:49:13-04:00 WARN failed to send LightResponse message to peer 12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H: stream closed pkg=network -2021-12-07T09:49:13-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T09:49:13-04:00 WARN failed to send LightResponse message to peer 12D3KooWMyVcyWYTi7V1xW132eUod8Q8Y6GrxDtCGpY1QS5m7k8H: stream closed pkg=network -2021-12-07T09:49:13-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:13-04:00 DBUG connection successful with peer 12D3KooWLvG14Zj9UP9CLGmhs6NZFRoY3HYwVMiP3uP3V98xCCKo pkg=network -2021-12-07T09:49:13-04:00 DBUG connection successful with peer 12D3KooWJb4s5aUvMFvVdsFy9FVBknTe9TF6F5Gt3jLgFqVPqkYe pkg=network -2021-12-07T09:49:13-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset -2021-12-07T09:49:13-04:00 DBUG connection dropped successfully for peer 12D3KooWJb4s5aUvMFvVdsFy9FVBknTe9TF6F5Gt3jLgFqVPqkYe pkg=network -=== CONT TestHandleLightMessage_Response +=== CONT TestStreamManager testing.go:1152: race detected during execution of test -=== CONT Test_RemoveReservedPeers ---- FAIL: TestHandleLightMessage_Response (1.97s) -2021-12-07T09:49:13-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers2335871119/001/Test_RemoveReservedPeers/nodeA/node.key pkg=network +--- FAIL: TestStreamManager (2.77s) +=== CONT TestDecodeConsensusMessage +--- PASS: TestDecodeConsensusMessage (0.00s) +=== CONT TestDecodeTransactionMessageTwoExtrinsics +--- PASS: TestDecodeTransactionMessageTwoExtrinsics (0.00s) +=== CONT TestDecodeTransactionMessageOneExtrinsic +--- PASS: TestDecodeTransactionMessageOneExtrinsic (0.00s) +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce +2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateDecoder_BlockAnnounce3588465220/001/TestCreateDecoder_BlockAnnounce/nodeA/node.key pkg=network +2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce1836464503/001/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeA/node.key pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59936/p2p/12D3KooWGLxDrmGxuJjiFRVaBdbR4hE2xoAtfq2x6M9yycm9MXwm pkg=network ================== WARNING: DATA RACE -Read at 0x00c045a3a600 by goroutine 54: +Read at 0x00c020ab8450 by goroutine 45: runtime.mapaccess2_faststr() - /usr/local/go/src/runtime/map_faststr.go:107 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).getNode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:114 +0x8b - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:109 +0x31 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c045a3a600 by goroutine 730: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:330 +0x288 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:715 +0x529 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x47 - -Goroutine 54 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 730 (running) created at: - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x170 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 - github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c01527e708 by goroutine 54: - github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).getNode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:114 +0x99 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:109 +0x31 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c01527e708 by goroutine 730: - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:330 +0x297 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:715 +0x529 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x47 - -Goroutine 54 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 730 (running) created at: - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x170 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 - github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c018b32470 by goroutine 54: - github.com/ChainSafe/gossamer/dot/peerset.(*node).getReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:91 +0x10a - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:113 +0x117 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c018b32470 by goroutine 730: - github.com/ChainSafe/gossamer/dot/peerset.(*node).addReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:95 +0x210 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:329 +0x41 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:715 +0x529 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x47 - -Goroutine 54 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 730 (running) created at: - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:674 +0x170 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 - github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:14-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55647/p2p/12D3KooWE2A3Rvu8bA3PtPJetMKmCejMwCZSfhZY21yxaNik37MN pkg=network -=== CONT TestPeerReputation - testing.go:1152: race detected during execution of test -=== CONT Test_AddReservedPeers ---- FAIL: TestPeerReputation (2.15s) -2021-12-07T09:49:14-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers3796944281/001/Test_AddReservedPeers/nodeA/node.key pkg=network -2021-12-07T09:49:14-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:14-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55649/p2p/12D3KooWRBWijSckfLN79ALNMbUsLz8yGHpVXF74rDpFJUJo9Cbh pkg=network -2021-12-07T09:49:14-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect1443991448/002/TestPeerConnect/nodeB/node.key pkg=network -2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:14-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55650/p2p/12D3KooWGHCLxXmiYyBUFfrKNfAUPgb1tihtSnK5Vbmd6mbpcWiM pkg=network -2021-12-07T09:49:14-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset -2021-12-07T09:49:14-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:14-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers2335871119/002/Test_RemoveReservedPeers/nodeB/node.key pkg=network -2021-12-07T09:49:14-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T09:49:14-04:00 DBUG starting DHT with bootnodes [{12D3KooWSLyN3VpKLx8srHnu9oGXm3PaaWGNK99GszQS44Vqzv9p: [/ip4/127.0.0.1/tcp/55628]}]... pkg=network -2021-12-07T09:49:14-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:14-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55651/p2p/12D3KooWLjeMK8aNp1gzhnMDrXwZ1VMxVrmX4pqXJWnhFbCj2Vjq pkg=network -2021-12-07T09:49:14-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:14-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers3796944281/002/Test_AddReservedPeers/nodeB/node.key pkg=network -2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:14-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:14-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55652/p2p/12D3KooWSUE95oHwaxf8HZKbc68HUBHDnoeH7bWh7oJg39RRbbzA pkg=network -2021-12-07T09:49:14-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:14-04:00 DBUG connection successful with peer 12D3KooWGHCLxXmiYyBUFfrKNfAUPgb1tihtSnK5Vbmd6mbpcWiM pkg=network -=== CONT TestPeerConnect - testing.go:1152: race detected during execution of test ---- FAIL: TestPeerConnect (1.52s) -=== CONT TestStreamCloseMetadataCleanup -2021-12-07T09:49:15-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup4042372936/001/TestStreamCloseMetadataCleanup/nodeA/node.key pkg=network -2021-12-07T09:49:15-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:15-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55653/p2p/12D3KooWGkYFWKtDjrjWiuvsxiReHkBDXSb8ofZ3DEbJzDAE3Bw5 pkg=network -2021-12-07T09:49:15-04:00 DBUG connection successful with peer 12D3KooWLjeMK8aNp1gzhnMDrXwZ1VMxVrmX4pqXJWnhFbCj2Vjq pkg=network -2021-12-07T09:49:15-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:15-04:00 DBUG connection successful with peer 12D3KooWSUE95oHwaxf8HZKbc68HUBHDnoeH7bWh7oJg39RRbbzA pkg=network -=== CONT TestMessageCache - testing.go:1152: race detected during execution of test ---- FAIL: TestMessageCache (3.51s) -=== CONT TestExistingStream -2021-12-07T09:49:15-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream2557317831/001/TestExistingStream/nodeA/node.key pkg=network -2021-12-07T09:49:15-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T09:49:15-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T09:49:15-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:15-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup4042372936/002/TestStreamCloseMetadataCleanup/nodeB/node.key pkg=network -=== CONT Test_RemoveReservedPeers - testing.go:1152: race detected during execution of test -=== CONT TestSend ---- FAIL: Test_RemoveReservedPeers (1.95s) -2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:15-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55654/p2p/12D3KooWGAx1JXaMk79v6fzXstxr5tgpXwwpyVJ2CvhvinS7YosK pkg=network -=== CONT TestBootstrap ---- PASS: Test_AddReservedPeers (1.73s) -2021-12-07T09:49:15-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend3377903579/001/TestSend/nodeA/node.key pkg=network -2021-12-07T09:49:15-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap1193564528/001/TestBootstrap/nodeA/node.key pkg=network -2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:15-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:15-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55655/p2p/12D3KooWANbAbE2yLdhGKtaXE2Q2RPqL89zD8wpFEK5ArpSAmPZH pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55656/p2p/12D3KooWHdnCoSTysuxS9g6pQDuibZmGY5nYtm9C2KbNcnPaStth pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55657/p2p/12D3KooWHDp7ymbYSJw3XEbv44GhmRx7bZypa7N8SGEWt7ux15nT pkg=network -2021-12-07T09:49:16-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:16-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream2557317831/002/TestExistingStream/nodeB/node.key pkg=network -2021-12-07T09:49:16-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestBeginDiscovery_ThreeNodes - testing.go:1152: race detected during execution of test ---- FAIL: TestBeginDiscovery_ThreeNodes (6.42s) -=== CONT TestConnect -2021-12-07T09:49:16-04:00 DBUG connection successful with peer 12D3KooWJb4s5aUvMFvVdsFy9FVBknTe9TF6F5Gt3jLgFqVPqkYe pkg=network -2021-12-07T09:49:16-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect3518812401/001/TestConnect/nodeA/node.key pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55658/p2p/12D3KooWRpX9drYiXnkEXno8ceAD2YawXTnMNVecR2gqxgjxPoBD pkg=network -2021-12-07T09:49:16-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:16-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:16-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend3377903579/002/TestSend/nodeB/node.key pkg=network -2021-12-07T09:49:16-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap1193564528/002/TestBootstrap/nodeB/node.key pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55659/p2p/12D3KooWP5SL3UEs9WbxpHoCYGMV9xy7p1DGB3kyqqYk1dnWKoJp pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55660/p2p/12D3KooWEBa7TXRqxb4Vd35za34iZYW13F3UHzNQeGGu8KMeBgzh pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:16-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:16-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55661/p2p/12D3KooWNSwHuuGu4Rq1EryCCHiDyfCtnH8oswTsxYYUoi7FaWqq pkg=network -2021-12-07T09:49:16-04:00 DBUG bootstrapping to peer 12D3KooWHDp7ymbYSJw3XEbv44GhmRx7bZypa7N8SGEWt7ux15nT pkg=network -2021-12-07T09:49:16-04:00 DBUG connection successful with peer 12D3KooWHDp7ymbYSJw3XEbv44GhmRx7bZypa7N8SGEWt7ux15nT pkg=network -=== CONT TestBannedPeer - testing.go:1152: race detected during execution of test ---- FAIL: TestBannedPeer (5.07s) -=== CONT Test_sizedBufferPool -=== CONT TestKadDHT ---- PASS: Test_sizedBufferPool (0.00s) -2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:17-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3033539690/001/TestKadDHT/node0/node.key pkg=network -2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:17-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55663/p2p/12D3KooWFLXde5C18HZ88BJcWnsXQhKEhd1J9BX5brRfFegoD3tx pkg=network -2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:17-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect3518812401/002/TestConnect/nodeB/node.key pkg=network -2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:17-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55664/p2p/12D3KooWKEfYx2nr1HeNg41BSa2KgLmnkmLuUjKTBQTLLzKdVN1n pkg=network -=== CONT TestEncodeBlockAnnounceHandshake ---- PASS: TestBootstrap (1.64s) -=== CONT TestBeginDiscovery ---- PASS: TestEncodeBlockAnnounceHandshake (0.00s) -2021-12-07T09:49:17-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery1717403580/001/TestBeginDiscovery/nodeA/node.key pkg=network -2021-12-07T09:49:17-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWGkYFWKtDjrjWiuvsxiReHkBDXSb8ofZ3DEbJzDAE3Bw5 pkg=network -2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:17-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55665/p2p/12D3KooWDnfzYuoGtGTuVFzxZsaAXRNwuAGdbdDmZSSwuyqPeKPZ pkg=network -2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:17-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3033539690/002/TestKadDHT/node1/node.key pkg=network -2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:17-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:17-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55666/p2p/12D3KooWSjBCybiZtiTbjMC6xBxAbiVfTdNuKrSfd1BwTgptHA2v pkg=network -2021-12-07T09:49:17-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestDecodeBlockAnnounceHandshake ---- PASS: TestConnect (1.55s) -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake ---- PASS: TestDecodeBlockAnnounceHandshake (0.00s) -2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake1062558172/001/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeA/node.key pkg=network -2021-12-07T09:49:18-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery1717403580/002/TestBeginDiscovery/nodeB/node.key pkg=network -================== -WARNING: DATA RACE -Read at 0x00c01932eba0 by goroutine 46: - runtime.mapaccess1_faststr() - /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcbc + /usr/local/go/src/runtime/map_faststr.go:107 +0x0 + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:209 +0xa3c testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c01932eba0 by goroutine 198: +Previous write at 0x00c020ab8450 by goroutine 154: runtime.mapassign_faststr() /usr/local/go/src/runtime/map_faststr.go:202 +0x0 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() @@ -890,7 +430,7 @@ Previous write at 0x00c01932eba0 by goroutine 198: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 46 (running) created at: +Goroutine 45 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -906,7 +446,7 @@ Goroutine 46 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 198 (running) created at: +Goroutine 154 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -916,15 +456,16 @@ Goroutine 198 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c00127c608 by goroutine 46: - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcc9 +Read at 0x00c000303108 by goroutine 45: + github.com/ChainSafe/gossamer/dot/network.TestSend() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:209 +0xa4d testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 +2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -Previous write at 0x00c00127c608 by goroutine 198: +Previous write at 0x00c000303108 by goroutine 154: github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() @@ -940,7 +481,7 @@ Previous write at 0x00c00127c608 by goroutine 198: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 46 (running) created at: +Goroutine 45 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -956,7 +497,7 @@ Goroutine 46 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 198 (running) created at: +Goroutine 154 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -964,34 +505,19 @@ Goroutine 198 (running) created at: github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== -2021-12-07T09:49:18-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55667/p2p/12D3KooWGmJKonCaP9NGW4nq6B2RQyYvoWKUJWQGGzCCPjCxpC7Z pkg=network -2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55668/p2p/12D3KooWDfc5yFjQG1u6YmN36UwTMzpBMiFn7igCLAgRUbKCxr9K pkg=network -2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3033539690/003/TestKadDHT/node2/node.key pkg=network -2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55669/p2p/12D3KooWA8qur5nqe3oH5NbQQS1xqsMDqgBGPRKHufqhEnnnuMnW pkg=network ================== WARNING: DATA RACE -Read at 0x00c02075c270 by goroutine 45: - runtime.mapaccess2_faststr() - /usr/local/go/src/runtime/map_faststr.go:107 +0x0 +Read at 0x00c00073aeb0 by goroutine 45: github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:209 +0xa3c + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xae4 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c02075c270 by goroutine 984: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 +Previous write at 0x00c00073aeb0 by goroutine 154: github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x17c github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() @@ -1021,7 +547,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 984 (running) created at: +Goroutine 154 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1031,21 +557,41 @@ Goroutine 984 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c063190b88 by goroutine 45: +Read at 0x00c01a928ea0 by goroutine 45: + reflect.typedmemmove() + /usr/local/go/src/runtime/mbarrier.go:178 +0x0 + reflect.packEface() + /usr/local/go/src/reflect/value.go:123 +0xae + reflect.valueInterface() + /usr/local/go/src/reflect/value.go:1381 +0x18a + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:154 +0x9dc + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.DeepEqual() + /usr/local/go/src/reflect/deepequal.go:218 +0x404 + github.com/stretchr/testify/assert.ObjectsAreEqual() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 + github.com/stretchr/testify/assert.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 + github.com/stretchr/testify/require.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:209 +0xa4d + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c063190b88 by goroutine 984: - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d +Previous write at 0x00c01a928ea0 by goroutine 154: + github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:194 +0x77b + github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() @@ -1071,7 +617,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 984 (running) created at: +Goroutine 154 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1081,21 +627,41 @@ Goroutine 984 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c00fcad0b0 by goroutine 45: +Read at 0x00c01a928ea8 by goroutine 45: + reflect.Value.IsNil() + /usr/local/go/src/reflect/value.go:1425 +0x1d8 + reflect.deepValueEqual.func1() + /usr/local/go/src/reflect/deepequal.go:50 +0x11d + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:55 +0x16d + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:123 +0x142c + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + reflect.DeepEqual() + /usr/local/go/src/reflect/deepequal.go:218 +0x404 + github.com/stretchr/testify/assert.ObjectsAreEqual() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 + github.com/stretchr/testify/assert.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 + github.com/stretchr/testify/require.Equal() + /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xae4 + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c00fcad0b0 by goroutine 984: - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x17c - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d +Previous write at 0x00c01a928ea8 by goroutine 154: + github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:195 +0x7c8 + github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() @@ -1121,7 +687,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 984 (running) created at: +Goroutine 154 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1131,15 +697,13 @@ Goroutine 984 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c03f180900 by goroutine 45: - reflect.typedmemmove() - /usr/local/go/src/runtime/mbarrier.go:178 +0x0 - reflect.packEface() - /usr/local/go/src/reflect/value.go:123 +0xae - reflect.valueInterface() - /usr/local/go/src/reflect/value.go:1381 +0x18a +Read at 0x00c01a928eb8 by goroutine 45: + reflect.Value.IsNil() + /usr/local/go/src/reflect/value.go:1419 +0x225 + reflect.deepValueEqual.func1() + /usr/local/go/src/reflect/deepequal.go:50 +0x11d reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:154 +0x9dc + /usr/local/go/src/reflect/deepequal.go:55 +0x16d reflect.deepValueEqual() /usr/local/go/src/reflect/deepequal.go:123 +0x142c reflect.deepValueEqual() @@ -1159,9 +723,9 @@ Read at 0x00c03f180900 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c03f180900 by goroutine 984: +Previous write at 0x00c01a928eb8 by goroutine 154: github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:194 +0x77b + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:196 +0x835 github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() @@ -1191,7 +755,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 984 (running) created at: +Goroutine 154 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1201,15 +765,19 @@ Goroutine 984 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c03f180908 by goroutine 45: - reflect.Value.IsNil() - /usr/local/go/src/reflect/value.go:1425 +0x1d8 - reflect.deepValueEqual.func1() - /usr/local/go/src/reflect/deepequal.go:50 +0x11d +Read at 0x00c000f1f7e0 by goroutine 45: + reflect.typedmemmove() + /usr/local/go/src/runtime/mbarrier.go:178 +0x0 + reflect.packEface() + /usr/local/go/src/reflect/value.go:123 +0xae + reflect.valueInterface() + /usr/local/go/src/reflect/value.go:1381 +0x18a reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:55 +0x16d + /usr/local/go/src/reflect/deepequal.go:154 +0x9dc reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c + /usr/local/go/src/reflect/deepequal.go:90 +0x1684 + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 reflect.deepValueEqual() /usr/local/go/src/reflect/deepequal.go:123 +0x142c reflect.deepValueEqual() @@ -1229,9 +797,9 @@ Read at 0x00c03f180908 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c03f180908 by goroutine 984: +Previous write at 0x00c000f1f7e0 by goroutine 154: github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:195 +0x7c8 + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:182 +0x6fa github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() @@ -1261,7 +829,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 984 (running) created at: +Goroutine 154 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1271,13 +839,15 @@ Goroutine 984 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c03f180918 by goroutine 45: - reflect.Value.IsNil() - /usr/local/go/src/reflect/value.go:1419 +0x225 - reflect.deepValueEqual.func1() - /usr/local/go/src/reflect/deepequal.go:50 +0x11d +Read at 0x00c01a928ec0 by goroutine 45: + reflect.typedmemmove() + /usr/local/go/src/runtime/mbarrier.go:178 +0x0 + reflect.packEface() + /usr/local/go/src/reflect/value.go:123 +0xae + reflect.valueInterface() + /usr/local/go/src/reflect/value.go:1381 +0x18a reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:55 +0x16d + /usr/local/go/src/reflect/deepequal.go:154 +0x9dc reflect.deepValueEqual() /usr/local/go/src/reflect/deepequal.go:123 +0x142c reflect.deepValueEqual() @@ -1297,9 +867,9 @@ Read at 0x00c03f180918 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c03f180918 by goroutine 984: +Previous write at 0x00c01a928ec0 by goroutine 154: github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:196 +0x835 + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:197 +0x89a github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() @@ -1329,7 +899,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 984 (running) created at: +Goroutine 154 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1339,19 +909,13 @@ Goroutine 984 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0192fcfa0 by goroutine 45: - reflect.typedmemmove() - /usr/local/go/src/runtime/mbarrier.go:178 +0x0 - reflect.packEface() - /usr/local/go/src/reflect/value.go:123 +0xae - reflect.valueInterface() - /usr/local/go/src/reflect/value.go:1381 +0x18a - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:154 +0x9dc - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:90 +0x1684 +Read at 0x00c01a928ec8 by goroutine 45: + reflect.Value.IsNil() + /usr/local/go/src/reflect/value.go:1419 +0x225 + reflect.deepValueEqual.func1() + /usr/local/go/src/reflect/deepequal.go:50 +0x11d reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 + /usr/local/go/src/reflect/deepequal.go:55 +0x16d reflect.deepValueEqual() /usr/local/go/src/reflect/deepequal.go:123 +0x142c reflect.deepValueEqual() @@ -1371,9 +935,9 @@ Read at 0x00c0192fcfa0 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c0192fcfa0 by goroutine 984: +Previous write at 0x00c01a928ec8 by goroutine 154: github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:182 +0x6fa + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:198 +0x8ba github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() @@ -1403,7 +967,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 984 (running) created at: +Goroutine 154 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1413,7 +977,7 @@ Goroutine 984 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c03f180920 by goroutine 45: +Read at 0x00c00a6eb2bc by goroutine 45: reflect.typedmemmove() /usr/local/go/src/runtime/mbarrier.go:178 +0x0 reflect.packEface() @@ -1422,6 +986,8 @@ Read at 0x00c03f180920 by goroutine 45: /usr/local/go/src/reflect/value.go:1381 +0x18a reflect.deepValueEqual() /usr/local/go/src/reflect/deepequal.go:154 +0x9dc + reflect.deepValueEqual() + /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 reflect.deepValueEqual() /usr/local/go/src/reflect/deepequal.go:123 +0x142c reflect.deepValueEqual() @@ -1441,13 +1007,165 @@ Read at 0x00c03f180920 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c03f180920 by goroutine 984: - github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:197 +0x89a - github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 +Previous write at 0x00c00a6eb2b8 by goroutine 154: + github.com/ChainSafe/gossamer/dot/network/proto.(*BlockRequest).Reset() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/proto/api.v1.pb.go:102 +0x37 + google.golang.org/protobuf/proto.Reset() + /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/reset.go:18 +0x4d + google.golang.org/protobuf/proto.UnmarshalOptions.unmarshal() + /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/decode.go:77 +0xcc + google.golang.org/protobuf/proto.Unmarshal() + /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/decode.go:50 +0xa4 + github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:152 +0xf4 + github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 45 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 154 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +2021-12-07T14:13:21-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network +2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59937/p2p/12D3KooWPy85jMzfphuTT8iNNMfY9Njf7G6vvVXY6tnTEZNTXFPu pkg=network +2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59938/p2p/12D3KooWNqGaMQBBWQqCEUmvFqFuqahWuQtNQoz2xc3sS2XyxA6T pkg=network +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWNTj2Sx1REpoLn4MPAvUFuShPwGABZ8DUxEFy9XFgtM8c message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction3714922272/002/TestCreateNotificationsMessageHandler_HandleTransaction/nodeB/node.key pkg=network +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +=== CONT TestSend + testing.go:1152: race detected during execution of test +--- FAIL: TestSend (3.16s) +=== CONT TestEncodeTransactionMessageTwoExtrinsics +=== CONT TestDecode_BlockAnnounceMessage +--- PASS: TestEncodeTransactionMessageTwoExtrinsics (0.00s) +--- PASS: TestDecode_BlockAnnounceMessage (0.00s) +=== CONT TestEncodeTransactionMessageSingleExtrinsic +=== CONT TestEncodeBlockAnnounceMessage +--- PASS: TestEncodeTransactionMessageSingleExtrinsic (0.00s) +=== CONT TestEncodeBlockResponseMessage_WithAll +--- PASS: TestEncodeBlockAnnounceMessage (0.00s) +=== CONT TestEncodeBlockResponseMessage_Empty +--- PASS: TestEncodeBlockResponseMessage_WithAll (0.01s) +=== CONT TestEncodeBlockResponseMessage_WithBody +--- PASS: TestEncodeBlockResponseMessage_Empty (0.00s) +=== CONT TestBlockRequestString +--- PASS: TestEncodeBlockResponseMessage_WithBody (0.00s) +BlockRequestMessage RequestedData=1 StartingBlock={[220 209 52 103 1 202 131 150 73 110 82 170 39 133 177 116 141 235 109 176 149 81 183 33 89 220 179 224 137 145 2 91]} EndBlockHash=0x0000000000000000000000000000000000000000000000000000000000000000 Direction=1 Max=0 +=== CONT TestEncodeBlockRequestMessage_BlockNumber +--- PASS: TestBlockRequestString (0.00s) +=== CONT TestBuild +--- PASS: TestEncodeBlockRequestMessage_BlockNumber (0.00s) +=== CONT TestMaxPeers +--- PASS: TestBuild (0.01s) +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59939/p2p/12D3KooWMEysNai47o9tryde9ERc3rF9a1aXGCvTE2Dnoq674WG5 pkg=network +2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3105340035/001/TestMaxPeers/node0/node.key pkg=network +2021-12-07T14:13:21-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake540250484/002/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeB/node.key pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59940/p2p/12D3KooWCHZMTgNBkfV6wW1grQymbCuyfqPBpsMZTLFLH3BxLZYq pkg=network +================== +WARNING: DATA RACE +Write at 0x00c017b8c258 by goroutine 87: + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:248 +0xe8b + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous read at 0x00c017b8c258 by goroutine 212: + github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:285 +0x3b2 + github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 + +Goroutine 87 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 +================== +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 2 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout1742717102/002/Test_HandshakeTimeout/nodeB/node.key pkg=network +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +================== +WARNING: DATA RACE +Read at 0x00c00fdca900 by goroutine 87: + runtime.mapaccess1_faststr() + /usr/local/go/src/runtime/map_faststr.go:12 +0x0 + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf78 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c00fdca900 by goroutine 657: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() @@ -1457,7 +1175,7 @@ Previous write at 0x00c03f180920 by goroutine 984: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 45 (running) created at: +Goroutine 87 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1473,7 +1191,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 984 (running) created at: +Goroutine 657 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1483,39 +1201,21 @@ Goroutine 984 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c03f180928 by goroutine 45: - reflect.Value.IsNil() - /usr/local/go/src/reflect/value.go:1419 +0x225 - reflect.deepValueEqual.func1() - /usr/local/go/src/reflect/deepequal.go:50 +0x11d - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:55 +0x16d - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.DeepEqual() - /usr/local/go/src/reflect/deepequal.go:218 +0x404 - github.com/stretchr/testify/assert.ObjectsAreEqual() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 - github.com/stretchr/testify/assert.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 - github.com/stretchr/testify/require.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 +Read at 0x00c00fdf28c8 by goroutine 87: + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf85 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c03f180928 by goroutine 984: - github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:198 +0x8ba - github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 +Previous write at 0x00c00fdf28c8 by goroutine 657: + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() @@ -1525,7 +1225,7 @@ Previous write at 0x00c03f180928 by goroutine 984: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 45 (running) created at: +Goroutine 87 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1541,7 +1241,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 984 (running) created at: +Goroutine 657 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1549,63 +1249,49 @@ Goroutine 984 (running) created at: github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== +2021-12-07T14:13:21-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59941/p2p/12D3KooWDScHiMwhSGsBRLZqURT4gTxt7rPwxKiE9ExX567hu1oN pkg=network +2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59942/p2p/12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network +2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce1836464503/002/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeB/node.key pkg=network ================== WARNING: DATA RACE -Read at 0x00c00fa4e35c by goroutine 45: - reflect.typedmemmove() - /usr/local/go/src/runtime/mbarrier.go:178 +0x0 - reflect.packEface() - /usr/local/go/src/reflect/value.go:123 +0xae - reflect.valueInterface() - /usr/local/go/src/reflect/value.go:1381 +0x18a - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:154 +0x9dc - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.DeepEqual() - /usr/local/go/src/reflect/deepequal.go:218 +0x404 - github.com/stretchr/testify/assert.ObjectsAreEqual() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 - github.com/stretchr/testify/assert.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 - github.com/stretchr/testify/require.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 +Write at 0x00c000d370f0 by goroutine 87: + runtime.closechan() + /usr/local/go/src/runtime/chan.go:355 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e + github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 + github.com/ChainSafe/gossamer/dot/network.createTestService.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a + testing.(*common).Cleanup.func1() + /usr/local/go/src/testing/testing.go:912 +0x199 + testing.(*common).runCleanup() + /usr/local/go/src/testing/testing.go:1049 +0x154 + testing.tRunner.func2() + /usr/local/go/src/testing/testing.go:1253 +0x4f testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f + /usr/local/go/src/testing/testing.go:1265 +0x268 testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c00fa4e358 by goroutine 984: - github.com/ChainSafe/gossamer/dot/network/proto.(*BlockRequest).Reset() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/proto/api.v1.pb.go:102 +0x37 - google.golang.org/protobuf/proto.Reset() - /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/reset.go:18 +0x4d - google.golang.org/protobuf/proto.UnmarshalOptions.unmarshal() - /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/decode.go:77 +0xcc - google.golang.org/protobuf/proto.Unmarshal() - /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/decode.go:50 +0xa4 - github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:152 +0xf4 - github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 +Previous read at 0x00c000d370f0 by goroutine 90: + runtime.chansend() + /usr/local/go/src/runtime/chan.go:158 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).ReportPeer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:77 +0xf0 + github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:315 +0x957 + github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 -Goroutine 45 (running) created at: +Goroutine 87 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1620,47 +1306,114 @@ Goroutine 45 (running) created at: /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 main.main() _testmain.go:205 +0x264 - -Goroutine 984 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== -2021-12-07T09:49:18-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network -=== CONT TestSend +=== CONT TestCreateDecoder_BlockAnnounce testing.go:1152: race detected during execution of test ---- FAIL: TestSend (2.78s) -=== CONT TestMaxPeers -2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3065712103/001/TestMaxPeers/node0/node.key pkg=network -2021-12-07T09:49:18-04:00 WARN min peers higher than max peers; setting to default pkg=network -=== CONT TestStreamCloseMetadataCleanup +=== CONT TestBroadcastDuplicateMessage testing.go:1152: race detected during execution of test ---- FAIL: TestStreamCloseMetadataCleanup (3.70s) -=== CONT TestPersistPeerStore -2021-12-07T09:49:18-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:18-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55671/p2p/12D3KooWHM3njgDQCkyv4HaibNjUmqcvYfhG7MgiQfhyH9yWmTpP pkg=network -2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore1461834304/001/TestPersistPeerStore/node0/node.key pkg=network -2021-12-07T09:49:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake1062558172/002/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeB/node.key pkg=network +--- FAIL: TestCreateDecoder_BlockAnnounce (0.90s) +--- FAIL: TestBroadcastDuplicateMessage (2.42s) +=== CONT TestBeginDiscovery_ThreeNodes +=== CONT TestMinPeers +2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes357404136/001/TestBeginDiscovery_ThreeNodes/nodeA/node.key pkg=network +2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2143916590/001/TestMinPeers/node0/node.key pkg=network +2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59943/p2p/12D3KooWKNe2WVKYHTWr5AGjYjqFBsd21CSXnUKejNujoC8yWhv5 pkg=network +2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3105340035/002/TestMaxPeers/node1/node.key pkg=network +2021-12-07T14:13:22-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59946/p2p/12D3KooWLw39ALuGNgEcb8KTyLJzBVuERrw14hDnuhpcQYG4rzGy pkg=network +2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59945/p2p/12D3KooWGS94dWHgoBP255gJjsLJeMF2zs4DEyQBGxVwzDfESANJ pkg=network +2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59947/p2p/12D3KooWSDSVuRRX8kkfLmjKHUsdxYfaC7gV3tyTXFWFSLpDHgdp pkg=network +2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 DBUG transaction message TransactionMessage extrinsics count=2 for peer 12D3KooWMEysNai47o9tryde9ERc3rF9a1aXGCvTE2Dnoq674WG5 not included into batch pkg=network +2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWSfRwGZEi2Xt53YZ7t4hisQrbKtQ1zzbfZcZUxnXB4CW7 pkg=network +2021-12-07T14:13:22-04:00 DBUG gossiping from host 12D3KooWGLxDrmGxuJjiFRVaBdbR4hE2xoAtfq2x6M9yycm9MXwm message of type 0: BlockAnnounceHandshake Roles=4 BestBlockNumber=77 BestBlockHash=0x0100000000000000000000000000000000000000000000000000000000000000 GenesisHash=0x0200000000000000000000000000000000000000000000000000000000000000 pkg=network +2021-12-07T14:13:22-04:00 EROR message type 0 not supported by any notifications protocol pkg=network +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake + testing.go:1152: race detected during execution of test +=== CONT TestBuildIdentity +--- FAIL: TestCreateNotificationsMessageHandler_BlockAnnounceHandshake (1.77s) +--- PASS: TestBuildIdentity (0.00s) +=== CONT TestEncodeBlockAnnounceHandshake +=== CONT TestHandleBlockAnnounceMessage +--- PASS: TestEncodeBlockAnnounceHandshake (0.00s) +2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleBlockAnnounceMessage2286750253/001/TestHandleBlockAnnounceMessage/nodeA/node.key pkg=network +2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59948/p2p/12D3KooWHQ7NpL25BTEibxBpbCtcaCy6pz5Uhgi2UXB1MXSuKstC pkg=network +2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2143916590/002/TestMinPeers/node1/node.key pkg=network +2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes357404136/002/TestBeginDiscovery_ThreeNodes/nodeB/node.key pkg=network +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce + testing.go:1152: race detected during execution of test +--- FAIL: TestCreateNotificationsMessageHandler_BlockAnnounce (1.70s) +=== CONT TestValidateBlockAnnounceHandshake +2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestValidateBlockAnnounceHandshake1812365492/001/TestValidateBlockAnnounceHandshake/nodeA/node.key pkg=network +2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3105340035/003/TestMaxPeers/node2/node.key pkg=network +2021-12-07T14:13:22-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59949/p2p/12D3KooWPJBfyy3NJiy3ivLB6YSJoyoa9qje9iDhCo13sHCVEAL6 pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59950/p2p/12D3KooWJaqt85p8SvStq5Yw37BmHxLwmNLht9pursKd79PKUowv pkg=network +2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59951/p2p/12D3KooWLXadDjmWGsB1FKX6FtELBJb6DU8dgkYRqZyaJ4wpZMaY pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59952/p2p/12D3KooWCQvHti48robsw8ciKfUdX9P1fqCSCWFN6aFoqtaXzMiS pkg=network +=== CONT TestBannedPeer +--- PASS: TestHandleBlockAnnounceMessage (0.69s) +2021-12-07T14:13:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1916623432/001/TestBannedPeer/nodeA/node.key pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59953/p2p/12D3KooWEoz1dpy9pCdRBJ1jJ2U89GGHpLGGWeXGMrWTZLANvij5 pkg=network ================== WARNING: DATA RACE -Read at 0x00c0011efeb8 by goroutine 51: - github.com/ChainSafe/gossamer/dot/network.TestStreamCloseEOF() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:555 +0xa5e +Read at 0x00c01a8f8ed0 by goroutine 86: + runtime.mapaccess1_faststr() + /usr/local/go/src/runtime/map_faststr.go:12 +0x0 + github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9a4 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c0011efeb8 by goroutine 813: - [failed to restore the stack] +Previous write at 0x00c01a8f8ed0 by goroutine 215: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 51 (running) created at: +Goroutine 86 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1675,36 +1428,28 @@ Goroutine 51 (running) created at: /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 main.main() _testmain.go:205 +0x264 + +Goroutine 215 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== -2021-12-07T09:49:18-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:18-04:00 DBUG starting DHT with bootnodes [{12D3KooWDfc5yFjQG1u6YmN36UwTMzpBMiFn7igCLAgRUbKCxr9K: [/ip4/127.0.0.1/tcp/55668]}]... pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55672/p2p/12D3KooWLtXSCQueZk1zQQZRmyY7VLQJggATzyTBAXTHssoa9opF pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55673/p2p/12D3KooWDpc1zkdWj7BVwARqNTA583rqW5KcYjTDne2xSe4XWxqa pkg=network -=== CONT TestStreamCloseEOF - testing.go:1152: race detected during execution of test ---- FAIL: TestStreamCloseEOF (6.76s) -=== CONT TestService_Health ================== WARNING: DATA RACE -Read at 0x00c0458f9860 by goroutine 46: - runtime.mapaccess1_faststr() - /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1008 +Read at 0x00c00a622b88 by goroutine 86: + github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9b1 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c0458f9860 by goroutine 440: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 +Previous write at 0x00c00a622b88 by goroutine 215: github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() @@ -1718,7 +1463,7 @@ Previous write at 0x00c0458f9860 by goroutine 440: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 46 (running) created at: +Goroutine 86 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1734,7 +1479,7 @@ Goroutine 46 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 440 (running) created at: +Goroutine 215 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1742,33 +1487,229 @@ Goroutine 440 (running) created at: github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== +2021-12-07T14:13:23-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network +=== CONT TestBroadcastMessages + testing.go:1152: race detected during execution of test +=== CONT TestEncodeBlockRequestMessage_NoOptionals +--- FAIL: TestBroadcastMessages (3.89s) +=== CONT TestEncodeBlockRequestMessage +--- PASS: TestEncodeBlockRequestMessage_NoOptionals (0.00s) +=== CONT TestMessageCache +--- PASS: TestEncodeBlockRequestMessage (0.00s) +2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2143916590/003/TestMinPeers/nodeB/node.key pkg=network +2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3105340035/004/TestMaxPeers/node3/node.key pkg=network +2021-12-07T14:13:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes357404136/003/TestBeginDiscovery_ThreeNodes/nodeC/node.key pkg=network +2021-12-07T14:13:23-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59954/p2p/12D3KooWPYZTsUTeoXT2Ery2dBPFnZnTBGcrVWdGY1mwAXgTHehS pkg=network +2021-12-07T14:13:23-04:00 DBUG bootstrapping to peer 12D3KooWLw39ALuGNgEcb8KTyLJzBVuERrw14hDnuhpcQYG4rzGy pkg=network +2021-12-07T14:13:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1916623432/002/TestBannedPeer/nodeB/node.key pkg=network +2021-12-07T14:13:23-04:00 DBUG bootstrapping to peer 12D3KooWPJBfyy3NJiy3ivLB6YSJoyoa9qje9iDhCo13sHCVEAL6 pkg=network +=== CONT TestValidateBlockAnnounceHandshake + testing.go:1152: race detected during execution of test +--- FAIL: TestValidateBlockAnnounceHandshake (1.17s) +=== CONT TestMessageCacheError +=== CONT TestHandleLightMessage_Response +--- PASS: TestMessageCacheError (0.01s) +2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response1285385793/001/TestHandleLightMessage_Response/nodeA/node.key pkg=network +=== CONT TestCreateNotificationsMessageHandler_HandleTransaction + testing.go:1152: race detected during execution of test +--- FAIL: TestCreateNotificationsMessageHandler_HandleTransaction (3.61s) +=== CONT TestDecodeLightMessage +2021-12-07T14:13:24-04:00 DBUG connection successful with peer 12D3KooWLw39ALuGNgEcb8KTyLJzBVuERrw14hDnuhpcQYG4rzGy pkg=network +=== CONT TestMDNS +--- PASS: TestDecodeLightMessage (0.01s) +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59955/p2p/12D3KooWRw1WZe6jNM8q72wS3HLtPggqNZJX1PSiPhTQL9kGwmcM pkg=network +2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59956/p2p/12D3KooWK9zC1nuvwRUkc9GipTvRig9Ut8zBJANozXtGyEE6LMfa pkg=network +2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS2830343841/001/TestMDNS/nodeA/node.key pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59957/p2p/12D3KooWEYM5y7VDXxvcG1smx21vh4WVwaizcKFKs6ZcB8zVAj42 pkg=network +2021-12-07T14:13:24-04:00 DBUG connection successful with peer 12D3KooWPJBfyy3NJiy3ivLB6YSJoyoa9qje9iDhCo13sHCVEAL6 pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59959/p2p/12D3KooWBJHdzccFeVkfDnE9GbDLSbYX4nQdVs88ZnDERttMuz2F pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59958/p2p/12D3KooWHKzxvy5N1wmY7YJoTLy3APPhXWQ2VdoHirVYmgfq3Nj8 pkg=network +2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 DBUG connection dropped successfully for peer 12D3KooWLw39ALuGNgEcb8KTyLJzBVuERrw14hDnuhpcQYG4rzGy pkg=network +2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3105340035/005/TestMaxPeers/node4/node.key pkg=network +2021-12-07T14:13:24-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestMinPeers + testing.go:1152: race detected during execution of test +--- FAIL: TestMinPeers (2.69s) +=== CONT TestEncodeLightResponse +=== CONT TestEncodeLightRequest +--- PASS: TestEncodeLightResponse (0.00s) +=== CONT TestPeerReputation +--- PASS: TestEncodeLightRequest (0.00s) +2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation3687856302/001/TestPeerReputation/nodeA/node.key pkg=network +2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:24-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset +2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59962/p2p/12D3KooWPuVGcHC3kAWF7Mh9XhDjk6TBvkbvuAfz8d1kYaB6yrsE pkg=network +2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS2830343841/002/TestMDNS/nodeB/node.key pkg=network +2021-12-07T14:13:24-04:00 DBUG starting DHT with bootnodes [{12D3KooWJaqt85p8SvStq5Yw37BmHxLwmNLht9pursKd79PKUowv: [/ip4/127.0.0.1/tcp/59950]} {12D3KooWRw1WZe6jNM8q72wS3HLtPggqNZJX1PSiPhTQL9kGwmcM: [/ip4/127.0.0.1/tcp/59955]}]... pkg=network +2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response1285385793/002/TestHandleLightMessage_Response/nodeB/node.key pkg=network +2021-12-07T14:13:24-04:00 DBUG connection successful with peer 12D3KooWEYM5y7VDXxvcG1smx21vh4WVwaizcKFKs6ZcB8zVAj42 pkg=network +2021-12-07T14:13:24-04:00 DBUG connection dropped successfully for peer 12D3KooWEYM5y7VDXxvcG1smx21vh4WVwaizcKFKs6ZcB8zVAj42 pkg=network +2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:25-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59963/p2p/12D3KooWJxiMFPw43eqznLiq9e1jZbuQNeWUQGo39zhkat9wUZuL pkg=network +2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:25-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59964/p2p/12D3KooWDxTCGRpZjKXzoPjpMynq9tWDg7eAPHiabKHh9TvCeuvT pkg=network +2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:25-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59965/p2p/12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq pkg=network +2021-12-07T14:13:25-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:25-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset +2021-12-07T14:13:25-04:00 DBUG connection successful with peer 12D3KooWCHZMTgNBkfV6wW1grQymbCuyfqPBpsMZTLFLH3BxLZYq pkg=network +2021-12-07T14:13:25-04:00 DBUG connection successful with peer 12D3KooWCHZMTgNBkfV6wW1grQymbCuyfqPBpsMZTLFLH3BxLZYq pkg=network +2021-12-07T14:13:25-04:00 DBUG connection successful with peer 12D3KooWCHZMTgNBkfV6wW1grQymbCuyfqPBpsMZTLFLH3BxLZYq pkg=network +2021-12-07T14:13:25-04:00 DBUG connection successful with peer 12D3KooWCHZMTgNBkfV6wW1grQymbCuyfqPBpsMZTLFLH3BxLZYq pkg=network +2021-12-07T14:13:25-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:25-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation3687856302/002/TestPeerReputation/nodeB/node.key pkg=network +2021-12-07T14:13:25-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:25-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:25-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59967/p2p/12D3KooWPdQXrSw8unGKpq6PfV6pX3MFDLoTUQg7tSuWj11FDD52 pkg=network +2021-12-07T14:13:25-04:00 WARN ignoring LightRequest without request data pkg=network +2021-12-07T14:13:25-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T14:13:25-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/light/2, peer=12D3KooWHKzxvy5N1wmY7YJoTLy3APPhXWQ2VdoHirVYmgfq3Nj8 pkg=network +2021-12-07T14:13:25-04:00 WARN failed to send LightResponse message to peer 12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq: stream closed pkg=network +2021-12-07T14:13:25-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T14:13:25-04:00 WARN failed to send LightResponse message to peer 12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq: stream closed pkg=network +2021-12-07T14:13:25-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T14:13:25-04:00 WARN failed to send LightResponse message to peer 12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq: stream closed pkg=network +2021-12-07T14:13:25-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T14:13:25-04:00 WARN failed to send LightResponse message to peer 12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq: stream closed pkg=network +2021-12-07T14:13:25-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T14:13:25-04:00 WARN failed to send LightResponse message to peer 12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq: stream closed pkg=network +2021-12-07T14:13:25-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:13:25-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:13:25-04:00 DBUG starting DHT with bootnodes [{12D3KooWGS94dWHgoBP255gJjsLJeMF2zs4DEyQBGxVwzDfESANJ: [/ip4/127.0.0.1/tcp/59945]}]... pkg=network +2021-12-07T14:13:25-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network +--- PASS: TestHandleLightMessage_Response (2.04s) +=== CONT TestPeerConnect +=== CONT TestMaxPeers + testing.go:1152: race detected during execution of test +--- FAIL: TestMaxPeers (4.53s) +=== CONT TestStreamCloseEOF +2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect2272658741/001/TestPeerConnect/nodeA/node.key pkg=network +2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF2184255775/001/TestStreamCloseEOF/nodeA/node.key pkg=network +2021-12-07T14:13:26-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:26-04:00 DBUG connection successful with peer 12D3KooWPdQXrSw8unGKpq6PfV6pX3MFDLoTUQg7tSuWj11FDD52 pkg=network +2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:26-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59968/p2p/12D3KooWGq3yYZs7BdsZ1H3zZsN6A6pN9GgUpbDg1VZmfreGMZxD pkg=network +2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:26-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59969/p2p/12D3KooWSTG741mGptDm1fz43uAECcWDuMdL9uu86BbXTJsGvxbS pkg=network +================== +WARNING: DATA RACE +Read at 0x00c01f1a9c50 by goroutine 54: + runtime.mapaccess2_faststr() + /usr/local/go/src/runtime/map_faststr.go:107 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).getNode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:117 +0x8b + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:109 +0x31 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c01f1a9c50 by goroutine 870: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).addReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:224 +0x24f + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:325 +0x154 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:714 +0x529 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x47 + +Goroutine 54 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 870 (running) created at: + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x170 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 + github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== ================== WARNING: DATA RACE -Read at 0x00c000963268 by goroutine 46: - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1015 +Read at 0x00c07fa6cb18 by goroutine 54: + github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).getNode() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:117 +0x99 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:109 +0x31 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c000963268 by goroutine 440: - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 +Previous write at 0x00c07fa6cb18 by goroutine 870: + github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).addReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:224 +0x25e + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:325 +0x154 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:714 +0x529 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x47 -Goroutine 46 (running) created at: +Goroutine 54 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1784,102 +1725,51 @@ Goroutine 46 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 440 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +Goroutine 870 (running) created at: + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x170 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 + github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 ================== -2021-12-07T09:49:19-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network -2021-12-07T09:49:19-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network -2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_Health1518250653/001/TestService_Health/nodeA/node.key pkg=network -2021-12-07T09:49:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestExistingStream - testing.go:1152: race detected during execution of test ---- FAIL: TestExistingStream (3.91s) -=== CONT TestEncodeBlockRequestMessage_BlockHash -=== CONT TestRemovePeer ---- PASS: TestEncodeBlockRequestMessage_BlockHash (0.00s) -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55674/p2p/12D3KooWHRqmdG5YWNmwXsiaw5LSBt7f1TgzhJ9oxcMzqUWu6Zhm pkg=network -2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3065712103/002/TestMaxPeers/node1/node.key pkg=network -2021-12-07T09:49:19-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer2086655697/001/TestRemovePeer/nodeA/node.key pkg=network -2021-12-07T09:49:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55675/p2p/12D3KooWMkDRTnrBF1H14jSSP5m9Rkxuned2qzMoouAdSNbzSYNV pkg=network -2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore1461834304/002/TestPersistPeerStore/node1/node.key pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55676/p2p/12D3KooWEAt3EiWF6vqj4QWLJAs8Yu9QZgqxo7hprVMFsjhAJJ4g pkg=network -2021-12-07T09:49:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:19-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWGmJKonCaP9NGW4nq6B2RQyYvoWKUJWQGGzCCPjCxpC7Z pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55677/p2p/12D3KooWNm3F7LeFf8CjpKMJ3CDsUDEDTfeXjyoB7Tc3hB9Z11mt pkg=network -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake - testing.go:1152: race detected during execution of test -=== CONT TestEncodeBlockRequestMessage ---- FAIL: TestCreateNotificationsMessageHandler_BlockAnnounceHandshake (1.72s) -=== CONT TestMessageCacheError ---- PASS: TestEncodeBlockRequestMessage (0.00s) -=== CONT TestProtectUnprotectPeer ---- PASS: TestMessageCacheError (0.00s) -=== CONT TestPersistentPeers ---- PASS: TestProtectUnprotectPeer (0.00s) -2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers3295774362/001/TestPersistentPeers/node-a/node.key pkg=network -2021-12-07T09:49:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:19-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T09:49:19-04:00 DBUG starting DHT with bootnodes [{12D3KooWDnfzYuoGtGTuVFzxZsaAXRNwuAGdbdDmZSSwuyqPeKPZ: [/ip4/127.0.0.1/tcp/55665]}]... pkg=network -2021-12-07T09:49:19-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T09:49:19-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55678/p2p/12D3KooWLJP9Dx6XxpgSBg6rR5tFn3QqhN6XWJwnQzggwAGEbKuz pkg=network -=== CONT TestService_Health - testing.go:1152: race detected during execution of test -=== CONT TestBroadcastDuplicateMessage ---- FAIL: TestService_Health (0.86s) -2021-12-07T09:49:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1959176661/001/TestBroadcastDuplicateMessage/nodeA/node.key pkg=network -2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3065712103/003/TestMaxPeers/node2/node.key pkg=network -2021-12-07T09:49:20-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T09:49:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer2086655697/002/TestRemovePeer/nodeB/node.key pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55680/p2p/12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM pkg=network -2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55681/p2p/12D3KooWB8E8pokfGRjM3MqpUJ9HjWvNG6FBh25c2YSf1SPZLWhS pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55682/p2p/12D3KooWPdq14dHBGej2nTRo4VQ1QEhztignfSCL8gTRP3pYVtKT pkg=network -2021-12-07T09:49:20-04:00 DBUG bootstrapping to peer 12D3KooWEAt3EiWF6vqj4QWLJAs8Yu9QZgqxo7hprVMFsjhAJJ4g pkg=network ================== WARNING: DATA RACE -Write at 0x00c0003a27d8 by goroutine 90: - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:87 +0x557 - github.com/ChainSafe/gossamer/dot/network.TestPersistPeerStore() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:319 +0x43e +Read at 0x00c07fa6e6b0 by goroutine 54: + github.com/ChainSafe/gossamer/dot/peerset.(*node).getReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:92 +0x10a + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:113 +0x117 + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous read at 0x00c0003a27d8 by goroutine 872: - github.com/ChainSafe/gossamer/dot/network.(*Service).startTxnBatchProcessing() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction.go:123 +0x26a - github.com/ChainSafe/gossamer/dot/network.(*Service).createBatchMessageHandler·dwrap·25() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction.go:150 +0x47 +Previous write at 0x00c07fa6e6b0 by goroutine 870: + github.com/ChainSafe/gossamer/dot/peerset.(*node).addReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:96 +0x1f0 + github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).addReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:223 +0x36 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:325 +0x154 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:714 +0x529 + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x47 -Goroutine 90 (running) created at: +Goroutine 54 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1895,100 +1785,59 @@ Goroutine 90 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 872 (finished) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).createBatchMessageHandler() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction.go:150 +0xd8 +Goroutine 870 (running) created at: + github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x170 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 + github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:215 +0x7be + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 github.com/ChainSafe/gossamer/dot/network.createTestService() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 - github.com/ChainSafe/gossamer/dot/network.createServiceHelper() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:47 +0x244 - github.com/ChainSafe/gossamer/dot/network.TestPersistPeerStore() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:300 +0x5c + github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 ================== -2021-12-07T09:49:20-04:00 DBUG connection successful with peer 12D3KooWEAt3EiWF6vqj4QWLJAs8Yu9QZgqxo7hprVMFsjhAJJ4g pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55672/p2p/12D3KooWLtXSCQueZk1zQQZRmyY7VLQJggATzyTBAXTHssoa9opF pkg=network -2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers3295774362/002/TestPersistentPeers/node-b/node.key pkg=network -2021-12-07T09:49:20-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55683/p2p/12D3KooWLXhe1yWKYyk9BqKyXpigK7DfpeKGrJiTW7b22c8Z4MpT pkg=network -2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 DBUG cleaning up outbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network -2021-12-07T09:49:20-04:00 DBUG failed to send handshake to peer 12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA on protocol /gossamer/test/0/block-announces/1: handshake timeout reached pkg=network -2021-12-07T09:49:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1959176661/002/TestBroadcastDuplicateMessage/nodeB/node.key pkg=network -2021-12-07T09:49:20-04:00 DBUG connection successful with peer 12D3KooWLJP9Dx6XxpgSBg6rR5tFn3QqhN6XWJwnQzggwAGEbKuz pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55684/p2p/12D3KooWEKUkNUxmHJB8vu4FXiH8eYDj68u4qjdtiHhZWVHLVquV pkg=network -2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3065712103/004/TestMaxPeers/node3/node.key pkg=network -2021-12-07T09:49:20-04:00 WARN min peers higher than max peers; setting to default pkg=network -=== CONT TestMaxPeers - connmgr_test.go:73: - Error Trace: service_test.go:102 - connmgr_test.go:73 - Error: Received unexpected error: - failed to listen on any addresses: [listen tcp4 0.0.0.0:55685: socket: too many open files] - Test: TestMaxPeers -2021-12-07T09:49:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:20-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T09:49:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestPersistPeerStore - testing.go:1152: race detected during execution of test ---- FAIL: TestPersistPeerStore (2.51s) -=== CONT TestBroadcastMessages -=== CONT TestBeginDiscovery - testing.go:1152: race detected during execution of test ---- FAIL: TestBeginDiscovery (3.83s) -=== CONT TestStartService -=== CONT TestMaxPeers - testing.go:1152: race detected during execution of test -=== CONT Test_sizedBufferPool_race ---- FAIL: TestMaxPeers (2.71s) -=== CONT TestBuildIdentity ---- PASS: Test_sizedBufferPool_race (0.01s) -=== CONT TestMinPeers ---- PASS: TestBuildIdentity (0.01s) -2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages1014623317/001/TestBroadcastMessages/nodeA/node.key pkg=network -2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStartService1316991366/001/TestStartService/node/node.key pkg=network -2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2134942998/001/TestMinPeers/node0/node.key pkg=network -2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:21-04:00 DBUG connection dropped successfully for peer 12D3KooWEAt3EiWF6vqj4QWLJAs8Yu9QZgqxo7hprVMFsjhAJJ4g pkg=network -2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55687/p2p/12D3KooWP23THBBSA2sybVkn3yTftg5r9ASJem5atYjSSx6nkBxv pkg=network ================== WARNING: DATA RACE -Write at 0x00c03f0a1ab8 by goroutine 87: - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:248 +0xe8b +Write at 0x00c02970ff90 by goroutine 54: + runtime.closechan() + /usr/local/go/src/runtime/chan.go:355 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e + github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 + github.com/ChainSafe/gossamer/dot/network.createTestService.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a + testing.(*common).Cleanup.func1() + /usr/local/go/src/testing/testing.go:912 +0x199 + testing.(*common).runCleanup() + /usr/local/go/src/testing/testing.go:1049 +0x154 + testing.tRunner.func2() + /usr/local/go/src/testing/testing.go:1253 +0x4f testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f + /usr/local/go/src/testing/testing.go:1265 +0x268 testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous read at 0x00c03f0a1ab8 by goroutine 454: - github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:285 +0x3b2 - github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 +Previous read at 0x00c02970ff90 by goroutine 762: + runtime.chansend() + /usr/local/go/src/runtime/chan.go:158 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Incoming() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:86 +0xc4 + github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:435 +0xfb + github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:433 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Swarm).addConn·dwrap·13() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm.go:285 +0x58 -Goroutine 87 (running) created at: +Goroutine 54 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -2004,42 +1853,153 @@ Goroutine 87 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 454 (finished) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0x467 - github.com/ChainSafe/gossamer/dot/network.(*Service).GossipMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:530 +0x3d9 - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:241 +0xd56 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 +Goroutine 762 (finished) created at: + github.com/libp2p/go-libp2p-swarm.(*Swarm).addConn() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm.go:285 +0x85b + github.com/libp2p/go-libp2p-swarm.(*Swarm).dialWorkerLoop() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_dial.go:518 +0x91a + github.com/libp2p/go-libp2p-swarm.(*Swarm).startDialWorker·dwrap·33() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_dial.go:303 +0x8b ================== -2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55686/p2p/12D3KooWEnuRQdQAYqA1Ltk6N9nQr9QkDd6RTfM1MMxuar9uADLg pkg=network -2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:21-04:00 DBUG gossiping from host 12D3KooWH8sQrU7BnVyQZXDWpzYME2sPhBvm4Givgx8k2J6siEDM message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55688/p2p/12D3KooWG3trjP6icopsMp8H4BrBWSmJxyAnK3cS4oJv8KqWSC3a pkg=network +=== CONT TestPeerReputation + testing.go:1152: race detected during execution of test +=== CONT Test_RemoveReservedPeers +--- FAIL: TestPeerReputation (1.79s) +2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers1059118220/001/Test_RemoveReservedPeers/nodeA/node.key pkg=network +2021-12-07T14:13:26-04:00 WARN failed to open connection for peer 12D3KooWBJHdzccFeVkfDnE9GbDLSbYX4nQdVs88ZnDERttMuz2F: context canceled pkg=network +2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:26-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59970/p2p/12D3KooWEfBTpADoNg2BGu6XmFZZP1h1ktVzKnp7mpZaoUQR6Bug pkg=network +=== CONT TestMDNS + testing.go:1152: race detected during execution of test +--- FAIL: TestMDNS (2.67s) +=== CONT Test_AddReservedPeers +2021-12-07T14:13:26-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:26-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers3019080761/001/Test_AddReservedPeers/nodeA/node.key pkg=network +2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect2272658741/002/TestPeerConnect/nodeB/node.key pkg=network +2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF2184255775/002/TestStreamCloseEOF/nodeB/node.key pkg=network +2021-12-07T14:13:26-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:13:26-04:00 DBUG starting DHT with bootnodes [{12D3KooWGS94dWHgoBP255gJjsLJeMF2zs4DEyQBGxVwzDfESANJ: [/ip4/127.0.0.1/tcp/59945]}]... pkg=network +2021-12-07T14:13:26-04:00 DBUG advertising ourselves in the DHT... pkg=network +=== CONT TestMessageCache + testing.go:1152: race detected during execution of test +--- FAIL: TestMessageCache (3.52s) +=== CONT TestDecodeBlockAnnounceHandshake +=== CONT TestExistingStream +--- PASS: TestDecodeBlockAnnounceHandshake (0.00s) +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59971/p2p/12D3KooWMtoCzQeKfpbQAJrMcMXc1DBjpwUuRTTxWdzkh17XtXGc pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59973/p2p/12D3KooWLjKxsGnKz4DZB2nAHA1jHJeBFD5SjhKGzLdEpzWZDTak pkg=network +2021-12-07T14:13:27-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream2911109839/001/TestExistingStream/nodeA/node.key pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59972/p2p/12D3KooWLNa524KNkf42uVs8yp7PruowNzquhkmdGH6fyX84gXWX pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59974/p2p/12D3KooWCc17BmNyhPGe31EZXf35tcNpGWgxqtm7T55Yk7hNB3mM pkg=network +2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers1059118220/002/Test_RemoveReservedPeers/nodeB/node.key pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59975/p2p/12D3KooWGu8AWay6zLia1uzuYfB7D26dDszmfCrmiXBS2EUeZbQf pkg=network +2021-12-07T14:13:27-04:00 DBUG connection successful with peer 12D3KooWEYM5y7VDXxvcG1smx21vh4WVwaizcKFKs6ZcB8zVAj42 pkg=network +2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers3019080761/002/Test_AddReservedPeers/nodeB/node.key pkg=network +2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 DBUG connection successful with peer 12D3KooWLNa524KNkf42uVs8yp7PruowNzquhkmdGH6fyX84gXWX pkg=network +2021-12-07T14:13:27-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream2911109839/002/TestExistingStream/nodeB/node.key pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59977/p2p/12D3KooWBfojy8rAzuuG6BtFLRUk7f3uixk1qvrR7eDZ2XUKLcNq pkg=network +2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestPeerConnect + testing.go:1152: race detected during execution of test +=== CONT Test_PeerSupportsProtocol +--- FAIL: TestPeerConnect (1.86s) +2021-12-07T14:13:27-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:13:27-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:13:27-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol1347414038/001/Test_PeerSupportsProtocol/nodeA/node.key pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59978/p2p/12D3KooWMTXhcor5cm3UtSjnCyzH8zFUYweTtyk1ZuGAKhkDjv1X pkg=network +2021-12-07T14:13:28-04:00 DBUG connection successful with peer 12D3KooWGu8AWay6zLia1uzuYfB7D26dDszmfCrmiXBS2EUeZbQf pkg=network +2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:28-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59979/p2p/12D3KooWNGsy2pRP3LaHwoi1KYw1iuRf19RXAQrKqfenLXMHJgNT pkg=network +=== CONT TestBannedPeer + testing.go:1152: race detected during execution of test +=== CONT TestStreamCloseMetadataCleanup +--- FAIL: TestBannedPeer (4.97s) +2021-12-07T14:13:28-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:28-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup3256162339/001/TestStreamCloseMetadataCleanup/nodeA/node.key pkg=network +--- PASS: Test_RemoveReservedPeers (1.79s) +=== CONT TestBootstrap +2021-12-07T14:13:28-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap3693479406/001/TestBootstrap/nodeA/node.key pkg=network +2021-12-07T14:13:28-04:00 DBUG connection successful with peer 12D3KooWBfojy8rAzuuG6BtFLRUk7f3uixk1qvrR7eDZ2XUKLcNq pkg=network +2021-12-07T14:13:28-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:28-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59981/p2p/12D3KooWKr7iq89unYBqW11k7rJFt7a1DNjmWGbU3hCCiYSza9zJ pkg=network +2021-12-07T14:13:28.522-0400 ERROR peerstore/ds pstoreds/keybook.go:65 error when fetching pubkey from datastore for peer 12D3KooWMtoCzQeKfpbQAJrMcMXc1DBjpwUuRTTxWdzkh17XtXGc: datastore closed + +2021-12-07T14:13:28.522-0400 ERROR peerstore/ds pstoreds/keybook.go:85 error while updating pubkey in datastore for peer 12D3KooWMtoCzQeKfpbQAJrMcMXc1DBjpwUuRTTxWdzkh17XtXGc: datastore closed + +2021-12-07T14:13:28-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:28-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59982/p2p/12D3KooWRmDfUyKwNFTkQQNpsdRE8Q21mSbSRD9aiR72the2xrua pkg=network +2021-12-07T14:13:28-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol1347414038/002/Test_PeerSupportsProtocol/nodeB/node.key pkg=network +--- PASS: Test_AddReservedPeers (1.91s) +=== CONT TestKadDHT +2021-12-07T14:13:28-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT405768787/001/TestKadDHT/node0/node.key pkg=network +2021-12-07T14:13:28-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestBeginDiscovery_ThreeNodes + testing.go:1152: race detected during execution of test +--- FAIL: TestBeginDiscovery_ThreeNodes (6.90s) +=== CONT TestExternalAddrs +2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup3256162339/002/TestStreamCloseMetadataCleanup/nodeB/node.key pkg=network +2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrs2400874626/001/TestExternalAddrs/node/node.key pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59984/p2p/12D3KooWLP2jh5NMPRYb7t3DBwhWB3v7nL1nsMhHH6CoR5mjWWEv pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59983/p2p/12D3KooWANZeVoGirdBVW7x8AuVy3Y9asB8RKZFTsiXeQ2etD3Sk pkg=network +2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap3693479406/002/TestBootstrap/nodeB/node.key pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59985/p2p/12D3KooWFDZ5VvnUpRFMxFiYLs1ezhk756H3RndCfymFKph6R2au pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59986/p2p/12D3KooWR96FutV7e34ffJ8L1QEGKypxPNg41CKfij4Hv4VqW6Nq pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59987/p2p/12D3KooWQiS5E4dnx98557Z1XWMmCTFQFd6Fp2hX9WVKrxMqdVsF pkg=network +2021-12-07T14:13:29-04:00 DBUG bootstrapping to peer 12D3KooWRmDfUyKwNFTkQQNpsdRE8Q21mSbSRD9aiR72the2xrua pkg=network +2021-12-07T14:13:29-04:00 DBUG connection successful with peer 12D3KooWRmDfUyKwNFTkQQNpsdRE8Q21mSbSRD9aiR72the2xrua pkg=network +2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT405768787/002/TestKadDHT/node1/node.key pkg=network ================== WARNING: DATA RACE -Read at 0x00c03f01e2a0 by goroutine 87: +Read at 0x00c011d60c00 by goroutine 46: runtime.mapaccess1_faststr() /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf78 + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcbc testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c03f01e2a0 by goroutine 416: +Previous write at 0x00c011d60c00 by goroutine 760: runtime.mapassign_faststr() /usr/local/go/src/runtime/map_faststr.go:202 +0x0 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() @@ -2057,7 +2017,7 @@ Previous write at 0x00c03f01e2a0 by goroutine 416: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 87 (running) created at: +Goroutine 46 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -2073,7 +2033,7 @@ Goroutine 87 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 416 (running) created at: +Goroutine 760 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -2083,15 +2043,15 @@ Goroutine 416 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0217aa4a8 by goroutine 87: - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf85 +Read at 0x00c07c216348 by goroutine 46: + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcc9 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c0217aa4a8 by goroutine 416: +Previous write at 0x00c07c216348 by goroutine 760: github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() @@ -2107,7 +2067,7 @@ Previous write at 0x00c0217aa4a8 by goroutine 416: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 87 (running) created at: +Goroutine 46 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -2123,178 +2083,64 @@ Goroutine 87 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 416 (running) created at: +Goroutine 760 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -2021-12-07T09:49:21-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network -2021-12-07T09:49:21-04:00 DBUG connection dropped successfully for peer 12D3KooWLXhe1yWKYyk9BqKyXpigK7DfpeKGrJiTW7b22c8Z4MpT pkg=network -2021-12-07T09:49:21-04:00 DBUG connection successful with peer 12D3KooWLXhe1yWKYyk9BqKyXpigK7DfpeKGrJiTW7b22c8Z4MpT pkg=network -=== CONT TestRemovePeer - testing.go:1152: race detected during execution of test -=== CONT Test_HandshakeTimeout - testing.go:1152: race detected during execution of test ---- FAIL: TestRemovePeer (2.57s) -=== CONT TestCreateNotificationsMessageHandler_HandleTransaction ---- FAIL: Test_HandshakeTimeout (13.11s) -=== CONT TestExternalAddrsPublicIP -================== -WARNING: DATA RACE -Write at 0x00c0a5802370 by goroutine 87: - runtime.closechan() - /usr/local/go/src/runtime/chan.go:355 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e - github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 - github.com/ChainSafe/gossamer/dot/network.createTestService.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a - testing.(*common).Cleanup.func1() - /usr/local/go/src/testing/testing.go:912 +0x199 - testing.(*common).runCleanup() - /usr/local/go/src/testing/testing.go:1049 +0x154 - testing.tRunner.func2() - /usr/local/go/src/testing/testing.go:1253 +0x4f - testing.tRunner() - /usr/local/go/src/testing/testing.go:1265 +0x268 - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous read at 0x00c0a5802370 by goroutine 341: - runtime.chansend() - /usr/local/go/src/runtime/chan.go:158 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).ReportPeer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:77 +0xf0 - github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:315 +0x957 - github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 - -Goroutine 87 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 341 (finished) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0x467 - github.com/ChainSafe/gossamer/dot/network.(*Service).GossipMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:530 +0x3d9 - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:252 +0xeda - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -=== CONT TestBroadcastDuplicateMessage - testing.go:1152: race detected during execution of test -=== CONT TestBlockAnnounceHandshakeSize ---- FAIL: TestBroadcastDuplicateMessage (1.98s) +================== +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59988/p2p/12D3KooWFSj8LWMxYmWLGtM2kTn8c1TzRQ1jM2Mj2sKMeHjy8cLq pkg=network +2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network === CONT Test_PeerSupportsProtocol ---- PASS: TestBlockAnnounceHandshakeSize (0.00s) -2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrsPublicIP1277160877/001/TestExternalAddrsPublicIP/node/node.key pkg=network -2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction1495981099/001/TestCreateNotificationsMessageHandler_HandleTransaction/nodeA/node.key pkg=network -2021-12-07T09:49:21-04:00 DBUG using config PublicIP: 10.0.5.2 pkg=network -2021-12-07T09:49:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol2165929546/001/Test_PeerSupportsProtocol/nodeA/node.key pkg=network -2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages1014623317/002/TestBroadcastMessages/nodeB/node.key pkg=network -2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2134942998/002/TestMinPeers/node1/node.key pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55690/p2p/12D3KooWFELyQ3o3kxzwgfT7DVK57dbEjnyEAgQBGv4YMPWFJ8of pkg=network -2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/10.0.5.2/tcp/55690/p2p/12D3KooWFELyQ3o3kxzwgfT7DVK57dbEjnyEAgQBGv4YMPWFJ8of pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55689/p2p/12D3KooWDBTPy8cHxnW1G2t2yDvnF4suaAKEWrkHyassa577bRa5 pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55691/p2p/12D3KooWJrgz5bedFef26GJEG3fyicmPusQHUtTaBa22jPw1XuKT pkg=network -=== CONT TestStartService testing.go:1152: race detected during execution of test ---- FAIL: TestStartService (1.02s) -=== CONT TestEncodeBlockAnnounce +=== CONT TestGossip +--- FAIL: Test_PeerSupportsProtocol (1.97s) === CONT TestExternalAddrs ---- PASS: TestEncodeBlockAnnounce (0.00s) -2021-12-07T09:49:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrs1362798046/001/TestExternalAddrs/node/node.key pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55692/p2p/12D3KooWAtb22j1mLxT7ouqxWjh3mSDELvAkC4NNhSgULYmSH7Yu pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55693/p2p/12D3KooWAiXz4XU6NEfxDTmVTo1pjmHnwMCnfzxHYMEEZQiQCAxj pkg=network -=== CONT TestPersistentPeers - testing.go:1152: race detected during execution of test ---- FAIL: TestPersistentPeers (2.77s) -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55694/p2p/12D3KooWBW7SbgJPUD3tg6TMyjJiDyETtnnVLftXZxngZMkvSUdh pkg=network -2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestExternalAddrsPublicIP testing.go:1152: race detected during execution of test ---- FAIL: TestExternalAddrsPublicIP (0.86s) -2021-12-07T09:49:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction1495981099/002/TestCreateNotificationsMessageHandler_HandleTransaction/nodeB/node.key pkg=network -2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol2165929546/002/Test_PeerSupportsProtocol/nodeB/node.key pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55695/p2p/12D3KooWAXBVQW5m7m3rumuxawPS7iuSLBVAZVQfC1naZmezyqVk pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55696/p2p/12D3KooWFBAhx16WaH4Qe1b6BFatHzKhFfhkeV9VDD4gtcZkg8wr pkg=network -2021-12-07T09:49:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:23-04:00 DBUG gossiping from host 12D3KooWP23THBBSA2sybVkn3yTftg5r9ASJem5atYjSSx6nkBxv message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T09:49:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2134942998/003/TestMinPeers/nodeB/node.key pkg=network -2021-12-07T09:49:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network ---- PASS: TestExternalAddrs (0.86s) -2021-12-07T09:49:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T09:49:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/55698/p2p/12D3KooWHeTpguzUYAMvmZQ19WubbKdxq96rvYVNUUPYZGLaz8BP pkg=network -2021-12-07T09:49:23-04:00 DBUG bootstrapping to peer 12D3KooWG3trjP6icopsMp8H4BrBWSmJxyAnK3cS4oJv8KqWSC3a pkg=network -2021-12-07T09:49:23-04:00 DBUG bootstrapping to peer 12D3KooWAiXz4XU6NEfxDTmVTo1pjmHnwMCnfzxHYMEEZQiQCAxj pkg=network -2021-12-07T09:49:23-04:00 DBUG connection successful with peer 12D3KooWG3trjP6icopsMp8H4BrBWSmJxyAnK3cS4oJv8KqWSC3a pkg=network -2021-12-07T09:49:23-04:00 DBUG connection successful with peer 12D3KooWAiXz4XU6NEfxDTmVTo1pjmHnwMCnfzxHYMEEZQiQCAxj pkg=network -2021-12-07T09:49:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network ---- PASS: Test_PeerSupportsProtocol (1.72s) -2021-12-07T09:49:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T09:49:23-04:00 DBUG connection dropped successfully for peer 12D3KooWG3trjP6icopsMp8H4BrBWSmJxyAnK3cS4oJv8KqWSC3a pkg=network -2021-12-07T09:49:23-04:00 DBUG transaction message TransactionMessage extrinsics count=2 for peer 12D3KooWAXBVQW5m7m3rumuxawPS7iuSLBVAZVQfC1naZmezyqVk not included into batch pkg=network -=== CONT TestMinPeers +--- FAIL: TestExternalAddrs (0.97s) +=== CONT TestBeginDiscovery +2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip895427803/001/TestGossip/nodeA/node.key pkg=network +2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery178887698/001/TestBeginDiscovery/nodeA/node.key pkg=network +=== CONT TestBootstrap testing.go:1152: race detected during execution of test ---- FAIL: TestMinPeers (2.59s) +--- FAIL: TestBootstrap (1.76s) +=== CONT TestDecodeBlockAnnounce +=== CONT TestRemovePeer +--- PASS: TestDecodeBlockAnnounce (0.01s) +2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer2125252212/001/TestRemovePeer/nodeA/node.key pkg=network +2021-12-07T14:13:30-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT405768787/003/TestKadDHT/node2/node.key pkg=network +2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:30-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59990/p2p/12D3KooWRDdyRV4NcrUfntZq1HT24endCd24ETZEEpTDxVeM6bgJ pkg=network +2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:30-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59989/p2p/12D3KooWRyuWZXx64qSAJ2P7mn1X6qjEDdart6AFN7Sput3dQ8Ws pkg=network +2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:30-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59991/p2p/12D3KooWG2h62eyKABYVqDte91DXYFSRiCp9nwanNRHhroB6WKei pkg=network +2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:30-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59992/p2p/12D3KooWAZYZffKrZRV1JVFiX8FFRzpu2ZCVFasNAHLFWGprZyAs pkg=network ================== WARNING: DATA RACE -Read at 0x00c09be7aba0 by goroutine 86: +Read at 0x00c0993f22d0 by goroutine 46: runtime.mapaccess1_faststr() /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9a4 + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1008 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c09be7aba0 by goroutine 668: +Previous write at 0x00c0993f22d0 by goroutine 242: runtime.mapassign_faststr() /usr/local/go/src/runtime/map_faststr.go:202 +0x0 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() @@ -2312,7 +2158,7 @@ Previous write at 0x00c09be7aba0 by goroutine 668: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 86 (running) created at: +Goroutine 46 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -2328,7 +2174,7 @@ Goroutine 86 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 668 (running) created at: +Goroutine 242 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -2338,15 +2184,15 @@ Goroutine 668 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c06b6133c8 by goroutine 86: - github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9b1 +Read at 0x00c087c0afa8 by goroutine 46: + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1015 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c06b6133c8 by goroutine 668: +Previous write at 0x00c087c0afa8 by goroutine 242: github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() @@ -2362,7 +2208,7 @@ Previous write at 0x00c06b6133c8 by goroutine 668: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 86 (running) created at: +Goroutine 46 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -2378,7 +2224,7 @@ Goroutine 86 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 668 (running) created at: +Goroutine 242 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -2386,24 +2232,156 @@ Goroutine 668 (running) created at: github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== -2021-12-07T09:49:25-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network -=== CONT TestCreateNotificationsMessageHandler_HandleTransaction +2021-12-07T14:13:30-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network +2021-12-07T14:13:30-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network +=== CONT TestExistingStream testing.go:1152: race detected during execution of test ---- FAIL: TestCreateNotificationsMessageHandler_HandleTransaction (3.37s) -=== CONT TestBroadcastMessages +=== CONT TestSetReservedPeer +--- FAIL: TestExistingStream (3.67s) +2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer3019108975/001/TestSetReservedPeer/node0/node.key pkg=network +2021-12-07T14:13:30-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:30-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip895427803/002/TestGossip/nodeB/node.key pkg=network +2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery178887698/002/TestBeginDiscovery/nodeB/node.key pkg=network +2021-12-07T14:13:30-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWKr7iq89unYBqW11k7rJFt7a1DNjmWGbU3hCCiYSza9zJ pkg=network +2021-12-07T14:13:30-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:30-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer2125252212/002/TestRemovePeer/nodeB/node.key pkg=network +2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:30-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59993/p2p/12D3KooWRthmCTEVv2Q6Xe3fMh1naV3GyFLWbZdK8UCM38dD3G5v pkg=network +2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:31-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59994/p2p/12D3KooWEamHFCn6pt64yC4uBxSrVjbaBHkZxMDt4oK3dM2Dj7ta pkg=network +2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:31-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59995/p2p/12D3KooWJYWjwcZRSGabLERrfQ3y4SPd7hKNW3y2Gb7Dky66rKY4 pkg=network +2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:31-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59996/p2p/12D3KooWRs5yXnnoGYqrnNFWRT4MnyqB8o23rRGKzV4p6F2cVs3S pkg=network +2021-12-07T14:13:31-04:00 DBUG bootstrapping to peer 12D3KooWG2h62eyKABYVqDte91DXYFSRiCp9nwanNRHhroB6WKei pkg=network +2021-12-07T14:13:31-04:00 DBUG connection successful with peer 12D3KooWG2h62eyKABYVqDte91DXYFSRiCp9nwanNRHhroB6WKei pkg=network +2021-12-07T14:13:31-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:31-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer3019108975/002/TestSetReservedPeer/node1/node.key pkg=network +2021-12-07T14:13:31-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:31-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:31-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59998/p2p/12D3KooWCJhX3eqajv6XKS9gLuMPXBe8BwnffTsN3hjaXXacSg4N pkg=network +2021-12-07T14:13:31-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:31-04:00 DBUG starting DHT with bootnodes [{12D3KooWEamHFCn6pt64yC4uBxSrVjbaBHkZxMDt4oK3dM2Dj7ta: [/ip4/127.0.0.1/tcp/59994]}]... pkg=network +2021-12-07T14:13:31-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip895427803/003/TestGossip/nodeC/node.key pkg=network +2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:31-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59999/p2p/12D3KooWNvdCqmee1yea1gVzYqxDkDxso3BQDEe3ySFLPgtSfTqS pkg=network +=== CONT TestStreamCloseMetadataCleanup + testing.go:1152: race detected during execution of test +=== CONT TestPersistentPeers +--- FAIL: TestStreamCloseMetadataCleanup (3.85s) +2021-12-07T14:13:32-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers2702038506/001/TestPersistentPeers/node-a/node.key pkg=network +2021-12-07T14:13:32-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:32-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer3019108975/003/TestSetReservedPeer/node2/node.key pkg=network +2021-12-07T14:13:32-04:00 DBUG connection dropped successfully for peer 12D3KooWG2h62eyKABYVqDte91DXYFSRiCp9nwanNRHhroB6WKei pkg=network +2021-12-07T14:13:32-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:32-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:32-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:32-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60000/p2p/12D3KooWRp6BsCzQ3kjHsEoyWEi6YJEsTEEEToBkrtvJkt5XpDcq pkg=network +2021-12-07T14:13:32-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:32-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:32-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60001/p2p/12D3KooWGJJ6aKHw6dCVRCJxt3h4NBdJFz36reTn5r6WTrewHLbD pkg=network +=== CONT TestGossip + gossip_test.go:93: + Error Trace: gossip_test.go:93 + Error: Received unexpected error: + protocol not supported + Test: TestGossip +2021-12-07T14:13:32-04:00 DBUG cleaning up outbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network +2021-12-07T14:13:32-04:00 DBUG failed to send handshake to peer 12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA on protocol /gossamer/test/0/block-announces/1: handshake timeout reached pkg=network +2021-12-07T14:13:32-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:13:32-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network +================== +WARNING: DATA RACE +Read at 0x00c0966643e8 by goroutine 51: + github.com/ChainSafe/gossamer/dot/network.TestStreamCloseEOF() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:555 +0xa5e + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c0966643e8 by goroutine 267: + [failed to restore the stack] + +Goroutine 51 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 +================== + testing.go:1152: race detected during execution of test +--- FAIL: TestGossip (2.83s) +2021-12-07T14:13:32-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:13:32-04:00 DBUG starting DHT with bootnodes [{12D3KooWRDdyRV4NcrUfntZq1HT24endCd24ETZEEpTDxVeM6bgJ: [/ip4/127.0.0.1/tcp/59990]}]... pkg=network +=== CONT TestRemovePeer + testing.go:1152: race detected during execution of test +--- FAIL: TestRemovePeer (2.63s) +2021-12-07T14:13:32-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:32-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:32-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers2702038506/002/TestPersistentPeers/node-b/node.key pkg=network +2021-12-07T14:13:32-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer3019108975/004/TestSetReservedPeer/node3/node.key pkg=network +2021-12-07T14:13:32-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network +2021-12-07T14:13:32-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network +=== CONT TestStreamCloseEOF + testing.go:1152: race detected during execution of test +--- FAIL: TestStreamCloseEOF (6.85s) +2021-12-07T14:13:33-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:33-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:33-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60002/p2p/12D3KooWPWtE1R97W1qhYe7UCJxsQNbLdqAQJz7FXU9VUEPpFWEr pkg=network +2021-12-07T14:13:33-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:13:33-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:33-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60003/p2p/12D3KooWCnonerXtebvBehM7QNPFpmfnTAaktauJai3CY1Y57RdB pkg=network +2021-12-07T14:13:33-04:00 DBUG connection successful with peer 12D3KooWRp6BsCzQ3kjHsEoyWEi6YJEsTEEEToBkrtvJkt5XpDcq pkg=network +2021-12-07T14:13:33-04:00 DBUG connection successful with peer 12D3KooWRthmCTEVv2Q6Xe3fMh1naV3GyFLWbZdK8UCM38dD3G5v pkg=network +2021-12-07T14:13:33-04:00 DBUG connection successful with peer 12D3KooWCJhX3eqajv6XKS9gLuMPXBe8BwnffTsN3hjaXXacSg4N pkg=network +2021-12-07T14:13:33-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:13:33-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT Test_HandshakeTimeout testing.go:1152: race detected during execution of test ---- FAIL: TestBroadcastMessages (3.99s) -2021-12-07T09:49:27-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T09:49:27-04:00 DBUG starting DHT with bootnodes [{12D3KooWA8qur5nqe3oH5NbQQS1xqsMDqgBGPRKHufqhEnnnuMnW: [/ip4/127.0.0.1/tcp/55669]}]... pkg=network -2021-12-07T09:49:28-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T09:49:28-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T09:49:28-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T09:49:28-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network -2021-12-07T09:49:28-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T09:49:28-04:00 DBUG starting DHT with bootnodes [{12D3KooWFLXde5C18HZ88BJcWnsXQhKEhd1J9BX5brRfFegoD3tx: [/ip4/127.0.0.1/tcp/55663]}]... pkg=network +--- FAIL: Test_HandshakeTimeout (12.75s) +2021-12-07T14:13:33-04:00 DBUG DHT discovery started! pkg=network +=== CONT TestBeginDiscovery + testing.go:1152: race detected during execution of test +--- FAIL: TestBeginDiscovery (3.96s) +2021-12-07T14:13:34-04:00 DBUG connection dropped successfully for peer 12D3KooWPWtE1R97W1qhYe7UCJxsQNbLdqAQJz7FXU9VUEPpFWEr pkg=network +2021-12-07T14:13:34-04:00 DBUG connection successful with peer 12D3KooWPWtE1R97W1qhYe7UCJxsQNbLdqAQJz7FXU9VUEPpFWEr pkg=network +2021-12-07T14:13:34-04:00 DBUG connection successful with peer 12D3KooWGJJ6aKHw6dCVRCJxt3h4NBdJFz36reTn5r6WTrewHLbD pkg=network +=== CONT TestSetReservedPeer + testing.go:1152: race detected during execution of test +--- FAIL: TestSetReservedPeer (4.04s) +=== CONT TestPersistentPeers + testing.go:1152: race detected during execution of test +--- FAIL: TestPersistentPeers (2.75s) +2021-12-07T14:13:39-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T14:13:39-04:00 DBUG starting DHT with bootnodes [{12D3KooWAZYZffKrZRV1JVFiX8FFRzpu2ZCVFasNAHLFWGprZyAs: [/ip4/127.0.0.1/tcp/59992]}]... pkg=network +2021-12-07T14:13:40-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T14:13:40-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:13:40-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:13:40-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network +2021-12-07T14:13:40-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T14:13:40-04:00 DBUG starting DHT with bootnodes [{12D3KooWLP2jh5NMPRYb7t3DBwhWB3v7nL1nsMhHH6CoR5mjWWEv: [/ip4/127.0.0.1/tcp/59984]}]... pkg=network ================== WARNING: DATA RACE -Read at 0x00c040f0ca90 by goroutine 37: +Read at 0x00c03aee0990 by goroutine 37: github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x264 testing.tRunner() @@ -2411,7 +2389,7 @@ Read at 0x00c040f0ca90 by goroutine 37: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c040f0ca90 by goroutine 177: +Previous write at 0x00c03aee0990 by goroutine 820: github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:108 +0x6b2 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() @@ -2433,7 +2411,7 @@ Goroutine 37 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2445,11 +2423,11 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0667a9530 by goroutine 963: +Read at 0x00c0d2b402a0 by goroutine 401: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x111 -Previous write at 0x00c0667a9530 by goroutine 177: +Previous write at 0x00c0d2b402a0 by goroutine 820: github.com/libp2p/go-libp2p-kad-dht/dual.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:139 +0x93d github.com/ChainSafe/gossamer/dot/network.(*discovery).start() @@ -2457,7 +2435,7 @@ Previous write at 0x00c0667a9530 by goroutine 177: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 963 (running) created at: +Goroutine 401 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2467,7 +2445,7 @@ Goroutine 963 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2479,7 +2457,7 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c06b428a80 by goroutine 963: +Read at 0x00c0d2ab9500 by goroutine 401: github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindLocal() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:714 +0x5d github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() @@ -2487,7 +2465,7 @@ Read at 0x00c06b428a80 by goroutine 963: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c06b428a80 by goroutine 177: +Previous write at 0x00c0d2ab9500 by goroutine 820: github.com/libp2p/go-libp2p-kad-dht.makeDHT() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 github.com/libp2p/go-libp2p-kad-dht.New() @@ -2499,7 +2477,7 @@ Previous write at 0x00c06b428a80 by goroutine 177: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 963 (running) created at: +Goroutine 401 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2509,7 +2487,7 @@ Goroutine 963 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2521,11 +2499,11 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0667a9538 by goroutine 852: +Read at 0x00c0d2b402a8 by goroutine 780: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x115 -Previous write at 0x00c0667a9538 by goroutine 177: +Previous write at 0x00c0d2b402a8 by goroutine 820: github.com/libp2p/go-libp2p-kad-dht/dual.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:139 +0x93d github.com/ChainSafe/gossamer/dot/network.(*discovery).start() @@ -2533,7 +2511,7 @@ Previous write at 0x00c0667a9538 by goroutine 177: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 852 (running) created at: +Goroutine 780 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2543,7 +2521,7 @@ Goroutine 852 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2555,31 +2533,29 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c06b428ad8 by goroutine 963: - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 +Read at 0x00c0d2ce2000 by goroutine 780: + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindLocal() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:714 +0x5d github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:625 +0x1b1 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 -Previous write at 0x00c06b428ad8 by goroutine 177: +Previous write at 0x00c0d2ce2000 by goroutine 820: github.com/libp2p/go-libp2p-kad-dht.makeDHT() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 963 (running) created at: +Goroutine 780 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2587,7 +2563,7 @@ Goroutine 963 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2599,9 +2575,9 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c06b4293b0 by goroutine 963: +Read at 0x00c0d2ab9558 by goroutine 401: github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() @@ -2609,7 +2585,7 @@ Read at 0x00c06b4293b0 by goroutine 963: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c06b4293b0 by goroutine 177: +Previous write at 0x00c0d2ab9558 by goroutine 820: github.com/libp2p/go-libp2p-kad-dht.makeDHT() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 github.com/libp2p/go-libp2p-kad-dht.New() @@ -2621,7 +2597,7 @@ Previous write at 0x00c06b4293b0 by goroutine 177: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 963 (running) created at: +Goroutine 401 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2631,7 +2607,7 @@ Goroutine 963 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2643,37 +2619,31 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c024127d58 by goroutine 963: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 +Read at 0x00c0d2ce2058 by goroutine 780: github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 -Previous write at 0x00c024127d58 by goroutine 177: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 +Previous write at 0x00c0d2ce2058 by goroutine 820: github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 963 (running) created at: +Goroutine 780 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2681,7 +2651,7 @@ Goroutine 963 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2693,37 +2663,31 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c024127da0 by goroutine 963: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:394 +0xde +Read at 0x00c0d2ce2930 by goroutine 780: github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 -Previous write at 0x00c024127da0 by goroutine 177: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 +Previous write at 0x00c0d2ce2930 by goroutine 820: github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 963 (running) created at: +Goroutine 780 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2731,7 +2695,7 @@ Goroutine 963 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2743,19 +2707,19 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c024127db8 by goroutine 963: +Read at 0x00c0d2aba258 by goroutine 780: github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:399 +0x148 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 -Previous write at 0x00c024127db8 by goroutine 177: +Previous write at 0x00c0d2aba258 by goroutine 820: github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() @@ -2765,15 +2729,15 @@ Previous write at 0x00c024127db8 by goroutine 177: github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 963 (running) created at: +Goroutine 780 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2781,7 +2745,7 @@ Goroutine 963 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2793,11 +2757,9 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0009c3ab0 by goroutine 963: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2ab +Read at 0x00c0d2ab9e30 by goroutine 401: github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() @@ -2805,13 +2767,9 @@ Read at 0x00c0009c3ab0 by goroutine 963: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0009c3ab0 by goroutine 177: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1c4 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 +Previous write at 0x00c0d2ab9e30 by goroutine 820: github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() @@ -2821,7 +2779,7 @@ Previous write at 0x00c0009c3ab0 by goroutine 177: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 963 (running) created at: +Goroutine 401 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2831,7 +2789,7 @@ Goroutine 963 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2843,9 +2801,9 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0009c3aa8 by goroutine 963: +Read at 0x00c0d2aba198 by goroutine 401: github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2cb + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() @@ -2855,11 +2813,9 @@ Read at 0x00c0009c3aa8 by goroutine 963: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0009c3aa8 by goroutine 177: - github.com/libp2p/go-libp2p-kbucket.newBucket() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x12a +Previous write at 0x00c0d2aba198 by goroutine 820: github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() @@ -2873,7 +2829,7 @@ Previous write at 0x00c0009c3aa8 by goroutine 177: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 963 (running) created at: +Goroutine 401 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2883,7 +2839,7 @@ Goroutine 963 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2895,13 +2851,9 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c06b42bb88 by goroutine 963: - container/list.(*List).Front() - /usr/local/go/src/container/list/list.go:70 +0x57 - github.com/libp2p/go-libp2p-kbucket.(*peerDistanceSorter).appendPeersFromList() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/sorting.go:40 +0x69 +Read at 0x00c0d2aba1e0 by goroutine 401: github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2e4 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:394 +0xde github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() @@ -2911,15 +2863,9 @@ Read at 0x00c06b42bb88 by goroutine 963: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c06b42bb88 by goroutine 177: - container/list.(*List).Init() - /usr/local/go/src/container/list/list.go:57 +0x113 - container/list.New() - /usr/local/go/src/container/list/list.go:62 +0x96 - github.com/libp2p/go-libp2p-kbucket.newBucket() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x121 +Previous write at 0x00c0d2aba1e0 by goroutine 820: github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() @@ -2933,7 +2879,7 @@ Previous write at 0x00c06b42bb88 by goroutine 177: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 963 (running) created at: +Goroutine 401 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2943,7 +2889,7 @@ Goroutine 963 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2955,29 +2901,37 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c06b429500 by goroutine 852: - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindLocal() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:714 +0x5d +Read at 0x00c0d2aba1f8 by goroutine 401: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:399 +0x148 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:625 +0x1b1 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c06b429500 by goroutine 177: +Previous write at 0x00c0d2aba1f8 by goroutine 820: + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 852 (running) created at: +Goroutine 401 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2985,7 +2939,7 @@ Goroutine 852 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2997,31 +2951,37 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c06b429558 by goroutine 852: +Read at 0x00c0d2ae81e8 by goroutine 401: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2ab github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c06b429558 by goroutine 177: +Previous write at 0x00c0d2ae81e8 by goroutine 820: + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1c4 + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 852 (running) created at: +Goroutine 401 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -3029,7 +2989,7 @@ Goroutine 852 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -3041,31 +3001,39 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c06b429e30 by goroutine 852: +Read at 0x00c0d2ae81e0 by goroutine 401: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2cb github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c06b429e30 by goroutine 177: +Previous write at 0x00c0d2ae81e0 by goroutine 820: + github.com/libp2p/go-libp2p-kbucket.newBucket() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x12a + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 852 (running) created at: +Goroutine 401 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -3073,7 +3041,7 @@ Goroutine 852 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -3085,21 +3053,31 @@ Goroutine 177 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c024127ed8 by goroutine 852: +Read at 0x00c0d2ae3b28 by goroutine 401: + container/list.(*List).Front() + /usr/local/go/src/container/list/list.go:70 +0x57 + github.com/libp2p/go-libp2p-kbucket.(*peerDistanceSorter).appendPeersFromList() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/sorting.go:40 +0x69 github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2e4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c024127ed8 by goroutine 177: +Previous write at 0x00c0d2ae3b28 by goroutine 820: + container/list.(*List).Init() + /usr/local/go/src/container/list/list.go:57 +0x113 + container/list.New() + /usr/local/go/src/container/list/list.go:62 +0x96 + github.com/libp2p/go-libp2p-kbucket.newBucket() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x121 github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() @@ -3107,15 +3085,15 @@ Previous write at 0x00c024127ed8 by goroutine 177: github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 852 (running) created at: +Goroutine 401 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -3123,7 +3101,7 @@ Goroutine 852 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 177 (running) created at: +Goroutine 820 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -3133,14 +3111,15 @@ Goroutine 177 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 ================== -2021-12-07T09:49:29-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T09:49:29-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T09:49:38-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T09:49:38-04:00 DBUG starting DHT with bootnodes [{12D3KooWFLXde5C18HZ88BJcWnsXQhKEhd1J9BX5brRfFegoD3tx: [/ip4/127.0.0.1/tcp/55663]}]... pkg=network -2021-12-07T09:49:39-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:13:41-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:13:41-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:13:50-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T14:13:50-04:00 DBUG starting DHT with bootnodes [{12D3KooWLP2jh5NMPRYb7t3DBwhWB3v7nL1nsMhHH6CoR5mjWWEv: [/ip4/127.0.0.1/tcp/59984]}]... pkg=network +2021-12-07T14:13:51-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:13:51-04:00 DBUG advertising ourselves in the DHT... pkg=network === CONT TestKadDHT testing.go:1152: race detected during execution of test ---- FAIL: TestKadDHT (22.31s) +--- FAIL: TestKadDHT (22.76s) FAIL -FAIL github.com/ChainSafe/gossamer/dot/network 32.338s +FAIL github.com/ChainSafe/gossamer/dot/network 34.988s FAIL From 589c4a913d708345733f906cdcc0df506b705786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Tue, 7 Dec 2021 14:28:06 -0400 Subject: [PATCH 07/35] chore: data race on cfg.SlotDuration --- dot/network/service_test.go | 12 +- dot/network/transaction.go | 8 +- test.log | 2564 ++++++++++++++++++----------------- 3 files changed, 1358 insertions(+), 1226 deletions(-) diff --git a/dot/network/service_test.go b/dot/network/service_test.go index 0f0136afaa..7259ff4dbf 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -62,11 +62,12 @@ func createTestService(t *testing.T, cfg *Config) (srvc *Service) { basePath := utils.NewTestBasePath(t, "node") cfg = &Config{ - BasePath: basePath, - Port: availablePort(t), - NoBootstrap: true, - NoMDNS: true, - LogLvl: 4, + BasePath: basePath, + Port: availablePort(t), + NoBootstrap: true, + NoMDNS: true, + LogLvl: 4, + SlotDuration: time.Second, } } @@ -85,7 +86,6 @@ func createTestService(t *testing.T, cfg *Config) (srvc *Service) { } cfg.SlotDuration = time.Second - cfg.ProtocolID = TestProtocolID // default "/gossamer/gssmr/0" if cfg.LogLvl == 0 { diff --git a/dot/network/transaction.go b/dot/network/transaction.go index cad849f3d5..b7a4f1adba 100644 --- a/dot/network/transaction.go +++ b/dot/network/transaction.go @@ -110,9 +110,9 @@ func decodeTransactionHandshake(_ []byte) (Handshake, error) { return &transactionHandshake{}, nil } -func (s *Service) startTxnBatchProcessing(txnBatchCh chan *BatchMessage) { +func (s *Service) startTxnBatchProcessing(txnBatchCh chan *BatchMessage, slotDuration time.Duration) { protocolID := s.host.protocolID + transactionsID - ticker := time.NewTicker(s.cfg.SlotDuration) + ticker := time.NewTicker(slotDuration) defer ticker.Stop() for { @@ -120,7 +120,7 @@ func (s *Service) startTxnBatchProcessing(txnBatchCh chan *BatchMessage) { case <-s.ctx.Done(): return case <-ticker.C: - timer := time.NewTimer(s.cfg.SlotDuration / 3) + timer := time.NewTimer(slotDuration / 3) var timedOut bool for !timedOut { select { @@ -147,7 +147,7 @@ func (s *Service) startTxnBatchProcessing(txnBatchCh chan *BatchMessage) { } func (s *Service) createBatchMessageHandler(txnBatchCh chan *BatchMessage) NotificationsMessageBatchHandler { - go s.startTxnBatchProcessing(txnBatchCh) + go s.startTxnBatchProcessing(txnBatchCh, s.cfg.SlotDuration) return func(peer peer.ID, msg NotificationsMessage) { data := &BatchMessage{ diff --git a/test.log b/test.log index c2ce9b4a7f..8a1237f9d5 100644 --- a/test.log +++ b/test.log @@ -159,130 +159,378 @@ --- PASS: TestReadLEB128ToUint64 (0.00s) === RUN TestInvalidLeb128 --- PASS: TestInvalidLeb128 (0.00s) +=== CONT TestService_Health +=== CONT Test_HandshakeTimeout +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake +=== CONT TestHandleTransactionMessage +=== CONT TestCreateNotificationsMessageHandler_HandleTransaction +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce +=== CONT TestBlockRequestString +=== CONT TestPeerConnect +BlockRequestMessage RequestedData=1 StartingBlock={[220 209 52 103 1 202 131 150 73 110 82 170 39 133 177 116 141 235 109 176 149 81 183 33 89 220 179 224 137 145 2 91]} EndBlockHash=0x0000000000000000000000000000000000000000000000000000000000000000 Direction=1 Max=0 === CONT TestEncodeBlockAnnounce -=== CONT TestConnect +--- PASS: TestBlockRequestString (0.00s) +--- PASS: TestEncodeBlockAnnounce (0.00s) +=== CONT Test_RemoveReservedPeers +2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce240727509/001/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeA/node.key pkg=network +2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_Health3796617253/001/TestService_Health/nodeA/node.key pkg=network +2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout3557874362/001/Test_HandshakeTimeout/nodeA/node.key pkg=network +2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect3781788135/001/TestPeerConnect/nodeA/node.key pkg=network +2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleTransactionMessage963487009/001/TestHandleTransactionMessage/nodeA/node.key pkg=network +2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction3837544442/001/TestCreateNotificationsMessageHandler_HandleTransaction/nodeA/node.key pkg=network +2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers2521351122/001/Test_RemoveReservedPeers/nodeA/node.key pkg=network +2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake2739113968/001/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeA/node.key pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60465/p2p/12D3KooWNGxiQWyH4dGwjVKQnWYak7hfFbPkRwASB1jdEphNKU1V pkg=network +2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60468/p2p/12D3KooWKp8GjqHCD94dRpYaoKzXM1y177novprk23Pd8j1VMjEv pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60470/p2p/12D3KooWLAR9uEeYo34TLbLjivn9nP4vboa62VZXrP3qRzoi76qp pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60463/p2p/12D3KooWJc3vihKem9XNyoPZVq9doAZEfpC2AD3Zrw5MQBJrd9dG pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60464/p2p/12D3KooWPys2ogCJ8qhs1GJU1onY8fWKKmnkMEAKu8CzPm4zWzTm pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60469/p2p/12D3KooWMYGhNLRaDTiqHXHwhh1D6jX5ZLaDjyDhEXyhTDeSyaRH pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60466/p2p/12D3KooWSc3uKbAr8G9GMssaEnzrNQ2KfmFUUMuqWj38YkM9kZ9d pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60467/p2p/12D3KooWHmZxof4Qs2FjEkGQX7rDVHxZpg6htDPSyVZtqunG2KgG pkg=network +2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +================== +WARNING: DATA RACE +Read at 0x000005eb97c0 by goroutine 483: + github.com/ChainSafe/gossamer/dot/telemetry.GetInstance() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:77 +0x30 + github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x184 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 + +Previous write at 0x000005eb97c0 by goroutine 479: + github.com/ChainSafe/gossamer/dot/telemetry.GetInstance.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:80 +0x1b9 + sync.(*Once).doSlow() + /usr/local/go/src/sync/once.go:68 +0x127 + sync.(*Once).Do() + /usr/local/go/src/sync/once.go:59 +0x46 + github.com/ChainSafe/gossamer/dot/telemetry.GetInstance() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:78 +0x4d + github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x184 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 + +Goroutine 483 (running) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 + github.com/ChainSafe/gossamer/dot/network.Test_HandshakeTimeout() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:241 +0x1a4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 479 (running) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 + github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_BlockAnnounce() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:100 +0x1a4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c001126210 by goroutine 483: + github.com/ChainSafe/gossamer/dot/telemetry.(*Handler).SendMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:126 +0x69 + github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x4b5 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 + +Previous write at 0x00c001126210 by goroutine 479: + github.com/ChainSafe/gossamer/dot/telemetry.GetInstance.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:80 +0xaa + sync.(*Once).doSlow() + /usr/local/go/src/sync/once.go:68 +0x127 + sync.(*Once).Do() + /usr/local/go/src/sync/once.go:59 +0x46 + github.com/ChainSafe/gossamer/dot/telemetry.GetInstance() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:78 +0x4d + github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x184 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 + +Goroutine 483 (running) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 + github.com/ChainSafe/gossamer/dot/network.Test_HandshakeTimeout() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:241 +0x1a4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 479 (running) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 + github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_BlockAnnounce() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:100 +0x1a4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +================== +WARNING: DATA RACE +Read at 0x00c0011261e0 by goroutine 483: + github.com/ChainSafe/gossamer/dot/telemetry.(*Handler).SendMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:129 +0xd9 + github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x4b5 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 + +Previous write at 0x00c0011261e0 by goroutine 479: + github.com/ChainSafe/gossamer/dot/telemetry.GetInstance.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:80 +0xaa + sync.(*Once).doSlow() + /usr/local/go/src/sync/once.go:68 +0x127 + sync.(*Once).Do() + /usr/local/go/src/sync/once.go:59 +0x46 + github.com/ChainSafe/gossamer/dot/telemetry.GetInstance() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:78 +0x4d + github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x184 + github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 + +Goroutine 483 (running) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 + github.com/ChainSafe/gossamer/dot/network.Test_HandshakeTimeout() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:241 +0x1a4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Goroutine 479 (running) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).Start() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a + github.com/ChainSafe/gossamer/dot/network.createTestService() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 + github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_BlockAnnounce() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:100 +0x1a4 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 +================== +2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce240727509/002/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeB/node.key pkg=network +2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 2 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout3557874362/002/Test_HandshakeTimeout/nodeB/node.key pkg=network +2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect3781788135/002/TestPeerConnect/nodeB/node.key pkg=network +2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction3837544442/002/TestCreateNotificationsMessageHandler_HandleTransaction/nodeB/node.key pkg=network +2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake2739113968/002/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeB/node.key pkg=network +2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers2521351122/002/Test_RemoveReservedPeers/nodeB/node.key pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60471/p2p/12D3KooWH5fwTfbUGCsqQycKdfy1JVuTAtzFe75TZwqTJvKy62CY pkg=network +=== CONT TestHandleTransactionMessage + testing.go:1152: race detected during execution of test +=== CONT TestStreamCloseEOF +--- FAIL: TestHandleTransactionMessage (1.36s) +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60472/p2p/12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network +=== CONT TestService_Health + testing.go:1152: race detected during execution of test +--- FAIL: TestService_Health (1.39s) +=== CONT Test_AddReservedPeers +2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF3490846028/001/TestStreamCloseEOF/nodeA/node.key pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60473/p2p/12D3KooWHMF8u1apPQfasN1tyFAmDwsuYg1xSTcUFgiBW4x5MdQV pkg=network +2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers4152160875/001/Test_AddReservedPeers/nodeA/node.key pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60474/p2p/12D3KooWQ8cVoRHtihDUc9LZ4VZEqCMGAg4LdRHDzQc2sCVywNHq pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60475/p2p/12D3KooWNF5MGqwybDdj3yetjcsSiH7NQ1Ua6A2BzTCd1y3xeAF5 pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60476/p2p/12D3KooWApkKFJMF2jquCuxCmLAagbsTPCk6YFFPkgX35Re3Aynw pkg=network +2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60477/p2p/12D3KooWMtvPqGaDc7rUa2qwxXdhTjCEk12VJNgyPCQVHJQRNmUY pkg=network +2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60478/p2p/12D3KooWBVWbZirA2TAs9JA8t5DW5xPxdJDvTNPnp6S6nzJC7wbq pkg=network +2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 DBUG gossiping from host 12D3KooWKp8GjqHCD94dRpYaoKzXM1y177novprk23Pd8j1VMjEv message of type 0: BlockAnnounceHandshake Roles=4 BestBlockNumber=77 BestBlockHash=0x0100000000000000000000000000000000000000000000000000000000000000 GenesisHash=0x0200000000000000000000000000000000000000000000000000000000000000 pkg=network +2021-12-07T14:25:55-04:00 EROR message type 0 not supported by any notifications protocol pkg=network +2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce + testing.go:1152: race detected during execution of test +--- FAIL: TestCreateNotificationsMessageHandler_BlockAnnounce (2.05s) +=== CONT Test_PeerSupportsProtocol +2021-12-07T14:25:55-04:00 DBUG connection successful with peer 12D3KooWHMF8u1apPQfasN1tyFAmDwsuYg1xSTcUFgiBW4x5MdQV pkg=network +2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol429121497/001/Test_PeerSupportsProtocol/nodeA/node.key pkg=network +2021-12-07T14:25:55-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWPys2ogCJ8qhs1GJU1onY8fWKKmnkMEAKu8CzPm4zWzTm pkg=network +2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 DBUG connection successful with peer 12D3KooWApkKFJMF2jquCuxCmLAagbsTPCk6YFFPkgX35Re3Aynw pkg=network +2021-12-07T14:25:55-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF3490846028/002/TestStreamCloseEOF/nodeB/node.key pkg=network +2021-12-07T14:25:55-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers4152160875/002/Test_AddReservedPeers/nodeB/node.key pkg=network +2021-12-07T14:25:55-04:00 DBUG transaction message TransactionMessage extrinsics count=2 for peer 12D3KooWQ8cVoRHtihDUc9LZ4VZEqCMGAg4LdRHDzQc2sCVywNHq not included into batch pkg=network +2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60479/p2p/12D3KooWAoNZqkchZZSiYd44oJUubNTdTJjtvBNEcrxW2kEghWKY pkg=network +=== CONT TestPeerConnect + testing.go:1152: race detected during execution of test +--- FAIL: TestPeerConnect (2.44s) +=== CONT TestExistingStream +2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60481/p2p/12D3KooWRNoSPiWz9ZFCu5cptHEfoDwgHZ8dNaBGjKxcAUr6Z4JE pkg=network +=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake + testing.go:1152: race detected during execution of test +--- FAIL: TestCreateNotificationsMessageHandler_BlockAnnounceHandshake (2.51s) === CONT TestSend -=== CONT TestEncodeBlockRequestMessage_BlockHash -=== CONT TestProtectUnprotectPeer +2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:55-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream3117877671/001/TestExistingStream/nodeA/node.key pkg=network +2021-12-07T14:25:55-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60480/p2p/12D3KooWMXKyDcmKYNKAh8qtcNz2zLfL8pEehYqTiJ7nr1uHmMq2 pkg=network +2021-12-07T14:25:55-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend1207489262/001/TestSend/nodeA/node.key pkg=network +=== CONT Test_RemoveReservedPeers + testing.go:1152: race detected during execution of test +--- FAIL: Test_RemoveReservedPeers (2.66s) +=== CONT TestBootstrap +2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap2218600355/001/TestBootstrap/nodeA/node.key pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60482/p2p/12D3KooWMoKQwojF8PuFQEKrXMPrDxA6NrypJYp5zdbhqmzWuei6 pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60483/p2p/12D3KooWAoogJZXYBsjDCJfw8cvBtV1FB7y2Ksnk61LH5moLsR3A pkg=network +2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol429121497/002/Test_PeerSupportsProtocol/nodeB/node.key pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60484/p2p/12D3KooWLTtCxo1JmNGDbUR31FtrPLT8r2f7G8bGx7E34PDxQnTS pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60486/p2p/12D3KooWAneXjHxbLSAHKiHJWHPDLr6AQYqaTp6T2UYDbPwPsUeX pkg=network +2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 DBUG connection successful with peer 12D3KooWMXKyDcmKYNKAh8qtcNz2zLfL8pEehYqTiJ7nr1uHmMq2 pkg=network === CONT TestDecodeTransactionHandshake -=== CONT TestExternalAddrsPublicIP +--- PASS: Test_AddReservedPeers (1.84s) +=== CONT TestDecode_BlockAnnounceMessage --- PASS: TestDecodeTransactionHandshake (0.00s) ---- PASS: TestProtectUnprotectPeer (0.00s) -=== CONT TestDecodeSyncMessage -=== CONT TestStreamManager -=== CONT TestHandleTransactionMessage ---- PASS: TestEncodeBlockAnnounce (0.00s) +=== CONT TestCreateDecoder_BlockAnnounce +--- PASS: TestDecode_BlockAnnounceMessage (0.00s) +2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateDecoder_BlockAnnounce3301027701/001/TestCreateDecoder_BlockAnnounce/nodeA/node.key pkg=network +2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream3117877671/002/TestExistingStream/nodeB/node.key pkg=network +2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend1207489262/002/TestSend/nodeB/node.key pkg=network +2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap2218600355/002/TestBootstrap/nodeB/node.key pkg=network +2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60487/p2p/12D3KooWDyzuBbXpQvkkmAs1yCrE3omFUUy5JNMpCtHXDTqzE7gV pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60488/p2p/12D3KooWKCKAyUVV25r3NVSEfa2oFQtvHBsik6zx5fXV4AG5UNmJ pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60489/p2p/12D3KooWNuEDwsY4v77dp5zEAFbkLFrxwpq35CQHxpLHXLXDBgTZ pkg=network +2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:57-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60490/p2p/12D3KooWM5a9c9ENop9Yr4cbGG2ACBpsyW5e74CHvcg8RpD5tQ9F pkg=network +2021-12-07T14:25:57-04:00 DBUG bootstrapping to peer 12D3KooWLTtCxo1JmNGDbUR31FtrPLT8r2f7G8bGx7E34PDxQnTS pkg=network +2021-12-07T14:25:57-04:00 DBUG connection successful with peer 12D3KooWLTtCxo1JmNGDbUR31FtrPLT8r2f7G8bGx7E34PDxQnTS pkg=network +=== CONT TestCreateNotificationsMessageHandler_HandleTransaction + testing.go:1152: race detected during execution of test +--- FAIL: TestCreateNotificationsMessageHandler_HandleTransaction (3.85s) +=== CONT TestDecodeTransactionMessageTwoExtrinsics +=== CONT TestDecodeConsensusMessage +--- PASS: TestDecodeTransactionMessageTwoExtrinsics (0.00s) +--- PASS: Test_PeerSupportsProtocol (1.81s) +=== CONT TestEncodeTransactionMessageTwoExtrinsics +=== CONT TestDecodeTransactionMessageOneExtrinsic +--- PASS: TestDecodeConsensusMessage (0.00s) === CONT TestHandleConn ---- PASS: TestEncodeBlockRequestMessage_BlockHash (0.00s) -=== CONT TestSerivceIsMajorSyncMetrics ---- PASS: TestDecodeSyncMessage (0.00s) -=== CONT TestService_Health +--- PASS: TestEncodeTransactionMessageTwoExtrinsics (0.00s) +=== CONT TestDecodeSyncMessage +--- PASS: TestDecodeTransactionMessageOneExtrinsic (0.00s) === CONT TestPersistPeerStore ---- PASS: TestSerivceIsMajorSyncMetrics (0.00s) -2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn4268313620/001/TestHandleConn/nodeA/node.key pkg=network -2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend2900299396/001/TestSend/nodeA/node.key pkg=network -2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore94951440/001/TestPersistPeerStore/node0/node.key pkg=network -2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleTransactionMessage3641071078/001/TestHandleTransactionMessage/nodeA/node.key pkg=network -2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect3616675384/001/TestConnect/nodeA/node.key pkg=network -2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrsPublicIP1770149508/001/TestExternalAddrsPublicIP/node/node.key pkg=network -2021-12-07T14:13:18-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_Health1709777133/001/TestService_Health/nodeA/node.key pkg=network -2021-12-07T14:13:18-04:00 DBUG using config PublicIP: 10.0.5.2 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59917/p2p/12D3KooWDGM8pN1FEoxTS6J6vcuVwuqJodNmTpts4kWomenuSBds pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59920/p2p/12D3KooWJpgKwogrp1u5FfWkM4nNLfY7vBrDSKs4ewPt5oDNQAu1 pkg=network -2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59918/p2p/12D3KooWAnSQbPBMtjW7mzqW3e4ws5Ar37MYnHd5wmcx3bFRWFwk pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59919/p2p/12D3KooWR8sskw9WBDGAKh8imiZTfJp43hyFiKbcTa2WpPwEWee1 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59922/p2p/12D3KooWAaEtWJG25WygAaXGCQF9ECpQM9shnFgUj9hgChquSwxi pkg=network -2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59923/p2p/12D3KooWMrGBjUfQ7iVsrHvpUyCCmNbZEqTnugnEtsXCnimZ7KHS pkg=network -2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/10.0.5.2/tcp/59923/p2p/12D3KooWMrGBjUfQ7iVsrHvpUyCCmNbZEqTnugnEtsXCnimZ7KHS pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:18-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:18-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59921/p2p/12D3KooWBMEB5PmjCD5GKbG4biU3tpDnNZ4hNGHYdHVMcN1d2vco pkg=network -2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore94951440/002/TestPersistPeerStore/node1/node.key pkg=network -2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend2900299396/002/TestSend/nodeB/node.key pkg=network -2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect3616675384/002/TestConnect/nodeB/node.key pkg=network -2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn4268313620/002/TestHandleConn/nodeB/node.key pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59925/p2p/12D3KooWSSWfJkQPLRbvm1YsgMB6mUhwpW2H9jFvTvtWBvfsD7u6 pkg=network -=== CONT TestService_NodeRoles ---- PASS: TestExternalAddrsPublicIP (1.24s) -=== CONT TestBroadcastDuplicateMessage ---- PASS: TestHandleTransactionMessage (1.25s) ---- PASS: TestService_Health (1.27s) -=== CONT TestBroadcastMessages -2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_NodeRoles2602836300/001/TestService_NodeRoles/node/node.key pkg=network -2021-12-07T14:13:19-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1298061595/001/TestBroadcastDuplicateMessage/nodeA/node.key pkg=network -2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59926/p2p/12D3KooWJ4yNtwAFyY9JVw3gLDFdhRmBhbiW7cTHaAzBjk126gex pkg=network -2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages80421202/001/TestBroadcastMessages/nodeA/node.key pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59927/p2p/12D3KooWNSXEVi6n8F5mrigpPNHtPrXxyuAdLv4MKFUCwzTz1fNF pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59928/p2p/12D3KooWGrnKabWEhfJ82BdUjHtuCYEHm2Rek6xTwYLKkGLAV2iV pkg=network -=== CONT TestService_NodeRoles - service_test.go:266: - Error Trace: service_test.go:102 - service_test.go:266 - Error: Received unexpected error: - failed to listen on any addresses: [listen tcp4 0.0.0.0:7000: bind: address already in use] - Test: TestService_NodeRoles ---- FAIL: TestService_NodeRoles (0.29s) -=== CONT TestStartService -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59929/p2p/12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc pkg=network -2021-12-07T14:13:19-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStartService1037822963/001/TestStartService/node/node.key pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:19-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:19-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59930/p2p/12D3KooWNTj2Sx1REpoLn4MPAvUFuShPwGABZ8DUxEFy9XFgtM8c pkg=network -2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59931/p2p/12D3KooWL5hwT1F24bmp6ny3e43vvi2MUGNDbEu9hLBJhtMTEonL pkg=network -2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +--- PASS: TestDecodeSyncMessage (0.00s) +2021-12-07T14:25:57-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn2162876927/001/TestHandleConn/nodeA/node.key pkg=network +2021-12-07T14:25:57-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore4076152564/001/TestPersistPeerStore/node0/node.key pkg=network +2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:57-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60492/p2p/12D3KooWGeN7T72ianzPN2q4j3u7sPX8ArYwRSEzwqu8G3FfgEf1 pkg=network +2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:57-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60491/p2p/12D3KooWCeHGrmZpZaEvqp8uEC5b68eQzoiPvJdUo2GV2du1NcvY pkg=network +--- PASS: TestCreateDecoder_BlockAnnounce (0.86s) +=== CONT TestStreamManager ================== WARNING: DATA RACE -Write at 0x00c000756118 by goroutine 90: - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:87 +0x557 - github.com/ChainSafe/gossamer/dot/network.TestPersistPeerStore() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:319 +0x43e +Write at 0x000005df4ec8 by goroutine 93: + github.com/ChainSafe/gossamer/dot/network.setupStreamManagerTest() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager_test.go:26 +0x8f + github.com/ChainSafe/gossamer/dot/network.TestStreamManager() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager_test.go:69 +0x54 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous read at 0x00c000756118 by goroutine 308: - github.com/ChainSafe/gossamer/dot/network.(*Service).startTxnBatchProcessing() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction.go:123 +0x26a - github.com/ChainSafe/gossamer/dot/network.(*Service).createBatchMessageHandler·dwrap·25() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/transaction.go:150 +0x47 +Previous read at 0x000005df4ec8 by goroutine 364: + github.com/ChainSafe/gossamer/dot/network.(*streamManager).start.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager.go:39 +0x4a -Goroutine 90 (running) created at: +Goroutine 93 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -298,62 +546,19 @@ Goroutine 90 (running) created at: main.main() _testmain.go:205 +0x264 ================== -2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59917/p2p/12D3KooWDGM8pN1FEoxTS6J6vcuVwuqJodNmTpts4kWomenuSBds pkg=network -2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages80421202/002/TestBroadcastMessages/nodeB/node.key pkg=network -2021-12-07T14:13:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1298061595/002/TestBroadcastDuplicateMessage/nodeB/node.key pkg=network -=== CONT TestConnect - testing.go:1152: race detected during execution of test ---- FAIL: TestConnect (2.13s) -=== CONT Test_sizedBufferPool_race -=== CONT Test_sizedBufferPool ---- PASS: Test_sizedBufferPool_race (0.00s) -=== CONT TestCreateNotificationsMessageHandler_HandleTransaction ---- PASS: Test_sizedBufferPool (0.00s) -2021-12-07T14:13:20.515-0400 ERROR peerstore/ds pstoreds/keybook.go:65 error when fetching pubkey from datastore for peer 12D3KooWAaEtWJG25WygAaXGCQF9ECpQM9shnFgUj9hgChquSwxi: datastore closed - -2021-12-07T14:13:20.518-0400 ERROR peerstore/ds pstoreds/keybook.go:85 error while updating pubkey in datastore for peer 12D3KooWAaEtWJG25WygAaXGCQF9ECpQM9shnFgUj9hgChquSwxi: datastore closed - -2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction3714922272/001/TestCreateNotificationsMessageHandler_HandleTransaction/nodeA/node.key pkg=network -2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59932/p2p/12D3KooWPTRWGoqdT7QLFLBVcBjYjeSoiCXeS3vAzRiWhv7XpoB8 pkg=network -=== CONT TestStartService - testing.go:1152: race detected during execution of test ---- FAIL: TestStartService (0.90s) -=== CONT TestBlockAnnounceHandshakeSize -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake ---- PASS: TestBlockAnnounceHandshakeSize (0.00s) -=== CONT TestHandleConn - testing.go:1152: race detected during execution of test -=== CONT Test_HandshakeTimeout ---- FAIL: TestHandleConn (2.44s) -2021-12-07T14:13:20-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout1742717102/001/Test_HandshakeTimeout/nodeA/node.key pkg=network -2021-12-07T14:13:20-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake540250484/001/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeA/node.key pkg=network -2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59933/p2p/12D3KooWDk9g6Attx6BpQ9HFyqHtUG365z1SFDo5x52hWvVNK6We pkg=network -2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:20-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:20-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59934/p2p/12D3KooWLjYAwxJRnbiVMDkZzWD5X7SpZ3YWLk4rJDPMnTVr5yJY pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59935/p2p/12D3KooWSfRwGZEi2Xt53YZ7t4hisQrbKtQ1zzbfZcZUxnXB4CW7 pkg=network -=== CONT TestPersistPeerStore - testing.go:1152: race detected during execution of test -=== CONT TestCreateDecoder_BlockAnnounce ---- FAIL: TestPersistPeerStore (2.77s) +2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network ================== WARNING: DATA RACE -Write at 0x000005df4ec8 by goroutine 93: - github.com/ChainSafe/gossamer/dot/network.setupStreamManagerTest.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager_test.go:28 +0x32 +Write at 0x00c00f55ccd0 by goroutine 44: + runtime.closechan() + /usr/local/go/src/runtime/chan.go:355 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e + github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 + github.com/ChainSafe/gossamer/dot/network.createTestService.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a testing.(*common).Cleanup.func1() /usr/local/go/src/testing/testing.go:912 +0x199 testing.(*common).runCleanup() @@ -365,11 +570,19 @@ Write at 0x000005df4ec8 by goroutine 93: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous read at 0x000005df4ec8 by goroutine 271: - github.com/ChainSafe/gossamer/dot/network.(*streamManager).start.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager.go:39 +0x4a +Previous read at 0x00c00f55ccd0 by goroutine 788: + runtime.chansend() + /usr/local/go/src/runtime/chan.go:158 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Incoming() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:86 +0xc4 + github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:435 +0xfb + github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:433 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Swarm).addConn·dwrap·13() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm.go:285 +0x58 -Goroutine 93 (running) created at: +Goroutine 44 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -385,24 +598,136 @@ Goroutine 93 (running) created at: main.main() _testmain.go:205 +0x264 ================== -=== CONT TestStreamManager +=== CONT TestBootstrap testing.go:1152: race detected during execution of test ---- FAIL: TestStreamManager (2.77s) -=== CONT TestDecodeConsensusMessage ---- PASS: TestDecodeConsensusMessage (0.00s) -=== CONT TestDecodeTransactionMessageTwoExtrinsics ---- PASS: TestDecodeTransactionMessageTwoExtrinsics (0.00s) -=== CONT TestDecodeTransactionMessageOneExtrinsic ---- PASS: TestDecodeTransactionMessageOneExtrinsic (0.00s) -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce -2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateDecoder_BlockAnnounce3588465220/001/TestCreateDecoder_BlockAnnounce/nodeA/node.key pkg=network -2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce1836464503/001/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeA/node.key pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59936/p2p/12D3KooWGLxDrmGxuJjiFRVaBdbR4hE2xoAtfq2x6M9yycm9MXwm pkg=network +--- FAIL: TestBootstrap (1.68s) +=== CONT TestStreamCloseMetadataCleanup +2021-12-07T14:25:57-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup3488773186/001/TestStreamCloseMetadataCleanup/nodeA/node.key pkg=network +2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:57-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60493/p2p/12D3KooWCe9y854cKSwVjeh7hQzW96zXNWpRgArDBbAYKsNeqdXC pkg=network +2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:57-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore4076152564/002/TestPersistPeerStore/node1/node.key pkg=network +2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:57-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn2162876927/002/TestHandleConn/nodeB/node.key pkg=network +2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:58-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60494/p2p/12D3KooWEc3w2G3N3xsAsWeBa9zteEsUK9exDijPeno2H6uWSdN1 pkg=network +2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:58-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60495/p2p/12D3KooWCiS8okWhdyMFMn9TkG3s3bYMgW6SN6rZqfrdCgLNbY5U pkg=network +2021-12-07T14:25:58-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:58-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup3488773186/002/TestStreamCloseMetadataCleanup/nodeB/node.key pkg=network +2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:58-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60496/p2p/12D3KooWJMaMZBNKx22kTN1ojkYio6PM4LHzgRZYKwd5YAPz6dHf pkg=network +================== +WARNING: DATA RACE +Read at 0x00c026638930 by goroutine 46: + runtime.mapaccess1_faststr() + /usr/local/go/src/runtime/map_faststr.go:12 +0x0 + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcbc + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c026638930 by goroutine 649: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 46 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 649 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== +================== +WARNING: DATA RACE +Read at 0x00c015619108 by goroutine 46: + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcc9 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 + +Previous write at 0x00c015619108 by goroutine 649: + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 + +Goroutine 46 (running) created at: + testing.(*T).Run() + /usr/local/go/src/testing/testing.go:1306 +0x726 + testing.runTests.func1() + /usr/local/go/src/testing/testing.go:1598 +0x99 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.runTests() + /usr/local/go/src/testing/testing.go:1596 +0x7ca + testing.(*M).Run() + /usr/local/go/src/testing/testing.go:1504 +0x9d1 + github.com/ChainSafe/gossamer/dot/network.TestMain() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 + main.main() + _testmain.go:205 +0x264 + +Goroutine 649 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +================== ================== WARNING: DATA RACE -Read at 0x00c020ab8450 by goroutine 45: +Read at 0x00c04597cf90 by goroutine 45: runtime.mapaccess2_faststr() /usr/local/go/src/runtime/map_faststr.go:107 +0x0 github.com/ChainSafe/gossamer/dot/network.TestSend() @@ -412,7 +737,7 @@ Read at 0x00c020ab8450 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c020ab8450 by goroutine 154: +Previous write at 0x00c04597cf90 by goroutine 513: runtime.mapassign_faststr() /usr/local/go/src/runtime/map_faststr.go:202 +0x0 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() @@ -446,7 +771,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 154 (running) created at: +Goroutine 513 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -456,16 +781,15 @@ Goroutine 154 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c000303108 by goroutine 45: +Read at 0x00c0008bd528 by goroutine 45: github.com/ChainSafe/gossamer/dot/network.TestSend() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:209 +0xa4d testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -Previous write at 0x00c000303108 by goroutine 154: +Previous write at 0x00c0008bd528 by goroutine 513: github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() @@ -497,7 +821,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 154 (running) created at: +Goroutine 513 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -507,7 +831,7 @@ Goroutine 154 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c00073aeb0 by goroutine 45: +Read at 0x00c0002c1990 by goroutine 45: github.com/ChainSafe/gossamer/dot/network.TestSend() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xae4 testing.tRunner() @@ -515,7 +839,7 @@ Read at 0x00c00073aeb0 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c00073aeb0 by goroutine 154: +Previous write at 0x00c0002c1990 by goroutine 513: github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x17c github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() @@ -547,7 +871,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 154 (running) created at: +Goroutine 513 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -557,7 +881,7 @@ Goroutine 154 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c01a928ea0 by goroutine 45: +Read at 0x00c00283ec00 by goroutine 45: reflect.typedmemmove() /usr/local/go/src/runtime/mbarrier.go:178 +0x0 reflect.packEface() @@ -585,7 +909,7 @@ Read at 0x00c01a928ea0 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c01a928ea0 by goroutine 154: +Previous write at 0x00c00283ec00 by goroutine 513: github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:194 +0x77b github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() @@ -617,7 +941,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 154 (running) created at: +Goroutine 513 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -627,7 +951,7 @@ Goroutine 154 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c01a928ea8 by goroutine 45: +Read at 0x00c00283ec08 by goroutine 45: reflect.Value.IsNil() /usr/local/go/src/reflect/value.go:1425 +0x1d8 reflect.deepValueEqual.func1() @@ -655,7 +979,7 @@ Read at 0x00c01a928ea8 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c01a928ea8 by goroutine 154: +Previous write at 0x00c00283ec08 by goroutine 513: github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:195 +0x7c8 github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() @@ -687,7 +1011,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 154 (running) created at: +Goroutine 513 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -697,7 +1021,7 @@ Goroutine 154 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c01a928eb8 by goroutine 45: +Read at 0x00c00283ec18 by goroutine 45: reflect.Value.IsNil() /usr/local/go/src/reflect/value.go:1419 +0x225 reflect.deepValueEqual.func1() @@ -723,7 +1047,7 @@ Read at 0x00c01a928eb8 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c01a928eb8 by goroutine 154: +Previous write at 0x00c00283ec18 by goroutine 513: github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:196 +0x835 github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() @@ -755,7 +1079,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 154 (running) created at: +Goroutine 513 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -765,7 +1089,7 @@ Goroutine 154 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c000f1f7e0 by goroutine 45: +Read at 0x00c03d8a5fe0 by goroutine 45: reflect.typedmemmove() /usr/local/go/src/runtime/mbarrier.go:178 +0x0 reflect.packEface() @@ -797,7 +1121,7 @@ Read at 0x00c000f1f7e0 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c000f1f7e0 by goroutine 154: +Previous write at 0x00c03d8a5fe0 by goroutine 513: github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:182 +0x6fa github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() @@ -829,7 +1153,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 154 (running) created at: +Goroutine 513 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -839,7 +1163,7 @@ Goroutine 154 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c01a928ec0 by goroutine 45: +Read at 0x00c00283ec20 by goroutine 45: reflect.typedmemmove() /usr/local/go/src/runtime/mbarrier.go:178 +0x0 reflect.packEface() @@ -867,7 +1191,7 @@ Read at 0x00c01a928ec0 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c01a928ec0 by goroutine 154: +Previous write at 0x00c00283ec20 by goroutine 513: github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:197 +0x89a github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() @@ -899,7 +1223,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 154 (running) created at: +Goroutine 513 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -909,7 +1233,7 @@ Goroutine 154 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c01a928ec8 by goroutine 45: +Read at 0x00c00283ec28 by goroutine 45: reflect.Value.IsNil() /usr/local/go/src/reflect/value.go:1419 +0x225 reflect.deepValueEqual.func1() @@ -935,7 +1259,7 @@ Read at 0x00c01a928ec8 by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c01a928ec8 by goroutine 154: +Previous write at 0x00c00283ec28 by goroutine 513: github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:198 +0x8ba github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() @@ -967,7 +1291,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 154 (running) created at: +Goroutine 513 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -977,7 +1301,7 @@ Goroutine 154 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c00a6eb2bc by goroutine 45: +Read at 0x00c00284647c by goroutine 45: reflect.typedmemmove() /usr/local/go/src/runtime/mbarrier.go:178 +0x0 reflect.packEface() @@ -1007,7 +1331,7 @@ Read at 0x00c00a6eb2bc by goroutine 45: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c00a6eb2b8 by goroutine 154: +Previous write at 0x00c002846478 by goroutine 513: github.com/ChainSafe/gossamer/dot/network/proto.(*BlockRequest).Reset() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/proto/api.v1.pb.go:102 +0x37 google.golang.org/protobuf/proto.Reset() @@ -1047,7 +1371,7 @@ Goroutine 45 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 154 (running) created at: +Goroutine 513 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1055,109 +1379,51 @@ Goroutine 154 (running) created at: github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== -2021-12-07T14:13:21-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network -2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59937/p2p/12D3KooWPy85jMzfphuTT8iNNMfY9Njf7G6vvVXY6tnTEZNTXFPu pkg=network -2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59938/p2p/12D3KooWNqGaMQBBWQqCEUmvFqFuqahWuQtNQoz2xc3sS2XyxA6T pkg=network -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWNTj2Sx1REpoLn4MPAvUFuShPwGABZ8DUxEFy9XFgtM8c message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction3714922272/002/TestCreateNotificationsMessageHandler_HandleTransaction/nodeB/node.key pkg=network -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:25:58-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network +2021-12-07T14:25:58-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:58-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network === CONT TestSend testing.go:1152: race detected during execution of test ---- FAIL: TestSend (3.16s) -=== CONT TestEncodeTransactionMessageTwoExtrinsics -=== CONT TestDecode_BlockAnnounceMessage ---- PASS: TestEncodeTransactionMessageTwoExtrinsics (0.00s) ---- PASS: TestDecode_BlockAnnounceMessage (0.00s) -=== CONT TestEncodeTransactionMessageSingleExtrinsic -=== CONT TestEncodeBlockAnnounceMessage ---- PASS: TestEncodeTransactionMessageSingleExtrinsic (0.00s) -=== CONT TestEncodeBlockResponseMessage_WithAll ---- PASS: TestEncodeBlockAnnounceMessage (0.00s) -=== CONT TestEncodeBlockResponseMessage_Empty ---- PASS: TestEncodeBlockResponseMessage_WithAll (0.01s) -=== CONT TestEncodeBlockResponseMessage_WithBody ---- PASS: TestEncodeBlockResponseMessage_Empty (0.00s) -=== CONT TestBlockRequestString ---- PASS: TestEncodeBlockResponseMessage_WithBody (0.00s) -BlockRequestMessage RequestedData=1 StartingBlock={[220 209 52 103 1 202 131 150 73 110 82 170 39 133 177 116 141 235 109 176 149 81 183 33 89 220 179 224 137 145 2 91]} EndBlockHash=0x0000000000000000000000000000000000000000000000000000000000000000 Direction=1 Max=0 -=== CONT TestEncodeBlockRequestMessage_BlockNumber ---- PASS: TestBlockRequestString (0.00s) -=== CONT TestBuild ---- PASS: TestEncodeBlockRequestMessage_BlockNumber (0.00s) -=== CONT TestMaxPeers ---- PASS: TestBuild (0.01s) -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59939/p2p/12D3KooWMEysNai47o9tryde9ERc3rF9a1aXGCvTE2Dnoq674WG5 pkg=network -2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3105340035/001/TestMaxPeers/node0/node.key pkg=network -2021-12-07T14:13:21-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake540250484/002/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeB/node.key pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59940/p2p/12D3KooWCHZMTgNBkfV6wW1grQymbCuyfqPBpsMZTLFLH3BxLZYq pkg=network -================== -WARNING: DATA RACE -Write at 0x00c017b8c258 by goroutine 87: - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:248 +0xe8b - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous read at 0x00c017b8c258 by goroutine 212: - github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:285 +0x3b2 - github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 - -Goroutine 87 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 -================== -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 2 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout1742717102/002/Test_HandshakeTimeout/nodeB/node.key pkg=network -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:13:21-04:00 DBUG gossiping from host 12D3KooWRNdRRVkLSERpAk34FpTzsfzx8kYMiQqByMerVEG5v7Tc message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +=== CONT TestConnect +--- FAIL: TestSend (2.79s) +2021-12-07T14:25:58-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect660471562/001/TestConnect/nodeA/node.key pkg=network +2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:58-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60497/p2p/12D3KooWNFGDV5RxrJUeSYfDG3ZMfgt5rRFHkfXfrGB494FkN15f pkg=network +2021-12-07T14:25:58-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:58-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60492/p2p/12D3KooWGeN7T72ianzPN2q4j3u7sPX8ArYwRSEzwqu8G3FfgEf1 pkg=network +=== CONT TestHandleConn + testing.go:1152: race detected during execution of test +--- FAIL: TestHandleConn (1.77s) +=== CONT TestExternalAddrs +2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrs1664404029/001/TestExternalAddrs/node/node.key pkg=network +2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:59-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60498/p2p/12D3KooWQrDF68TqBYe2RsJq9YWTnz4Dex72ziVAUMbNrLepVjHB pkg=network +2021-12-07T14:25:59-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect660471562/002/TestConnect/nodeB/node.key pkg=network +=== CONT TestStreamManager + testing.go:1152: race detected during execution of test +--- FAIL: TestStreamManager (1.94s) +=== CONT TestExternalAddrsPublicIP +2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrsPublicIP1289943567/001/TestExternalAddrsPublicIP/node/node.key pkg=network +2021-12-07T14:25:59-04:00 DBUG using config PublicIP: 10.0.5.2 pkg=network +2021-12-07T14:25:59-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network ================== WARNING: DATA RACE -Read at 0x00c00fdca900 by goroutine 87: +Read at 0x00c0266e9950 by goroutine 46: runtime.mapaccess1_faststr() /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf78 + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1008 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c00fdca900 by goroutine 657: +Previous write at 0x00c0266e9950 by goroutine 110: runtime.mapassign_faststr() /usr/local/go/src/runtime/map_faststr.go:202 +0x0 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() @@ -1175,7 +1441,7 @@ Previous write at 0x00c00fdca900 by goroutine 657: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 87 (running) created at: +Goroutine 46 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1191,7 +1457,7 @@ Goroutine 87 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 657 (running) created at: +Goroutine 110 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1201,15 +1467,15 @@ Goroutine 657 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c00fdf28c8 by goroutine 87: - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf85 +Read at 0x00c015619528 by goroutine 46: + github.com/ChainSafe/gossamer/dot/network.TestExistingStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1015 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c00fdf28c8 by goroutine 657: +Previous write at 0x00c015619528 by goroutine 110: github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() @@ -1225,7 +1491,7 @@ Previous write at 0x00c00fdf28c8 by goroutine 657: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 87 (running) created at: +Goroutine 46 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1241,7 +1507,7 @@ Goroutine 87 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 657 (running) created at: +Goroutine 110 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -1249,221 +1515,112 @@ Goroutine 657 (running) created at: github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== -2021-12-07T14:13:21-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59941/p2p/12D3KooWDScHiMwhSGsBRLZqURT4gTxt7rPwxKiE9ExX567hu1oN pkg=network -2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:21-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59942/p2p/12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network -2021-12-07T14:13:21-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:21-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce1836464503/002/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeB/node.key pkg=network -================== -WARNING: DATA RACE -Write at 0x00c000d370f0 by goroutine 87: - runtime.closechan() - /usr/local/go/src/runtime/chan.go:355 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e - github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 - github.com/ChainSafe/gossamer/dot/network.createTestService.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a - testing.(*common).Cleanup.func1() - /usr/local/go/src/testing/testing.go:912 +0x199 - testing.(*common).runCleanup() - /usr/local/go/src/testing/testing.go:1049 +0x154 - testing.tRunner.func2() - /usr/local/go/src/testing/testing.go:1253 +0x4f - testing.tRunner() - /usr/local/go/src/testing/testing.go:1265 +0x268 - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous read at 0x00c000d370f0 by goroutine 90: - runtime.chansend() - /usr/local/go/src/runtime/chan.go:158 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).ReportPeer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:77 +0xf0 - github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:315 +0x957 - github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 - -Goroutine 87 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 -================== -=== CONT TestCreateDecoder_BlockAnnounce +2021-12-07T14:25:59-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network +2021-12-07T14:25:59-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network +2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:59-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60500/p2p/12D3KooWAGy93oXX8yws3hCsc97b44b9biwoPuhonYd4GzTYuPg4 pkg=network +2021-12-07T14:25:59-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:25:59-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60501/p2p/12D3KooWMDGv3j4LeB9LzMuiHY9s5PChWFiUYmfLsRSRjcD91kg2 pkg=network +2021-12-07T14:25:59-04:00 INFO Started listening on /ip4/10.0.5.2/tcp/60501/p2p/12D3KooWMDGv3j4LeB9LzMuiHY9s5PChWFiUYmfLsRSRjcD91kg2 pkg=network +=== CONT TestExternalAddrs testing.go:1152: race detected during execution of test -=== CONT TestBroadcastDuplicateMessage +--- FAIL: TestExternalAddrs (0.80s) +=== CONT TestPersistPeerStore testing.go:1152: race detected during execution of test ---- FAIL: TestCreateDecoder_BlockAnnounce (0.90s) ---- FAIL: TestBroadcastDuplicateMessage (2.42s) -=== CONT TestBeginDiscovery_ThreeNodes -=== CONT TestMinPeers -2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes357404136/001/TestBeginDiscovery_ThreeNodes/nodeA/node.key pkg=network -2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2143916590/001/TestMinPeers/node0/node.key pkg=network -2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59943/p2p/12D3KooWKNe2WVKYHTWr5AGjYjqFBsd21CSXnUKejNujoC8yWhv5 pkg=network -2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3105340035/002/TestMaxPeers/node1/node.key pkg=network -2021-12-07T14:13:22-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59946/p2p/12D3KooWLw39ALuGNgEcb8KTyLJzBVuERrw14hDnuhpcQYG4rzGy pkg=network -2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59945/p2p/12D3KooWGS94dWHgoBP255gJjsLJeMF2zs4DEyQBGxVwzDfESANJ pkg=network -2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59947/p2p/12D3KooWSDSVuRRX8kkfLmjKHUsdxYfaC7gV3tyTXFWFSLpDHgdp pkg=network -2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 DBUG transaction message TransactionMessage extrinsics count=2 for peer 12D3KooWMEysNai47o9tryde9ERc3rF9a1aXGCvTE2Dnoq674WG5 not included into batch pkg=network -2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWSfRwGZEi2Xt53YZ7t4hisQrbKtQ1zzbfZcZUxnXB4CW7 pkg=network -2021-12-07T14:13:22-04:00 DBUG gossiping from host 12D3KooWGLxDrmGxuJjiFRVaBdbR4hE2xoAtfq2x6M9yycm9MXwm message of type 0: BlockAnnounceHandshake Roles=4 BestBlockNumber=77 BestBlockHash=0x0100000000000000000000000000000000000000000000000000000000000000 GenesisHash=0x0200000000000000000000000000000000000000000000000000000000000000 pkg=network -2021-12-07T14:13:22-04:00 EROR message type 0 not supported by any notifications protocol pkg=network -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake +=== CONT TestEncodeBlockRequestMessage_BlockHash +--- FAIL: TestPersistPeerStore (2.57s) +=== CONT TestMessageCacheError +=== CONT TestExistingStream testing.go:1152: race detected during execution of test -=== CONT TestBuildIdentity ---- FAIL: TestCreateNotificationsMessageHandler_BlockAnnounceHandshake (1.77s) ---- PASS: TestBuildIdentity (0.00s) -=== CONT TestEncodeBlockAnnounceHandshake -=== CONT TestHandleBlockAnnounceMessage ---- PASS: TestEncodeBlockAnnounceHandshake (0.00s) -2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleBlockAnnounceMessage2286750253/001/TestHandleBlockAnnounceMessage/nodeA/node.key pkg=network -2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:22-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59948/p2p/12D3KooWHQ7NpL25BTEibxBpbCtcaCy6pz5Uhgi2UXB1MXSuKstC pkg=network -2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2143916590/002/TestMinPeers/node1/node.key pkg=network -2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes357404136/002/TestBeginDiscovery_ThreeNodes/nodeB/node.key pkg=network -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce +--- FAIL: TestExistingStream (3.99s) +=== CONT TestEncodeBlockRequestMessage +=== CONT TestGossip +--- PASS: TestEncodeBlockRequestMessage_BlockHash (0.00s) +=== CONT TestKadDHT +--- PASS: TestEncodeBlockRequestMessage (0.00s) +=== CONT TestEncodeBlockRequestMessage_BlockNumber +--- PASS: TestMessageCacheError (0.01s) +--- PASS: TestEncodeBlockRequestMessage_BlockNumber (0.00s) +=== CONT TestBeginDiscovery +2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3541199343/001/TestKadDHT/node0/node.key pkg=network +2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip1543723579/001/TestGossip/nodeA/node.key pkg=network +2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery892423823/001/TestBeginDiscovery/nodeA/node.key pkg=network +2021-12-07T14:25:59-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWCe9y854cKSwVjeh7hQzW96zXNWpRgArDBbAYKsNeqdXC pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60503/p2p/12D3KooWAMjrqHWAwXEWL1WrvUJj3Sr6rhL9Yyk4brS2vq2CrFuF pkg=network +2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60502/p2p/12D3KooWKAq2UuEy36WHJkY3bVQd1gAqooZTuomxbei8HNQHfLFq pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60504/p2p/12D3KooWSqDBsaZDT1uZExaubZ1jZmWLt2qSboQzkprKxAw6AjaK pkg=network +2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestExternalAddrsPublicIP testing.go:1152: race detected during execution of test ---- FAIL: TestCreateNotificationsMessageHandler_BlockAnnounce (1.70s) -=== CONT TestValidateBlockAnnounceHandshake -2021-12-07T14:13:22-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestValidateBlockAnnounceHandshake1812365492/001/TestValidateBlockAnnounceHandshake/nodeA/node.key pkg=network -2021-12-07T14:13:22-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3105340035/003/TestMaxPeers/node2/node.key pkg=network -2021-12-07T14:13:22-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59949/p2p/12D3KooWPJBfyy3NJiy3ivLB6YSJoyoa9qje9iDhCo13sHCVEAL6 pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59950/p2p/12D3KooWJaqt85p8SvStq5Yw37BmHxLwmNLht9pursKd79PKUowv pkg=network -2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59951/p2p/12D3KooWLXadDjmWGsB1FKX6FtELBJb6DU8dgkYRqZyaJ4wpZMaY pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59952/p2p/12D3KooWCQvHti48robsw8ciKfUdX9P1fqCSCWFN6aFoqtaXzMiS pkg=network -=== CONT TestBannedPeer ---- PASS: TestHandleBlockAnnounceMessage (0.69s) -2021-12-07T14:13:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1916623432/001/TestBannedPeer/nodeA/node.key pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59953/p2p/12D3KooWEoz1dpy9pCdRBJ1jJ2U89GGHpLGGWeXGMrWTZLANvij5 pkg=network -================== -WARNING: DATA RACE -Read at 0x00c01a8f8ed0 by goroutine 86: - runtime.mapaccess1_faststr() - /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9a4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c01a8f8ed0 by goroutine 215: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 86 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 215 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== +--- FAIL: TestExternalAddrsPublicIP (0.88s) +=== CONT TestSetReservedPeer +2021-12-07T14:26:00-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer310528100/001/TestSetReservedPeer/node0/node.key pkg=network +=== CONT TestConnect + testing.go:1152: race detected during execution of test +--- FAIL: TestConnect (1.65s) +=== CONT TestEncodeLightResponse +=== CONT TestEncodeLightRequest +--- PASS: TestEncodeLightResponse (0.00s) +=== CONT TestMessageCache +--- PASS: TestEncodeLightRequest (0.00s) +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60505/p2p/12D3KooWDdtJgA3UXKjNA1t1qbZXfecepKDfyePU23rpKYVojDKo pkg=network +2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3541199343/002/TestKadDHT/node1/node.key pkg=network +2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip1543723579/002/TestGossip/nodeB/node.key pkg=network +2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery892423823/002/TestBeginDiscovery/nodeB/node.key pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60506/p2p/12D3KooWRuMKNsP4jUfsrCSwcxEBQLExHJjF4VMsduH4V5jNx4E7 pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60507/p2p/12D3KooWGLiiXWD7WrbkKyi9PKXqQpHa3jxRnMqW17RFBLJyxGFu pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60508/p2p/12D3KooWMFo74g4p6fj8g6D2BTHENNiAyMczYDnzf1j1TSprVnex pkg=network +2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:00-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer310528100/002/TestSetReservedPeer/node1/node.key pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60509/p2p/12D3KooWCkzQyEZSuDUpT4HynZ1cjeM6dK69PwtfFQwusHwLnES7 pkg=network +=== CONT TestStreamCloseMetadataCleanup + testing.go:1152: race detected during execution of test +=== CONT TestDecodeLightMessage +--- FAIL: TestStreamCloseMetadataCleanup (3.50s) +--- PASS: TestDecodeLightMessage (0.01s) +=== CONT TestMDNS +2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS3428643133/001/TestMDNS/nodeA/node.key pkg=network +2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3541199343/003/TestKadDHT/node2/node.key pkg=network +2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network ================== WARNING: DATA RACE -Read at 0x00c00a622b88 by goroutine 86: - github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9b1 +Read at 0x00c03e972070 by goroutine 51: + github.com/ChainSafe/gossamer/dot/network.TestStreamCloseEOF() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:555 +0xa5e testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c00a622b88 by goroutine 215: - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 +Previous write at 0x00c03e972070 by goroutine 197: + [failed to restore the stack] -Goroutine 86 (running) created at: +Goroutine 51 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1478,154 +1635,188 @@ Goroutine 86 (running) created at: /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 main.main() _testmain.go:205 +0x264 - -Goroutine 215 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== -2021-12-07T14:13:23-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network -=== CONT TestBroadcastMessages +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60511/p2p/12D3KooWQSzu4g54pa5mSTX2ixJLrhFBhh7Si8e1vzRWCqcBRECB pkg=network +2021-12-07T14:26:01-04:00 DBUG starting DHT with bootnodes [{12D3KooWMFo74g4p6fj8g6D2BTHENNiAyMczYDnzf1j1TSprVnex: [/ip4/127.0.0.1/tcp/60508]}]... pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60512/p2p/12D3KooWPWuNizWj3b9VuvYEzvLLtgvBBkhtg6Q6bThgVRptCZv1 pkg=network +2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip1543723579/003/TestGossip/nodeC/node.key pkg=network +2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer310528100/003/TestSetReservedPeer/node2/node.key pkg=network +=== CONT TestStreamCloseEOF testing.go:1152: race detected during execution of test -=== CONT TestEncodeBlockRequestMessage_NoOptionals ---- FAIL: TestBroadcastMessages (3.89s) -=== CONT TestEncodeBlockRequestMessage ---- PASS: TestEncodeBlockRequestMessage_NoOptionals (0.00s) -=== CONT TestMessageCache ---- PASS: TestEncodeBlockRequestMessage (0.00s) -2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers2143916590/003/TestMinPeers/nodeB/node.key pkg=network -2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3105340035/004/TestMaxPeers/node3/node.key pkg=network -2021-12-07T14:13:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes357404136/003/TestBeginDiscovery_ThreeNodes/nodeC/node.key pkg=network -2021-12-07T14:13:23-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T14:13:23-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:23-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:23-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59954/p2p/12D3KooWPYZTsUTeoXT2Ery2dBPFnZnTBGcrVWdGY1mwAXgTHehS pkg=network -2021-12-07T14:13:23-04:00 DBUG bootstrapping to peer 12D3KooWLw39ALuGNgEcb8KTyLJzBVuERrw14hDnuhpcQYG4rzGy pkg=network -2021-12-07T14:13:23-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1916623432/002/TestBannedPeer/nodeB/node.key pkg=network -2021-12-07T14:13:23-04:00 DBUG bootstrapping to peer 12D3KooWPJBfyy3NJiy3ivLB6YSJoyoa9qje9iDhCo13sHCVEAL6 pkg=network -=== CONT TestValidateBlockAnnounceHandshake +--- FAIL: TestStreamCloseEOF (6.96s) +=== CONT TestBannedPeer +2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1156012698/001/TestBannedPeer/nodeA/node.key pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60515/p2p/12D3KooWAwjbbmsNZMK5TkffPh7xr4CxsiptJFjbG46uCgYGPjJZ pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60516/p2p/12D3KooWN28uGhnj2ApkVJQcoWb68ngoBYC3yzwWCP1a2aXaakcj pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60517/p2p/12D3KooWQ4HzD8T6339TyaXD4Chns1EHTpHeVJVvgyUc38qYXtqi pkg=network +2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS3428643133/002/TestMDNS/nodeB/node.key pkg=network +2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:02-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60518/p2p/12D3KooWKsaxAVeftv34StbMT2VrRtowc2Repw5mkWoKf8rJ2sRs pkg=network +2021-12-07T14:26:02-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:02-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:02-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer310528100/004/TestSetReservedPeer/node3/node.key pkg=network +2021-12-07T14:26:02-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network +=== CONT TestGossip + gossip_test.go:93: + Error Trace: gossip_test.go:93 + Error: Received unexpected error: + protocol not supported + Test: TestGossip +2021-12-07T14:26:02-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:02-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1156012698/002/TestBannedPeer/nodeB/node.key pkg=network +2021-12-07T14:26:02-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:26:02-04:00 DBUG starting DHT with bootnodes [{12D3KooWSqDBsaZDT1uZExaubZ1jZmWLt2qSboQzkprKxAw6AjaK: [/ip4/127.0.0.1/tcp/60504]}]... pkg=network +2021-12-07T14:26:02-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:26:02-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network +2021-12-07T14:26:02-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:02-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60520/p2p/12D3KooWGtmDUHhUbZHS3Ep3CGbHVCuS1QP5PcvWPeeT2EwfetAZ pkg=network +2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:02-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60521/p2p/12D3KooWJPsv2Tyha3gGiLxrmZbw9jdFWQgx9AJWDhv8PHoQ7TPg pkg=network +2021-12-07T14:26:02-04:00 DBUG connection successful with peer 12D3KooWDdtJgA3UXKjNA1t1qbZXfecepKDfyePU23rpKYVojDKo pkg=network testing.go:1152: race detected during execution of test ---- FAIL: TestValidateBlockAnnounceHandshake (1.17s) -=== CONT TestMessageCacheError +--- FAIL: TestGossip (2.92s) === CONT TestHandleLightMessage_Response ---- PASS: TestMessageCacheError (0.01s) -2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response1285385793/001/TestHandleLightMessage_Response/nodeA/node.key pkg=network -=== CONT TestCreateNotificationsMessageHandler_HandleTransaction +2021-12-07T14:26:02-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response241592593/001/TestHandleLightMessage_Response/nodeA/node.key pkg=network +2021-12-07T14:26:02-04:00 DBUG connection successful with peer 12D3KooWCkzQyEZSuDUpT4HynZ1cjeM6dK69PwtfFQwusHwLnES7 pkg=network +2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:02-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60522/p2p/12D3KooWGLCPGN38ix3PyD178HLCdAMPVXnNgTGiHcWRsZCiyjGM pkg=network +2021-12-07T14:26:03-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:03-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:03-04:00 DBUG connection successful with peer 12D3KooWJPsv2Tyha3gGiLxrmZbw9jdFWQgx9AJWDhv8PHoQ7TPg pkg=network +2021-12-07T14:26:03-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset +2021-12-07T14:26:03-04:00 DBUG connection dropped successfully for peer 12D3KooWJPsv2Tyha3gGiLxrmZbw9jdFWQgx9AJWDhv8PHoQ7TPg pkg=network +2021-12-07T14:26:03-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:03-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response241592593/002/TestHandleLightMessage_Response/nodeB/node.key pkg=network +2021-12-07T14:26:03-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:26:03-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:03-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:03-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60523/p2p/12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt pkg=network +2021-12-07T14:26:03-04:00 WARN failed to open connection for peer 12D3KooWQSzu4g54pa5mSTX2ixJLrhFBhh7Si8e1vzRWCqcBRECB: context canceled pkg=network +=== CONT TestBeginDiscovery testing.go:1152: race detected during execution of test ---- FAIL: TestCreateNotificationsMessageHandler_HandleTransaction (3.61s) -=== CONT TestDecodeLightMessage -2021-12-07T14:13:24-04:00 DBUG connection successful with peer 12D3KooWLw39ALuGNgEcb8KTyLJzBVuERrw14hDnuhpcQYG4rzGy pkg=network +--- FAIL: TestBeginDiscovery (3.91s) +=== CONT TestPeerReputation +2021-12-07T14:26:03-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation1465209743/001/TestPeerReputation/nodeA/node.key pkg=network === CONT TestMDNS ---- PASS: TestDecodeLightMessage (0.01s) -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59955/p2p/12D3KooWRw1WZe6jNM8q72wS3HLtPggqNZJX1PSiPhTQL9kGwmcM pkg=network -2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59956/p2p/12D3KooWK9zC1nuvwRUkc9GipTvRig9Ut8zBJANozXtGyEE6LMfa pkg=network -2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS2830343841/001/TestMDNS/nodeA/node.key pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59957/p2p/12D3KooWEYM5y7VDXxvcG1smx21vh4WVwaizcKFKs6ZcB8zVAj42 pkg=network -2021-12-07T14:13:24-04:00 DBUG connection successful with peer 12D3KooWPJBfyy3NJiy3ivLB6YSJoyoa9qje9iDhCo13sHCVEAL6 pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59959/p2p/12D3KooWBJHdzccFeVkfDnE9GbDLSbYX4nQdVs88ZnDERttMuz2F pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59958/p2p/12D3KooWHKzxvy5N1wmY7YJoTLy3APPhXWQ2VdoHirVYmgfq3Nj8 pkg=network -2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 DBUG connection dropped successfully for peer 12D3KooWLw39ALuGNgEcb8KTyLJzBVuERrw14hDnuhpcQYG4rzGy pkg=network -2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers3105340035/005/TestMaxPeers/node4/node.key pkg=network -2021-12-07T14:13:24-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestMinPeers testing.go:1152: race detected during execution of test ---- FAIL: TestMinPeers (2.69s) -=== CONT TestEncodeLightResponse -=== CONT TestEncodeLightRequest ---- PASS: TestEncodeLightResponse (0.00s) -=== CONT TestPeerReputation ---- PASS: TestEncodeLightRequest (0.00s) -2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation3687856302/001/TestPeerReputation/nodeA/node.key pkg=network -2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:24-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset -2021-12-07T14:13:24-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59962/p2p/12D3KooWPuVGcHC3kAWF7Mh9XhDjk6TBvkbvuAfz8d1kYaB6yrsE pkg=network -2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS2830343841/002/TestMDNS/nodeB/node.key pkg=network -2021-12-07T14:13:24-04:00 DBUG starting DHT with bootnodes [{12D3KooWJaqt85p8SvStq5Yw37BmHxLwmNLht9pursKd79PKUowv: [/ip4/127.0.0.1/tcp/59950]} {12D3KooWRw1WZe6jNM8q72wS3HLtPggqNZJX1PSiPhTQL9kGwmcM: [/ip4/127.0.0.1/tcp/59955]}]... pkg=network -2021-12-07T14:13:24-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response1285385793/002/TestHandleLightMessage_Response/nodeB/node.key pkg=network -2021-12-07T14:13:24-04:00 DBUG connection successful with peer 12D3KooWEYM5y7VDXxvcG1smx21vh4WVwaizcKFKs6ZcB8zVAj42 pkg=network -2021-12-07T14:13:24-04:00 DBUG connection dropped successfully for peer 12D3KooWEYM5y7VDXxvcG1smx21vh4WVwaizcKFKs6ZcB8zVAj42 pkg=network -2021-12-07T14:13:24-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:25-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59963/p2p/12D3KooWJxiMFPw43eqznLiq9e1jZbuQNeWUQGo39zhkat9wUZuL pkg=network -2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:25-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59964/p2p/12D3KooWDxTCGRpZjKXzoPjpMynq9tWDg7eAPHiabKHh9TvCeuvT pkg=network -2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:25-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59965/p2p/12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq pkg=network -2021-12-07T14:13:25-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:25-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset -2021-12-07T14:13:25-04:00 DBUG connection successful with peer 12D3KooWCHZMTgNBkfV6wW1grQymbCuyfqPBpsMZTLFLH3BxLZYq pkg=network -2021-12-07T14:13:25-04:00 DBUG connection successful with peer 12D3KooWCHZMTgNBkfV6wW1grQymbCuyfqPBpsMZTLFLH3BxLZYq pkg=network -2021-12-07T14:13:25-04:00 DBUG connection successful with peer 12D3KooWCHZMTgNBkfV6wW1grQymbCuyfqPBpsMZTLFLH3BxLZYq pkg=network -2021-12-07T14:13:25-04:00 DBUG connection successful with peer 12D3KooWCHZMTgNBkfV6wW1grQymbCuyfqPBpsMZTLFLH3BxLZYq pkg=network -2021-12-07T14:13:25-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:25-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation3687856302/002/TestPeerReputation/nodeB/node.key pkg=network -2021-12-07T14:13:25-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:25-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:25-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:25-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59967/p2p/12D3KooWPdQXrSw8unGKpq6PfV6pX3MFDLoTUQg7tSuWj11FDD52 pkg=network -2021-12-07T14:13:25-04:00 WARN ignoring LightRequest without request data pkg=network -2021-12-07T14:13:25-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T14:13:25-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/light/2, peer=12D3KooWHKzxvy5N1wmY7YJoTLy3APPhXWQ2VdoHirVYmgfq3Nj8 pkg=network -2021-12-07T14:13:25-04:00 WARN failed to send LightResponse message to peer 12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq: stream closed pkg=network -2021-12-07T14:13:25-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T14:13:25-04:00 WARN failed to send LightResponse message to peer 12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq: stream closed pkg=network -2021-12-07T14:13:25-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T14:13:25-04:00 WARN failed to send LightResponse message to peer 12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq: stream closed pkg=network -2021-12-07T14:13:25-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T14:13:25-04:00 WARN failed to send LightResponse message to peer 12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq: stream closed pkg=network -2021-12-07T14:13:25-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T14:13:25-04:00 WARN failed to send LightResponse message to peer 12D3KooWCYRGEMJT2r7edUwYVgKy9j1btUvXAdjoRD1Uocvgr6tq: stream closed pkg=network -2021-12-07T14:13:25-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:13:25-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T14:13:25-04:00 DBUG starting DHT with bootnodes [{12D3KooWGS94dWHgoBP255gJjsLJeMF2zs4DEyQBGxVwzDfESANJ: [/ip4/127.0.0.1/tcp/59945]}]... pkg=network -2021-12-07T14:13:25-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network ---- PASS: TestHandleLightMessage_Response (2.04s) -=== CONT TestPeerConnect === CONT TestMaxPeers +--- FAIL: TestMDNS (2.53s) +2021-12-07T14:26:03-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/001/TestMaxPeers/node0/node.key pkg=network +2021-12-07T14:26:03-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T14:26:03-04:00 DBUG connection successful with peer 12D3KooWN28uGhnj2ApkVJQcoWb68ngoBYC3yzwWCP1a2aXaakcj pkg=network +=== CONT TestMessageCache testing.go:1152: race detected during execution of test ---- FAIL: TestMaxPeers (4.53s) -=== CONT TestStreamCloseEOF -2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect2272658741/001/TestPeerConnect/nodeA/node.key pkg=network -2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF2184255775/001/TestStreamCloseEOF/nodeA/node.key pkg=network -2021-12-07T14:13:26-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:26-04:00 DBUG connection successful with peer 12D3KooWPdQXrSw8unGKpq6PfV6pX3MFDLoTUQg7tSuWj11FDD52 pkg=network -2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:26-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59968/p2p/12D3KooWGq3yYZs7BdsZ1H3zZsN6A6pN9GgUpbDg1VZmfreGMZxD pkg=network -2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:26-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59969/p2p/12D3KooWSTG741mGptDm1fz43uAECcWDuMdL9uu86BbXTJsGvxbS pkg=network +--- FAIL: TestMessageCache (3.53s) +=== CONT TestPersistentPeers +2021-12-07T14:26:03-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset +2021-12-07T14:26:03-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers1668795105/001/TestPersistentPeers/node-a/node.key pkg=network +2021-12-07T14:26:03-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:03-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:03-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60524/p2p/12D3KooWBQcVber8K4GQD17SbF5WUoDLVuLWVZesNP4yVUPS2EFg pkg=network +2021-12-07T14:26:03-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60525/p2p/12D3KooWKJEtUR4soQeXuicPrwA6CuPZxzdTYiBVdE2gunypp8nw pkg=network +2021-12-07T14:26:04-04:00 WARN ignoring LightRequest without request data pkg=network +2021-12-07T14:26:04-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/light/2, peer=12D3KooWGLCPGN38ix3PyD178HLCdAMPVXnNgTGiHcWRsZCiyjGM pkg=network +2021-12-07T14:26:04-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T14:26:04-04:00 WARN failed to send LightResponse message to peer 12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt: stream closed pkg=network +2021-12-07T14:26:04-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T14:26:04-04:00 WARN failed to send LightResponse message to peer 12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt: stream closed pkg=network +2021-12-07T14:26:04-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T14:26:04-04:00 WARN failed to send LightResponse message to peer 12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt: stream closed pkg=network +2021-12-07T14:26:04-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T14:26:04-04:00 WARN failed to send LightResponse message to peer 12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt: stream closed pkg=network +2021-12-07T14:26:04-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network +2021-12-07T14:26:04-04:00 WARN failed to send LightResponse message to peer 12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt: stream closed pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60526/p2p/12D3KooWSfsC3Qnfqukg19bRJ3NnEef3PDsFuhEjNuPkPvwQTMyR pkg=network +=== CONT TestProtectUnprotectPeer +--- PASS: TestHandleLightMessage_Response (1.66s) +=== CONT TestMinPeers +--- PASS: TestProtectUnprotectPeer (0.00s) +=== CONT TestSetReservedPeer + testing.go:1152: race detected during execution of test +--- FAIL: TestSetReservedPeer (4.09s) +=== CONT TestBuildIdentity +=== CONT Test_sizedBufferPool_race +--- PASS: TestBuildIdentity (0.01s) +=== CONT TestService_NodeRoles +--- PASS: Test_sizedBufferPool_race (0.00s) +2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers102499482/001/TestMinPeers/node0/node.key pkg=network +2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_NodeRoles3521792647/001/TestService_NodeRoles/node/node.key pkg=network +2021-12-07T14:26:04-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network +2021-12-07T14:26:04-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation1465209743/002/TestPeerReputation/nodeB/node.key pkg=network +2021-12-07T14:26:04-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/002/TestMaxPeers/node1/node.key pkg=network +2021-12-07T14:26:04-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60527/p2p/12D3KooWLLE7thnZ3bKqEmjm9zkjFKn5nwgRaYhCyLMZtvkcDxBZ pkg=network +=== CONT TestService_NodeRoles + service_test.go:266: + Error Trace: service_test.go:102 + service_test.go:266 + Error: Received unexpected error: + failed to listen on any addresses: [listen tcp4 0.0.0.0:7000: bind: address already in use] + Test: TestService_NodeRoles +=== CONT TestBroadcastDuplicateMessage +--- FAIL: TestService_NodeRoles (0.27s) +2021-12-07T14:26:04-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1378793643/001/TestBroadcastDuplicateMessage/nodeA/node.key pkg=network +2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers1668795105/002/TestPersistentPeers/node-b/node.key pkg=network +2021-12-07T14:26:04-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60528/p2p/12D3KooWSRT3zXUr7LBnBCeXSnLNTeoR5eChzjnD9Ep855CBXiY8 pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60529/p2p/12D3KooWMAH8Cxw7cDLDUX5mWatq2Zmu6sv8v9GDxk9wJV38jrFX pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60530/p2p/12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60531/p2p/12D3KooWFrMTXo6H5fyVRbgRHRvsrAQotH3DHAwsPKdmwKrcjmNG pkg=network +2021-12-07T14:26:04-04:00 DBUG connection successful with peer 12D3KooWSfsC3Qnfqukg19bRJ3NnEef3PDsFuhEjNuPkPvwQTMyR pkg=network +2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers102499482/002/TestMinPeers/node1/node.key pkg=network +2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60533/p2p/12D3KooWPcmHB9uVKBEFkmAnxBKEho5DPBkphA66QxZEo4akS1SN pkg=network +2021-12-07T14:26:05-04:00 DBUG connection successful with peer 12D3KooWSRT3zXUr7LBnBCeXSnLNTeoR5eChzjnD9Ep855CBXiY8 pkg=network +2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/003/TestMaxPeers/node2/node.key pkg=network +2021-12-07T14:26:05-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T14:26:05-04:00 DBUG cleaning up outbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network +2021-12-07T14:26:05-04:00 DBUG failed to send handshake to peer 12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA on protocol /gossamer/test/0/block-announces/1: handshake timeout reached pkg=network +2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1378793643/002/TestBroadcastDuplicateMessage/nodeB/node.key pkg=network ================== WARNING: DATA RACE -Read at 0x00c01f1a9c50 by goroutine 54: +Read at 0x00c0027f1c50 by goroutine 54: runtime.mapaccess2_faststr() /usr/local/go/src/runtime/map_faststr.go:107 +0x0 github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).getNode() @@ -1639,7 +1830,7 @@ Read at 0x00c01f1a9c50 by goroutine 54: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c01f1a9c50 by goroutine 870: +Previous write at 0x00c0027f1c50 by goroutine 846: runtime.mapassign_faststr() /usr/local/go/src/runtime/map_faststr.go:202 +0x0 github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).addReputation() @@ -1667,7 +1858,7 @@ Goroutine 54 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 870 (running) created at: +Goroutine 846 (running) created at: github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x170 github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() @@ -1677,7 +1868,7 @@ Goroutine 870 (running) created at: github.com/ChainSafe/gossamer/dot/network.(*Service).Start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 testing.tRunner() @@ -1687,7 +1878,7 @@ Goroutine 870 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c07fa6cb18 by goroutine 54: +Read at 0x00c0a21d5408 by goroutine 54: github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).getNode() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:117 +0x99 github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() @@ -1699,7 +1890,7 @@ Read at 0x00c07fa6cb18 by goroutine 54: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c07fa6cb18 by goroutine 870: +Previous write at 0x00c0a21d5408 by goroutine 846: github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).addReputation() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:224 +0x25e github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() @@ -1725,7 +1916,7 @@ Goroutine 54 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 870 (running) created at: +Goroutine 846 (running) created at: github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x170 github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() @@ -1735,7 +1926,7 @@ Goroutine 870 (running) created at: github.com/ChainSafe/gossamer/dot/network.(*Service).Start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 testing.tRunner() @@ -1745,7 +1936,7 @@ Goroutine 870 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c07fa6e6b0 by goroutine 54: +Read at 0x00c065792ff0 by goroutine 54: github.com/ChainSafe/gossamer/dot/peerset.(*node).getReputation() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:92 +0x10a github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() @@ -1757,7 +1948,7 @@ Read at 0x00c07fa6e6b0 by goroutine 54: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c07fa6e6b0 by goroutine 870: +Previous write at 0x00c065792ff0 by goroutine 846: github.com/ChainSafe/gossamer/dot/peerset.(*node).addReputation() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:96 +0x1f0 github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).addReputation() @@ -1785,7 +1976,7 @@ Goroutine 54 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 870 (running) created at: +Goroutine 846 (running) created at: github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x170 github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() @@ -1795,7 +1986,7 @@ Goroutine 870 (running) created at: github.com/ChainSafe/gossamer/dot/network.(*Service).Start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x788 + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 testing.tRunner() @@ -1803,41 +1994,101 @@ Goroutine 870 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 ================== +2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60534/p2p/12D3KooWCjpj5fDQxbmyK1ermEon9L4Bnd6PtpTPrVKm8SfSaw7h pkg=network +=== CONT TestPeerReputation + testing.go:1152: race detected during execution of test +--- FAIL: TestPeerReputation (1.94s) +=== CONT TestStartService +2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60535/p2p/12D3KooWStzVmgNeF3GUy1WStsfTbNZ2YZ4qFvSnH66K1hmYGCnb pkg=network +2021-12-07T14:26:05-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStartService3976781647/001/TestStartService/node/node.key pkg=network +2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers102499482/003/TestMinPeers/nodeB/node.key pkg=network +2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60536/p2p/12D3KooWMhP2FA9j9meaVBoCv4zKrbK5hWBQXotmRknccuBJWnyJ pkg=network +2021-12-07T14:26:05-04:00 DBUG connection successful with peer 12D3KooWJPsv2Tyha3gGiLxrmZbw9jdFWQgx9AJWDhv8PHoQ7TPg pkg=network +2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:05-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60537/p2p/12D3KooWG6dKYvHvtM6uwnAsTgZ3LG26gnzZJRd49siBPp7YC9vL pkg=network +2021-12-07T14:26:05-04:00 DBUG bootstrapping to peer 12D3KooWLLE7thnZ3bKqEmjm9zkjFKn5nwgRaYhCyLMZtvkcDxBZ pkg=network +2021-12-07T14:26:05-04:00 DBUG bootstrapping to peer 12D3KooWPcmHB9uVKBEFkmAnxBKEho5DPBkphA66QxZEo4akS1SN pkg=network +2021-12-07T14:26:05-04:00 DBUG connection successful with peer 12D3KooWLLE7thnZ3bKqEmjm9zkjFKn5nwgRaYhCyLMZtvkcDxBZ pkg=network +2021-12-07T14:26:05-04:00 DBUG connection successful with peer 12D3KooWPcmHB9uVKBEFkmAnxBKEho5DPBkphA66QxZEo4akS1SN pkg=network +2021-12-07T14:26:06-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:06-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/004/TestMaxPeers/node3/node.key pkg=network +2021-12-07T14:26:06-04:00 WARN min peers higher than max peers; setting to default pkg=network +2021-12-07T14:26:06-04:00 DBUG connection dropped successfully for peer 12D3KooWFrMTXo6H5fyVRbgRHRvsrAQotH3DHAwsPKdmwKrcjmNG pkg=network +=== CONT TestMaxPeers + connmgr_test.go:73: + Error Trace: service_test.go:102 + connmgr_test.go:73 + Error: Received unexpected error: + open /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/004/TestMaxPeers/node3/libp2p-datastore: too many open files + While opening directory: /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/004/TestMaxPeers/node3/libp2p-datastore. + github.com/dgraph-io/badger/v2.syncDir + /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/dir_unix.go:109 + github.com/dgraph-io/badger/v2.helpRewrite + /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/manifest.go:294 + github.com/dgraph-io/badger/v2.helpOpenOrCreateManifestFile + /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/manifest.go:147 + github.com/dgraph-io/badger/v2.openOrCreateManifestFile + /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/manifest.go:127 + github.com/dgraph-io/badger/v2.Open + /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/db.go:283 + github.com/ipfs/go-ds-badger2.NewDatastore + /Users/eclesiojunior/go/pkg/mod/github.com/ipfs/go-ds-badger2@v0.1.1/datastore.go:150 + github.com/ChainSafe/gossamer/dot/network.newHost + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host.go:132 + github.com/ChainSafe/gossamer/dot/network.NewService + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:130 + github.com/ChainSafe/gossamer/dot/network.createTestService + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:101 + github.com/ChainSafe/gossamer/dot/network.TestMaxPeers + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:73 + testing.tRunner + /usr/local/go/src/testing/testing.go:1259 + runtime.goexit + /usr/local/go/src/runtime/asm_amd64.s:1581 + Test: TestMaxPeers +2021-12-07T14:26:06-04:00 DBUG connection successful with peer 12D3KooWFrMTXo6H5fyVRbgRHRvsrAQotH3DHAwsPKdmwKrcjmNG pkg=network +2021-12-07T14:26:06-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:26:06-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network + testing.go:1152: race detected during execution of test +--- FAIL: TestMaxPeers (2.59s) +=== CONT TestHandleBlockAnnounceMessage +2021-12-07T14:26:06-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleBlockAnnounceMessage2619289495/001/TestHandleBlockAnnounceMessage/nodeA/node.key pkg=network +2021-12-07T14:26:06-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:06-04:00 DBUG connection dropped successfully for peer 12D3KooWLLE7thnZ3bKqEmjm9zkjFKn5nwgRaYhCyLMZtvkcDxBZ pkg=network +--- PASS: TestStartService (0.79s) +=== CONT TestDecodeBlockAnnounceHandshake +=== CONT TestBroadcastMessages +--- PASS: TestDecodeBlockAnnounceHandshake (0.00s) ================== WARNING: DATA RACE -Write at 0x00c02970ff90 by goroutine 54: - runtime.closechan() - /usr/local/go/src/runtime/chan.go:355 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e - github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 - github.com/ChainSafe/gossamer/dot/network.createTestService.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a - testing.(*common).Cleanup.func1() - /usr/local/go/src/testing/testing.go:912 +0x199 - testing.(*common).runCleanup() - /usr/local/go/src/testing/testing.go:1049 +0x154 - testing.tRunner.func2() - /usr/local/go/src/testing/testing.go:1253 +0x4f +Write at 0x00c0657f4258 by goroutine 87: + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:248 +0xe8b testing.tRunner() - /usr/local/go/src/testing/testing.go:1265 +0x268 + /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous read at 0x00c02970ff90 by goroutine 762: - runtime.chansend() - /usr/local/go/src/runtime/chan.go:158 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Incoming() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:86 +0xc4 - github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:435 +0xfb - github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:433 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Swarm).addConn·dwrap·13() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm.go:285 +0x58 +Previous read at 0x00c0657f4258 by goroutine 664: + github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:285 +0x3b2 + github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 -Goroutine 54 (running) created at: +Goroutine 87 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -1853,153 +2104,37 @@ Goroutine 54 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 762 (finished) created at: - github.com/libp2p/go-libp2p-swarm.(*Swarm).addConn() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm.go:285 +0x85b - github.com/libp2p/go-libp2p-swarm.(*Swarm).dialWorkerLoop() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_dial.go:518 +0x91a - github.com/libp2p/go-libp2p-swarm.(*Swarm).startDialWorker·dwrap·33() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_dial.go:303 +0x8b +Goroutine 664 (finished) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0x467 + github.com/ChainSafe/gossamer/dot/network.(*Service).GossipMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:530 +0x3d9 + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:241 +0xd56 + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 ================== -=== CONT TestPeerReputation - testing.go:1152: race detected during execution of test -=== CONT Test_RemoveReservedPeers ---- FAIL: TestPeerReputation (1.79s) -2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers1059118220/001/Test_RemoveReservedPeers/nodeA/node.key pkg=network -2021-12-07T14:13:26-04:00 WARN failed to open connection for peer 12D3KooWBJHdzccFeVkfDnE9GbDLSbYX4nQdVs88ZnDERttMuz2F: context canceled pkg=network -2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:26-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:26-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59970/p2p/12D3KooWEfBTpADoNg2BGu6XmFZZP1h1ktVzKnp7mpZaoUQR6Bug pkg=network -=== CONT TestMDNS - testing.go:1152: race detected during execution of test ---- FAIL: TestMDNS (2.67s) -=== CONT Test_AddReservedPeers -2021-12-07T14:13:26-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:26-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers3019080761/001/Test_AddReservedPeers/nodeA/node.key pkg=network -2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect2272658741/002/TestPeerConnect/nodeB/node.key pkg=network -2021-12-07T14:13:26-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF2184255775/002/TestStreamCloseEOF/nodeB/node.key pkg=network -2021-12-07T14:13:26-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:13:26-04:00 DBUG starting DHT with bootnodes [{12D3KooWGS94dWHgoBP255gJjsLJeMF2zs4DEyQBGxVwzDfESANJ: [/ip4/127.0.0.1/tcp/59945]}]... pkg=network -2021-12-07T14:13:26-04:00 DBUG advertising ourselves in the DHT... pkg=network -=== CONT TestMessageCache - testing.go:1152: race detected during execution of test ---- FAIL: TestMessageCache (3.52s) -=== CONT TestDecodeBlockAnnounceHandshake -=== CONT TestExistingStream ---- PASS: TestDecodeBlockAnnounceHandshake (0.00s) -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59971/p2p/12D3KooWMtoCzQeKfpbQAJrMcMXc1DBjpwUuRTTxWdzkh17XtXGc pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59973/p2p/12D3KooWLjKxsGnKz4DZB2nAHA1jHJeBFD5SjhKGzLdEpzWZDTak pkg=network -2021-12-07T14:13:27-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream2911109839/001/TestExistingStream/nodeA/node.key pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59972/p2p/12D3KooWLNa524KNkf42uVs8yp7PruowNzquhkmdGH6fyX84gXWX pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59974/p2p/12D3KooWCc17BmNyhPGe31EZXf35tcNpGWgxqtm7T55Yk7hNB3mM pkg=network -2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers1059118220/002/Test_RemoveReservedPeers/nodeB/node.key pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59975/p2p/12D3KooWGu8AWay6zLia1uzuYfB7D26dDszmfCrmiXBS2EUeZbQf pkg=network -2021-12-07T14:13:27-04:00 DBUG connection successful with peer 12D3KooWEYM5y7VDXxvcG1smx21vh4WVwaizcKFKs6ZcB8zVAj42 pkg=network -2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers3019080761/002/Test_AddReservedPeers/nodeB/node.key pkg=network -2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 DBUG connection successful with peer 12D3KooWLNa524KNkf42uVs8yp7PruowNzquhkmdGH6fyX84gXWX pkg=network -2021-12-07T14:13:27-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream2911109839/002/TestExistingStream/nodeB/node.key pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59977/p2p/12D3KooWBfojy8rAzuuG6BtFLRUk7f3uixk1qvrR7eDZ2XUKLcNq pkg=network -2021-12-07T14:13:27-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestPeerConnect - testing.go:1152: race detected during execution of test -=== CONT Test_PeerSupportsProtocol ---- FAIL: TestPeerConnect (1.86s) -2021-12-07T14:13:27-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:13:27-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T14:13:27-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol1347414038/001/Test_PeerSupportsProtocol/nodeA/node.key pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:27-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:27-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59978/p2p/12D3KooWMTXhcor5cm3UtSjnCyzH8zFUYweTtyk1ZuGAKhkDjv1X pkg=network -2021-12-07T14:13:28-04:00 DBUG connection successful with peer 12D3KooWGu8AWay6zLia1uzuYfB7D26dDszmfCrmiXBS2EUeZbQf pkg=network -2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:28-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59979/p2p/12D3KooWNGsy2pRP3LaHwoi1KYw1iuRf19RXAQrKqfenLXMHJgNT pkg=network -=== CONT TestBannedPeer - testing.go:1152: race detected during execution of test -=== CONT TestStreamCloseMetadataCleanup ---- FAIL: TestBannedPeer (4.97s) -2021-12-07T14:13:28-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:28-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup3256162339/001/TestStreamCloseMetadataCleanup/nodeA/node.key pkg=network ---- PASS: Test_RemoveReservedPeers (1.79s) -=== CONT TestBootstrap -2021-12-07T14:13:28-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap3693479406/001/TestBootstrap/nodeA/node.key pkg=network -2021-12-07T14:13:28-04:00 DBUG connection successful with peer 12D3KooWBfojy8rAzuuG6BtFLRUk7f3uixk1qvrR7eDZ2XUKLcNq pkg=network -2021-12-07T14:13:28-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:28-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59981/p2p/12D3KooWKr7iq89unYBqW11k7rJFt7a1DNjmWGbU3hCCiYSza9zJ pkg=network -2021-12-07T14:13:28.522-0400 ERROR peerstore/ds pstoreds/keybook.go:65 error when fetching pubkey from datastore for peer 12D3KooWMtoCzQeKfpbQAJrMcMXc1DBjpwUuRTTxWdzkh17XtXGc: datastore closed - -2021-12-07T14:13:28.522-0400 ERROR peerstore/ds pstoreds/keybook.go:85 error while updating pubkey in datastore for peer 12D3KooWMtoCzQeKfpbQAJrMcMXc1DBjpwUuRTTxWdzkh17XtXGc: datastore closed - -2021-12-07T14:13:28-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:28-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:28-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59982/p2p/12D3KooWRmDfUyKwNFTkQQNpsdRE8Q21mSbSRD9aiR72the2xrua pkg=network -2021-12-07T14:13:28-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol1347414038/002/Test_PeerSupportsProtocol/nodeB/node.key pkg=network ---- PASS: Test_AddReservedPeers (1.91s) -=== CONT TestKadDHT -2021-12-07T14:13:28-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT405768787/001/TestKadDHT/node0/node.key pkg=network -2021-12-07T14:13:28-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestBeginDiscovery_ThreeNodes - testing.go:1152: race detected during execution of test ---- FAIL: TestBeginDiscovery_ThreeNodes (6.90s) -=== CONT TestExternalAddrs -2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup3256162339/002/TestStreamCloseMetadataCleanup/nodeB/node.key pkg=network -2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrs2400874626/001/TestExternalAddrs/node/node.key pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59984/p2p/12D3KooWLP2jh5NMPRYb7t3DBwhWB3v7nL1nsMhHH6CoR5mjWWEv pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59983/p2p/12D3KooWANZeVoGirdBVW7x8AuVy3Y9asB8RKZFTsiXeQ2etD3Sk pkg=network -2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap3693479406/002/TestBootstrap/nodeB/node.key pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59985/p2p/12D3KooWFDZ5VvnUpRFMxFiYLs1ezhk756H3RndCfymFKph6R2au pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59986/p2p/12D3KooWR96FutV7e34ffJ8L1QEGKypxPNg41CKfij4Hv4VqW6Nq pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59987/p2p/12D3KooWQiS5E4dnx98557Z1XWMmCTFQFd6Fp2hX9WVKrxMqdVsF pkg=network -2021-12-07T14:13:29-04:00 DBUG bootstrapping to peer 12D3KooWRmDfUyKwNFTkQQNpsdRE8Q21mSbSRD9aiR72the2xrua pkg=network -2021-12-07T14:13:29-04:00 DBUG connection successful with peer 12D3KooWRmDfUyKwNFTkQQNpsdRE8Q21mSbSRD9aiR72the2xrua pkg=network -2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT405768787/002/TestKadDHT/node1/node.key pkg=network +2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:26:06-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages529829691/001/TestBroadcastMessages/nodeA/node.key pkg=network +2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network ================== WARNING: DATA RACE -Read at 0x00c011d60c00 by goroutine 46: +Read at 0x00c021dadf20 by goroutine 87: runtime.mapaccess1_faststr() /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcbc + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf78 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c011d60c00 by goroutine 760: +Previous write at 0x00c021dadf20 by goroutine 254: runtime.mapassign_faststr() /usr/local/go/src/runtime/map_faststr.go:202 +0x0 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() @@ -2017,7 +2152,7 @@ Previous write at 0x00c011d60c00 by goroutine 760: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 46 (running) created at: +Goroutine 87 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -2033,7 +2168,7 @@ Goroutine 46 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 760 (running) created at: +Goroutine 254 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -2043,15 +2178,15 @@ Goroutine 760 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c07c216348 by goroutine 46: - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcc9 +Read at 0x00c02a16b108 by goroutine 87: + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf85 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c07c216348 by goroutine 760: +Previous write at 0x00c02a16b108 by goroutine 254: github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() @@ -2067,7 +2202,7 @@ Previous write at 0x00c07c216348 by goroutine 760: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 46 (running) created at: +Goroutine 87 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -2083,7 +2218,7 @@ Goroutine 46 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 760 (running) created at: +Goroutine 254 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -2091,74 +2226,78 @@ Goroutine 760 (running) created at: github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:29-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59988/p2p/12D3KooWFSj8LWMxYmWLGtM2kTn8c1TzRQ1jM2Mj2sKMeHjy8cLq pkg=network -2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:29-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT Test_PeerSupportsProtocol - testing.go:1152: race detected during execution of test -=== CONT TestGossip ---- FAIL: Test_PeerSupportsProtocol (1.97s) -=== CONT TestExternalAddrs +2021-12-07T14:26:06-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network +2021-12-07T14:26:06-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:06-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:06-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60539/p2p/12D3KooWDpjvuBferNGgUZNyevbfWvDgkwtAecw9k4LqzLwwvbkG pkg=network +=== CONT TestBannedPeer testing.go:1152: race detected during execution of test ---- FAIL: TestExternalAddrs (0.97s) -=== CONT TestBeginDiscovery -2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip895427803/001/TestGossip/nodeA/node.key pkg=network -2021-12-07T14:13:29-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery178887698/001/TestBeginDiscovery/nodeA/node.key pkg=network -=== CONT TestBootstrap +=== CONT Test_HandshakeTimeout testing.go:1152: race detected during execution of test ---- FAIL: TestBootstrap (1.76s) +=== CONT Test_sizedBufferPool +--- FAIL: TestBannedPeer (5.20s) +=== CONT TestEncodeBlockAnnounceHandshake +=== CONT TestBuild +--- PASS: Test_sizedBufferPool (0.00s) +--- FAIL: Test_HandshakeTimeout (13.52s) +=== CONT TestBlockAnnounceHandshakeSize +--- PASS: TestEncodeBlockAnnounceHandshake (0.00s) === CONT TestDecodeBlockAnnounce -=== CONT TestRemovePeer ---- PASS: TestDecodeBlockAnnounce (0.01s) -2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer2125252212/001/TestRemovePeer/nodeA/node.key pkg=network -2021-12-07T14:13:30-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT405768787/003/TestKadDHT/node2/node.key pkg=network -2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:30-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59990/p2p/12D3KooWRDdyRV4NcrUfntZq1HT24endCd24ETZEEpTDxVeM6bgJ pkg=network -2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:30-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59989/p2p/12D3KooWRyuWZXx64qSAJ2P7mn1X6qjEDdart6AFN7Sput3dQ8Ws pkg=network -2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:30-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59991/p2p/12D3KooWG2h62eyKABYVqDte91DXYFSRiCp9nwanNRHhroB6WKei pkg=network -2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:30-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59992/p2p/12D3KooWAZYZffKrZRV1JVFiX8FFRzpu2ZCVFasNAHLFWGprZyAs pkg=network +--- PASS: TestBlockAnnounceHandshakeSize (0.00s) +=== CONT TestValidateBlockAnnounceHandshake +--- PASS: TestDecodeBlockAnnounce (0.00s) +=== CONT TestEncodeBlockAnnounceMessage +--- PASS: TestBuild (0.05s) +--- PASS: TestEncodeBlockAnnounceMessage (0.00s) +=== CONT TestEncodeTransactionMessageSingleExtrinsic +=== CONT TestEncodeBlockResponseMessage_WithAll +--- PASS: TestEncodeTransactionMessageSingleExtrinsic (0.00s) +=== CONT TestEncodeBlockResponseMessage_Empty +--- PASS: TestEncodeBlockResponseMessage_WithAll (0.01s) +--- PASS: TestEncodeBlockResponseMessage_Empty (0.00s) +=== CONT TestEncodeBlockResponseMessage_WithBody +--- PASS: TestEncodeBlockResponseMessage_WithBody (0.00s) +=== CONT TestEncodeBlockRequestMessage_NoOptionals +=== CONT TestBeginDiscovery_ThreeNodes +--- PASS: TestEncodeBlockRequestMessage_NoOptionals (0.00s) +2021-12-07T14:26:06-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestValidateBlockAnnounceHandshake2935554881/001/TestValidateBlockAnnounceHandshake/nodeA/node.key pkg=network +2021-12-07T14:26:06-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:06-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:06-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60540/p2p/12D3KooWNqugDjzAoN2zsAcKanwnwLpKsBQ1ykNmXt2kYyX9b1mq pkg=network +2021-12-07T14:26:06-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes593551894/001/TestBeginDiscovery_ThreeNodes/nodeA/node.key pkg=network ================== WARNING: DATA RACE -Read at 0x00c0993f22d0 by goroutine 46: - runtime.mapaccess1_faststr() - /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1008 +Write at 0x00c056495810 by goroutine 87: + runtime.closechan() + /usr/local/go/src/runtime/chan.go:355 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e + github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 + github.com/ChainSafe/gossamer/dot/network.createTestService.func1() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a + testing.(*common).Cleanup.func1() + /usr/local/go/src/testing/testing.go:912 +0x199 + testing.(*common).runCleanup() + /usr/local/go/src/testing/testing.go:1049 +0x154 + testing.tRunner.func2() + /usr/local/go/src/testing/testing.go:1253 +0x4f testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f + /usr/local/go/src/testing/testing.go:1265 +0x268 testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c0993f22d0 by goroutine 242: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 +Previous read at 0x00c056495810 by goroutine 1216: + runtime.chansend() + /usr/local/go/src/runtime/chan.go:158 +0x0 + github.com/ChainSafe/gossamer/dot/peerset.(*Handler).ReportPeer() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:77 +0xf0 + github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:315 +0x957 + github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 -Goroutine 46 (running) created at: +Goroutine 87 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -2174,27 +2313,94 @@ Goroutine 46 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 242 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 +Goroutine 1216 (finished) created at: + github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0x467 + github.com/ChainSafe/gossamer/dot/network.(*Service).GossipMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:530 +0x3d9 + github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:252 +0xeda + testing.tRunner() + /usr/local/go/src/testing/testing.go:1259 +0x22f + testing.(*T).Run·dwrap·21() + /usr/local/go/src/testing/testing.go:1306 +0x47 ================== +=== CONT TestPersistentPeers + testing.go:1152: race detected during execution of test +--- FAIL: TestPersistentPeers (3.24s) +=== CONT TestRemovePeer +=== CONT TestBroadcastDuplicateMessage + testing.go:1152: race detected during execution of test +=== CONT TestSerivceIsMajorSyncMetrics +--- FAIL: TestBroadcastDuplicateMessage (2.45s) +=== CONT TestMinPeers + testing.go:1152: race detected during execution of test +--- FAIL: TestMinPeers (2.74s) +--- PASS: TestSerivceIsMajorSyncMetrics (0.00s) +2021-12-07T14:26:07-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer572055684/001/TestRemovePeer/nodeA/node.key pkg=network +2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:07-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60541/p2p/12D3KooWJfjCmpnZHwuaxbfyBr2Bk7WKQa3wpFudrFM3j4BPgz5p pkg=network +2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:07-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60542/p2p/12D3KooWKuR5DnN8k2H62oAAxKobd7j8tBT3rkzGucx9k5vdFuv5 pkg=network +2021-12-07T14:26:07-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:07-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60543/p2p/12D3KooWJkAyg5qi1KtDg359mTR3c5Dpz1y6YCGc4AcVm7DKDCWw pkg=network +=== CONT TestHandleBlockAnnounceMessage + testing.go:1152: race detected during execution of test +--- FAIL: TestHandleBlockAnnounceMessage (1.05s) +2021-12-07T14:26:07-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:07-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages529829691/002/TestBroadcastMessages/nodeB/node.key pkg=network +2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:07-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60544/p2p/12D3KooWBVWZzSodSJets1LRYBK3wHHtxoQhfTiJdUzzYXpXfmE1 pkg=network +2021-12-07T14:26:07-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:07-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:07-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes593551894/002/TestBeginDiscovery_ThreeNodes/nodeB/node.key pkg=network +2021-12-07T14:26:07-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +=== CONT TestValidateBlockAnnounceHandshake + testing.go:1152: race detected during execution of test +--- FAIL: TestValidateBlockAnnounceHandshake (0.94s) +2021-12-07T14:26:07-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer572055684/002/TestRemovePeer/nodeB/node.key pkg=network +2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:07-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60545/p2p/12D3KooWNbJ1gGT5DNugwrNmNWvsUVfrtbyWWW8N4C3yBkY3XcXx pkg=network +2021-12-07T14:26:08-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:08-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:08-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60546/p2p/12D3KooWSXScNu7Ld3gwL5gMV4zVaZFvgjipokuyKkavQBuEcDFY pkg=network +2021-12-07T14:26:08-04:00 DBUG bootstrapping to peer 12D3KooWJkAyg5qi1KtDg359mTR3c5Dpz1y6YCGc4AcVm7DKDCWw pkg=network +2021-12-07T14:26:08-04:00 DBUG connection successful with peer 12D3KooWJkAyg5qi1KtDg359mTR3c5Dpz1y6YCGc4AcVm7DKDCWw pkg=network +2021-12-07T14:26:08-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:08-04:00 DBUG gossiping from host 12D3KooWNqugDjzAoN2zsAcKanwnwLpKsBQ1ykNmXt2kYyX9b1mq message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network +2021-12-07T14:26:08-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:08-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes593551894/003/TestBeginDiscovery_ThreeNodes/nodeC/node.key pkg=network +2021-12-07T14:26:08-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network +2021-12-07T14:26:08-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:08-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60548/p2p/12D3KooWPogTnV3D76ntdFNV9emAoSzaXmozBVUVxZBbDS2svwFi pkg=network +2021-12-07T14:26:09-04:00 DBUG connection dropped successfully for peer 12D3KooWJkAyg5qi1KtDg359mTR3c5Dpz1y6YCGc4AcVm7DKDCWw pkg=network +2021-12-07T14:26:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network +2021-12-07T14:26:09-04:00 DBUG starting DHT with bootnodes [{12D3KooWNbJ1gGT5DNugwrNmNWvsUVfrtbyWWW8N4C3yBkY3XcXx: [/ip4/127.0.0.1/tcp/60545]} {12D3KooWPogTnV3D76ntdFNV9emAoSzaXmozBVUVxZBbDS2svwFi: [/ip4/127.0.0.1/tcp/60548]}]... pkg=network +--- PASS: TestRemovePeer (2.35s) ================== WARNING: DATA RACE -Read at 0x00c087c0afa8 by goroutine 46: - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1015 +Read at 0x00c0264be7e0 by goroutine 86: + runtime.mapaccess1_faststr() + /usr/local/go/src/runtime/map_faststr.go:12 +0x0 + github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9a4 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c087c0afa8 by goroutine 242: +Previous write at 0x00c0264be7e0 by goroutine 443: + runtime.mapassign_faststr() + /usr/local/go/src/runtime/map_faststr.go:202 +0x0 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() @@ -2208,7 +2414,7 @@ Previous write at 0x00c087c0afa8 by goroutine 242: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 46 (running) created at: +Goroutine 86 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -2224,7 +2430,7 @@ Goroutine 46 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 242 (running) created at: +Goroutine 443 (running) created at: github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() @@ -2232,87 +2438,33 @@ Goroutine 242 (running) created at: github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== -2021-12-07T14:13:30-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network -2021-12-07T14:13:30-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network -=== CONT TestExistingStream - testing.go:1152: race detected during execution of test -=== CONT TestSetReservedPeer ---- FAIL: TestExistingStream (3.67s) -2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer3019108975/001/TestSetReservedPeer/node0/node.key pkg=network -2021-12-07T14:13:30-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:30-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip895427803/002/TestGossip/nodeB/node.key pkg=network -2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery178887698/002/TestBeginDiscovery/nodeB/node.key pkg=network -2021-12-07T14:13:30-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWKr7iq89unYBqW11k7rJFt7a1DNjmWGbU3hCCiYSza9zJ pkg=network -2021-12-07T14:13:30-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:30-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:30-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer2125252212/002/TestRemovePeer/nodeB/node.key pkg=network -2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:30-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:30-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59993/p2p/12D3KooWRthmCTEVv2Q6Xe3fMh1naV3GyFLWbZdK8UCM38dD3G5v pkg=network -2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:31-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59994/p2p/12D3KooWEamHFCn6pt64yC4uBxSrVjbaBHkZxMDt4oK3dM2Dj7ta pkg=network -2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:31-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59995/p2p/12D3KooWJYWjwcZRSGabLERrfQ3y4SPd7hKNW3y2Gb7Dky66rKY4 pkg=network -2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:31-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59996/p2p/12D3KooWRs5yXnnoGYqrnNFWRT4MnyqB8o23rRGKzV4p6F2cVs3S pkg=network -2021-12-07T14:13:31-04:00 DBUG bootstrapping to peer 12D3KooWG2h62eyKABYVqDte91DXYFSRiCp9nwanNRHhroB6WKei pkg=network -2021-12-07T14:13:31-04:00 DBUG connection successful with peer 12D3KooWG2h62eyKABYVqDte91DXYFSRiCp9nwanNRHhroB6WKei pkg=network -2021-12-07T14:13:31-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:31-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer3019108975/002/TestSetReservedPeer/node1/node.key pkg=network -2021-12-07T14:13:31-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:31-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:31-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59998/p2p/12D3KooWCJhX3eqajv6XKS9gLuMPXBe8BwnffTsN3hjaXXacSg4N pkg=network -2021-12-07T14:13:31-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:31-04:00 DBUG starting DHT with bootnodes [{12D3KooWEamHFCn6pt64yC4uBxSrVjbaBHkZxMDt4oK3dM2Dj7ta: [/ip4/127.0.0.1/tcp/59994]}]... pkg=network -2021-12-07T14:13:31-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip895427803/003/TestGossip/nodeC/node.key pkg=network -2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:31-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:31-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/59999/p2p/12D3KooWNvdCqmee1yea1gVzYqxDkDxso3BQDEe3ySFLPgtSfTqS pkg=network -=== CONT TestStreamCloseMetadataCleanup - testing.go:1152: race detected during execution of test -=== CONT TestPersistentPeers ---- FAIL: TestStreamCloseMetadataCleanup (3.85s) -2021-12-07T14:13:32-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers2702038506/001/TestPersistentPeers/node-a/node.key pkg=network -2021-12-07T14:13:32-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:32-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer3019108975/003/TestSetReservedPeer/node2/node.key pkg=network -2021-12-07T14:13:32-04:00 DBUG connection dropped successfully for peer 12D3KooWG2h62eyKABYVqDte91DXYFSRiCp9nwanNRHhroB6WKei pkg=network -2021-12-07T14:13:32-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:32-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:32-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:32-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60000/p2p/12D3KooWRp6BsCzQ3kjHsEoyWEi6YJEsTEEEToBkrtvJkt5XpDcq pkg=network -2021-12-07T14:13:32-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:32-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:32-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60001/p2p/12D3KooWGJJ6aKHw6dCVRCJxt3h4NBdJFz36reTn5r6WTrewHLbD pkg=network -=== CONT TestGossip - gossip_test.go:93: - Error Trace: gossip_test.go:93 - Error: Received unexpected error: - protocol not supported - Test: TestGossip -2021-12-07T14:13:32-04:00 DBUG cleaning up outbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network -2021-12-07T14:13:32-04:00 DBUG failed to send handshake to peer 12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA on protocol /gossamer/test/0/block-announces/1: handshake timeout reached pkg=network -2021-12-07T14:13:32-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T14:13:32-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network ================== WARNING: DATA RACE -Read at 0x00c0966643e8 by goroutine 51: - github.com/ChainSafe/gossamer/dot/network.TestStreamCloseEOF() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:555 +0xa5e +Read at 0x00c02a16b948 by goroutine 86: + github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9b1 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c0966643e8 by goroutine 267: - [failed to restore the stack] +Previous write at 0x00c02a16b948 by goroutine 443: + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab + github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() + /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 -Goroutine 51 (running) created at: +Goroutine 86 (running) created at: testing.(*T).Run() /usr/local/go/src/testing/testing.go:1306 +0x726 testing.runTests.func1() @@ -2327,61 +2479,37 @@ Goroutine 51 (running) created at: /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 main.main() _testmain.go:205 +0x264 + +Goroutine 443 (running) created at: + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca + github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d + github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 ================== +2021-12-07T14:26:10-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network +2021-12-07T14:26:10-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:26:10-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:26:10-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network +2021-12-07T14:26:10-04:00 DBUG starting DHT with bootnodes [{12D3KooWKuR5DnN8k2H62oAAxKobd7j8tBT3rkzGucx9k5vdFuv5: [/ip4/127.0.0.1/tcp/60542]}]... pkg=network +=== CONT TestBroadcastMessages testing.go:1152: race detected during execution of test ---- FAIL: TestGossip (2.83s) -2021-12-07T14:13:32-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:13:32-04:00 DBUG starting DHT with bootnodes [{12D3KooWRDdyRV4NcrUfntZq1HT24endCd24ETZEEpTDxVeM6bgJ: [/ip4/127.0.0.1/tcp/59990]}]... pkg=network -=== CONT TestRemovePeer - testing.go:1152: race detected during execution of test ---- FAIL: TestRemovePeer (2.63s) -2021-12-07T14:13:32-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:32-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:32-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers2702038506/002/TestPersistentPeers/node-b/node.key pkg=network -2021-12-07T14:13:32-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer3019108975/004/TestSetReservedPeer/node3/node.key pkg=network -2021-12-07T14:13:32-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network -2021-12-07T14:13:32-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network -=== CONT TestStreamCloseEOF - testing.go:1152: race detected during execution of test ---- FAIL: TestStreamCloseEOF (6.85s) -2021-12-07T14:13:33-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:33-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:33-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60002/p2p/12D3KooWPWtE1R97W1qhYe7UCJxsQNbLdqAQJz7FXU9VUEPpFWEr pkg=network -2021-12-07T14:13:33-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:13:33-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:33-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60003/p2p/12D3KooWCnonerXtebvBehM7QNPFpmfnTAaktauJai3CY1Y57RdB pkg=network -2021-12-07T14:13:33-04:00 DBUG connection successful with peer 12D3KooWRp6BsCzQ3kjHsEoyWEi6YJEsTEEEToBkrtvJkt5XpDcq pkg=network -2021-12-07T14:13:33-04:00 DBUG connection successful with peer 12D3KooWRthmCTEVv2Q6Xe3fMh1naV3GyFLWbZdK8UCM38dD3G5v pkg=network -2021-12-07T14:13:33-04:00 DBUG connection successful with peer 12D3KooWCJhX3eqajv6XKS9gLuMPXBe8BwnffTsN3hjaXXacSg4N pkg=network -2021-12-07T14:13:33-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:13:33-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT Test_HandshakeTimeout - testing.go:1152: race detected during execution of test ---- FAIL: Test_HandshakeTimeout (12.75s) -2021-12-07T14:13:33-04:00 DBUG DHT discovery started! pkg=network -=== CONT TestBeginDiscovery - testing.go:1152: race detected during execution of test ---- FAIL: TestBeginDiscovery (3.96s) -2021-12-07T14:13:34-04:00 DBUG connection dropped successfully for peer 12D3KooWPWtE1R97W1qhYe7UCJxsQNbLdqAQJz7FXU9VUEPpFWEr pkg=network -2021-12-07T14:13:34-04:00 DBUG connection successful with peer 12D3KooWPWtE1R97W1qhYe7UCJxsQNbLdqAQJz7FXU9VUEPpFWEr pkg=network -2021-12-07T14:13:34-04:00 DBUG connection successful with peer 12D3KooWGJJ6aKHw6dCVRCJxt3h4NBdJFz36reTn5r6WTrewHLbD pkg=network -=== CONT TestSetReservedPeer - testing.go:1152: race detected during execution of test ---- FAIL: TestSetReservedPeer (4.04s) -=== CONT TestPersistentPeers - testing.go:1152: race detected during execution of test ---- FAIL: TestPersistentPeers (2.75s) -2021-12-07T14:13:39-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T14:13:39-04:00 DBUG starting DHT with bootnodes [{12D3KooWAZYZffKrZRV1JVFiX8FFRzpu2ZCVFasNAHLFWGprZyAs: [/ip4/127.0.0.1/tcp/59992]}]... pkg=network -2021-12-07T14:13:40-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T14:13:40-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:13:40-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T14:13:40-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network -2021-12-07T14:13:40-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T14:13:40-04:00 DBUG starting DHT with bootnodes [{12D3KooWLP2jh5NMPRYb7t3DBwhWB3v7nL1nsMhHH6CoR5mjWWEv: [/ip4/127.0.0.1/tcp/59984]}]... pkg=network +--- FAIL: TestBroadcastMessages (3.87s) +2021-12-07T14:26:10-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T14:26:10-04:00 DBUG starting DHT with bootnodes [{12D3KooWPWuNizWj3b9VuvYEzvLLtgvBBkhtg6Q6bThgVRptCZv1: [/ip4/127.0.0.1/tcp/60512]}]... pkg=network +2021-12-07T14:26:11-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:26:11-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T14:26:11-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:26:11-04:00 DBUG starting DHT with bootnodes [{12D3KooWKuR5DnN8k2H62oAAxKobd7j8tBT3rkzGucx9k5vdFuv5: [/ip4/127.0.0.1/tcp/60542]}]... pkg=network +2021-12-07T14:26:11-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:26:11-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:26:11-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network +2021-12-07T14:26:11-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T14:26:11-04:00 DBUG starting DHT with bootnodes [{12D3KooWAMjrqHWAwXEWL1WrvUJj3Sr6rhL9Yyk4brS2vq2CrFuF: [/ip4/127.0.0.1/tcp/60503]}]... pkg=network ================== WARNING: DATA RACE -Read at 0x00c03aee0990 by goroutine 37: +Read at 0x00c02331ee90 by goroutine 37: github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x264 testing.tRunner() @@ -2389,7 +2517,7 @@ Read at 0x00c03aee0990 by goroutine 37: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Previous write at 0x00c03aee0990 by goroutine 820: +Previous write at 0x00c02331ee90 by goroutine 1067: github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:108 +0x6b2 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() @@ -2411,7 +2539,7 @@ Goroutine 37 (running) created at: main.main() _testmain.go:205 +0x264 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2423,11 +2551,11 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2b402a0 by goroutine 401: +Read at 0x00c063d2bc70 by goroutine 460: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x111 -Previous write at 0x00c0d2b402a0 by goroutine 820: +Previous write at 0x00c063d2bc70 by goroutine 1067: github.com/libp2p/go-libp2p-kad-dht/dual.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:139 +0x93d github.com/ChainSafe/gossamer/dot/network.(*discovery).start() @@ -2435,7 +2563,7 @@ Previous write at 0x00c0d2b402a0 by goroutine 820: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 401 (running) created at: +Goroutine 460 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2445,7 +2573,7 @@ Goroutine 401 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2457,7 +2585,7 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2ab9500 by goroutine 401: +Read at 0x00c05f038000 by goroutine 460: github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindLocal() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:714 +0x5d github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() @@ -2465,7 +2593,7 @@ Read at 0x00c0d2ab9500 by goroutine 401: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0d2ab9500 by goroutine 820: +Previous write at 0x00c05f038000 by goroutine 1067: github.com/libp2p/go-libp2p-kad-dht.makeDHT() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 github.com/libp2p/go-libp2p-kad-dht.New() @@ -2477,7 +2605,7 @@ Previous write at 0x00c0d2ab9500 by goroutine 820: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 401 (running) created at: +Goroutine 460 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2487,7 +2615,7 @@ Goroutine 401 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2499,21 +2627,31 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2b402a8 by goroutine 780: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x115 +Read at 0x00c05f038058 by goroutine 460: + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0d2b402a8 by goroutine 820: +Previous write at 0x00c05f038058 by goroutine 1067: + github.com/libp2p/go-libp2p-kad-dht.makeDHT() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + github.com/libp2p/go-libp2p-kad-dht.New() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:139 +0x93d + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 780 (running) created at: +Goroutine 460 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2521,7 +2659,7 @@ Goroutine 780 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2533,29 +2671,31 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2ce2000 by goroutine 780: - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindLocal() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:714 +0x5d +Read at 0x00c05f038930 by goroutine 460: + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:625 +0x1b1 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0d2ce2000 by goroutine 820: +Previous write at 0x00c05f038930 by goroutine 1067: github.com/libp2p/go-libp2p-kad-dht.makeDHT() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 780 (running) created at: +Goroutine 460 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2563,7 +2703,7 @@ Goroutine 780 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2575,9 +2715,11 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2ab9558 by goroutine 401: +Read at 0x00c059fa4318 by goroutine 460: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() @@ -2585,9 +2727,13 @@ Read at 0x00c0d2ab9558 by goroutine 401: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0d2ab9558 by goroutine 820: +Previous write at 0x00c059fa4318 by goroutine 1067: + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() @@ -2597,7 +2743,7 @@ Previous write at 0x00c0d2ab9558 by goroutine 820: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 401 (running) created at: +Goroutine 460 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2607,7 +2753,7 @@ Goroutine 401 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2619,31 +2765,37 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2ce2058 by goroutine 780: +Read at 0x00c059fa4360 by goroutine 460: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:394 +0xde github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0d2ce2058 by goroutine 820: +Previous write at 0x00c059fa4360 by goroutine 1067: + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 780 (running) created at: +Goroutine 460 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2651,7 +2803,7 @@ Goroutine 780 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2663,31 +2815,37 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2ce2930 by goroutine 780: +Read at 0x00c059fa4378 by goroutine 460: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:399 +0x148 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0d2ce2930 by goroutine 820: +Previous write at 0x00c059fa4378 by goroutine 1067: + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 780 (running) created at: +Goroutine 460 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2695,7 +2853,7 @@ Goroutine 780 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2707,21 +2865,21 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2aba258 by goroutine 780: +Read at 0x00c059f94e98 by goroutine 460: github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2ab github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0d2aba258 by goroutine 820: +Previous write at 0x00c059f94e98 by goroutine 1067: github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1c4 github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() @@ -2729,15 +2887,15 @@ Previous write at 0x00c0d2aba258 by goroutine 820: github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 780 (running) created at: +Goroutine 460 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2745,7 +2903,7 @@ Goroutine 780 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2757,9 +2915,11 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2ab9e30 by goroutine 401: +Read at 0x00c059f94e90 by goroutine 460: + github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2cb github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() @@ -2767,9 +2927,15 @@ Read at 0x00c0d2ab9e30 by goroutine 401: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0d2ab9e30 by goroutine 820: +Previous write at 0x00c059f94e90 by goroutine 1067: + github.com/libp2p/go-libp2p-kbucket.newBucket() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x12a + github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad + github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() @@ -2779,7 +2945,7 @@ Previous write at 0x00c0d2ab9e30 by goroutine 820: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 401 (running) created at: +Goroutine 460 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2789,7 +2955,7 @@ Goroutine 401 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2801,9 +2967,13 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2aba198 by goroutine 401: +Read at 0x00c05f02afe8 by goroutine 460: + container/list.(*List).Front() + /usr/local/go/src/container/list/list.go:70 +0x57 + github.com/libp2p/go-libp2p-kbucket.(*peerDistanceSorter).appendPeersFromList() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/sorting.go:40 +0x69 github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2e4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() @@ -2813,9 +2983,15 @@ Read at 0x00c0d2aba198 by goroutine 401: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b -Previous write at 0x00c0d2aba198 by goroutine 820: +Previous write at 0x00c05f02afe8 by goroutine 1067: + container/list.(*List).Init() + /usr/local/go/src/container/list/list.go:57 +0x113 + container/list.New() + /usr/local/go/src/container/list/list.go:62 +0x96 + github.com/libp2p/go-libp2p-kbucket.newBucket() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x121 github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() @@ -2829,7 +3005,7 @@ Previous write at 0x00c0d2aba198 by goroutine 820: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 401 (running) created at: +Goroutine 460 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2839,7 +3015,7 @@ Goroutine 401 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2851,37 +3027,21 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2aba1e0 by goroutine 401: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:394 +0xde - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b +Read at 0x00c063d2bc78 by goroutine 1250: + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x115 -Previous write at 0x00c0d2aba1e0 by goroutine 820: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 +Previous write at 0x00c063d2bc78 by goroutine 1067: github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:139 +0x93d github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 401 (running) created at: +Goroutine 1250 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2889,7 +3049,7 @@ Goroutine 401 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2901,37 +3061,29 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2aba1f8 by goroutine 401: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:399 +0x148 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 +Read at 0x00c054d9aa80 by goroutine 1250: + github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindLocal() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:714 +0x5d github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:625 +0x1b1 + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 -Previous write at 0x00c0d2aba1f8 by goroutine 820: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 +Previous write at 0x00c054d9aa80 by goroutine 1067: github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:278 +0x4d7 github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 401 (running) created at: +Goroutine 1250 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2939,7 +3091,7 @@ Goroutine 401 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -2951,37 +3103,31 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2ae81e8 by goroutine 401: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2ab +Read at 0x00c054d9aad8 by goroutine 1250: github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 -Previous write at 0x00c0d2ae81e8 by goroutine 820: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1c4 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 +Previous write at 0x00c054d9aad8 by goroutine 1067: github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 401 (running) created at: +Goroutine 1250 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -2989,7 +3135,7 @@ Goroutine 401 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -3001,39 +3147,31 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2ae81e0 by goroutine 401: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2cb +Read at 0x00c054d9b3b0 by goroutine 1250: github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 -Previous write at 0x00c0d2ae81e0 by goroutine 820: - github.com/libp2p/go-libp2p-kbucket.newBucket() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x12a - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 +Previous write at 0x00c054d9b3b0 by goroutine 1067: github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 401 (running) created at: +Goroutine 1250 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -3041,7 +3179,7 @@ Goroutine 401 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -3053,31 +3191,21 @@ Goroutine 820 (running) created at: ================== ================== WARNING: DATA RACE -Read at 0x00c0d2ae3b28 by goroutine 401: - container/list.(*List).Front() - /usr/local/go/src/container/list/list.go:70 +0x57 - github.com/libp2p/go-libp2p-kbucket.(*peerDistanceSorter).appendPeersFromList() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/sorting.go:40 +0x69 +Read at 0x00c059e8dd58 by goroutine 1250: github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2e4 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b + github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 -Previous write at 0x00c0d2ae3b28 by goroutine 820: - container/list.(*List).Init() - /usr/local/go/src/container/list/list.go:57 +0x113 - container/list.New() - /usr/local/go/src/container/list/list.go:62 +0x96 - github.com/libp2p/go-libp2p-kbucket.newBucket() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x121 +Previous write at 0x00c059e8dd58 by goroutine 1067: github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 github.com/libp2p/go-libp2p-kad-dht.makeDHT() @@ -3085,15 +3213,15 @@ Previous write at 0x00c0d2ae3b28 by goroutine 820: github.com/libp2p/go-libp2p-kad-dht.New() /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 github.com/ChainSafe/gossamer/dot/network.(*discovery).start() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 -Goroutine 401 (running) created at: +Goroutine 1250 (running) created at: github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 + /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 testing.tRunner() @@ -3101,7 +3229,7 @@ Goroutine 401 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 -Goroutine 820 (running) created at: +Goroutine 1067 (running) created at: github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 github.com/ChainSafe/gossamer/dot/network.TestKadDHT() @@ -3111,15 +3239,19 @@ Goroutine 820 (running) created at: testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 ================== -2021-12-07T14:13:41-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:13:41-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T14:13:50-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T14:13:50-04:00 DBUG starting DHT with bootnodes [{12D3KooWLP2jh5NMPRYb7t3DBwhWB3v7nL1nsMhHH6CoR5mjWWEv: [/ip4/127.0.0.1/tcp/59984]}]... pkg=network -2021-12-07T14:13:51-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:13:51-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:26:12-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:26:12-04:00 DBUG advertising ourselves in the DHT... pkg=network +2021-12-07T14:26:12-04:00 DBUG DHT discovery started! pkg=network +2021-12-07T14:26:12-04:00 DBUG advertising ourselves in the DHT... pkg=network +=== CONT TestBeginDiscovery_ThreeNodes + testing.go:1152: race detected during execution of test +--- FAIL: TestBeginDiscovery_ThreeNodes (6.07s) +2021-12-07T14:26:21-04:00 DBUG no peers yet, waiting to start DHT... pkg=network +2021-12-07T14:26:21-04:00 DBUG starting DHT with bootnodes [{12D3KooWAMjrqHWAwXEWL1WrvUJj3Sr6rhL9Yyk4brS2vq2CrFuF: [/ip4/127.0.0.1/tcp/60503]}]... pkg=network +2021-12-07T14:26:22-04:00 DBUG DHT discovery started! pkg=network === CONT TestKadDHT testing.go:1152: race detected during execution of test ---- FAIL: TestKadDHT (22.76s) +--- FAIL: TestKadDHT (22.49s) FAIL -FAIL github.com/ChainSafe/gossamer/dot/network 34.988s +FAIL github.com/ChainSafe/gossamer/dot/network 31.050s FAIL From 04b417a8af808bd78d1785503a82960cc07a83e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20Junior?= Date: Tue, 7 Dec 2021 15:55:58 -0400 Subject: [PATCH 08/35] chore: remove unused comment Co-authored-by: Quentin McGaw --- lib/utils/test_utils.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/utils/test_utils.go b/lib/utils/test_utils.go index a25afd33f4..b4b9edfe46 100644 --- a/lib/utils/test_utils.go +++ b/lib/utils/test_utils.go @@ -37,8 +37,6 @@ func NewTestBasePath(t *testing.T, name string) string { t.Helper() basepathTmp := path.Join(t.TempDir(), t.Name(), name) - // create the subdirectories all the subdirectories - // os.MkdirAll is equivalent to mkdir -p /dir/subdir1/subdir2 err := os.MkdirAll(basepathTmp, os.ModePerm) require.NoError(t, err) From 9fa0bf06fdedc1165c730d5f726bd3a8e2167626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Thu, 9 Dec 2021 09:10:49 -0400 Subject: [PATCH 09/35] chore: remove test log --- test.log | 3257 ------------------------------------------------------ 1 file changed, 3257 deletions(-) delete mode 100644 test.log diff --git a/test.log b/test.log deleted file mode 100644 index 8a1237f9d5..0000000000 --- a/test.log +++ /dev/null @@ -1,3257 +0,0 @@ -=== RUN TestEncodeBlockAnnounce -=== PAUSE TestEncodeBlockAnnounce -=== RUN TestDecodeBlockAnnounce -=== PAUSE TestDecodeBlockAnnounce -=== RUN TestEncodeBlockAnnounceHandshake -=== PAUSE TestEncodeBlockAnnounceHandshake -=== RUN TestDecodeBlockAnnounceHandshake -=== PAUSE TestDecodeBlockAnnounceHandshake -=== RUN TestHandleBlockAnnounceMessage -=== PAUSE TestHandleBlockAnnounceMessage -=== RUN TestValidateBlockAnnounceHandshake -=== PAUSE TestValidateBlockAnnounceHandshake -=== RUN TestBuildIdentity -=== PAUSE TestBuildIdentity -=== RUN TestBuild -=== PAUSE TestBuild -=== RUN TestMinPeers -=== PAUSE TestMinPeers -=== RUN TestMaxPeers -=== PAUSE TestMaxPeers -=== RUN TestProtectUnprotectPeer -=== PAUSE TestProtectUnprotectPeer -=== RUN TestPersistentPeers -=== PAUSE TestPersistentPeers -=== RUN TestRemovePeer -=== PAUSE TestRemovePeer -=== RUN TestSetReservedPeer -=== PAUSE TestSetReservedPeer -=== RUN TestKadDHT -=== PAUSE TestKadDHT -=== RUN TestBeginDiscovery -=== PAUSE TestBeginDiscovery -=== RUN TestBeginDiscovery_ThreeNodes -=== PAUSE TestBeginDiscovery_ThreeNodes -=== RUN TestGossip -=== PAUSE TestGossip -=== RUN TestExternalAddrs -=== PAUSE TestExternalAddrs -=== RUN TestExternalAddrsPublicIP -=== PAUSE TestExternalAddrsPublicIP -=== RUN TestConnect -=== PAUSE TestConnect -=== RUN TestBootstrap -=== PAUSE TestBootstrap -=== RUN TestSend -=== PAUSE TestSend -=== RUN TestExistingStream -=== PAUSE TestExistingStream -=== RUN TestStreamCloseMetadataCleanup -=== PAUSE TestStreamCloseMetadataCleanup -=== RUN Test_PeerSupportsProtocol -=== PAUSE Test_PeerSupportsProtocol -=== RUN Test_AddReservedPeers -=== PAUSE Test_AddReservedPeers -=== RUN Test_RemoveReservedPeers -=== PAUSE Test_RemoveReservedPeers -=== RUN TestStreamCloseEOF -=== PAUSE TestStreamCloseEOF -=== RUN TestPeerConnect -=== PAUSE TestPeerConnect -=== RUN TestBannedPeer -=== PAUSE TestBannedPeer -=== RUN TestPeerReputation -=== PAUSE TestPeerReputation -=== RUN TestEncodeLightRequest -=== PAUSE TestEncodeLightRequest -=== RUN TestEncodeLightResponse -=== PAUSE TestEncodeLightResponse -=== RUN TestDecodeLightMessage -=== PAUSE TestDecodeLightMessage -=== RUN TestHandleLightMessage_Response -=== PAUSE TestHandleLightMessage_Response -=== RUN TestMDNS -=== PAUSE TestMDNS -=== RUN TestMessageCache -=== PAUSE TestMessageCache -=== RUN TestMessageCacheError -=== PAUSE TestMessageCacheError -=== RUN TestEncodeBlockRequestMessage -=== PAUSE TestEncodeBlockRequestMessage -=== RUN TestEncodeBlockRequestMessage_BlockHash -=== PAUSE TestEncodeBlockRequestMessage_BlockHash -=== RUN TestEncodeBlockRequestMessage_BlockNumber -=== PAUSE TestEncodeBlockRequestMessage_BlockNumber -=== RUN TestBlockRequestString -=== PAUSE TestBlockRequestString -=== RUN TestEncodeBlockRequestMessage_NoOptionals -=== PAUSE TestEncodeBlockRequestMessage_NoOptionals -=== RUN TestEncodeBlockResponseMessage_Empty -=== PAUSE TestEncodeBlockResponseMessage_Empty -=== RUN TestEncodeBlockResponseMessage_WithBody -=== PAUSE TestEncodeBlockResponseMessage_WithBody -=== RUN TestEncodeBlockResponseMessage_WithAll -=== PAUSE TestEncodeBlockResponseMessage_WithAll -=== RUN TestEncodeBlockAnnounceMessage -=== PAUSE TestEncodeBlockAnnounceMessage -=== RUN TestDecode_BlockAnnounceMessage -=== PAUSE TestDecode_BlockAnnounceMessage -=== RUN TestEncodeTransactionMessageSingleExtrinsic -=== PAUSE TestEncodeTransactionMessageSingleExtrinsic -=== RUN TestEncodeTransactionMessageTwoExtrinsics -=== PAUSE TestEncodeTransactionMessageTwoExtrinsics -=== RUN TestDecodeTransactionMessageOneExtrinsic -=== PAUSE TestDecodeTransactionMessageOneExtrinsic -=== RUN TestDecodeTransactionMessageTwoExtrinsics -=== PAUSE TestDecodeTransactionMessageTwoExtrinsics -=== RUN TestDecodeConsensusMessage -=== PAUSE TestDecodeConsensusMessage -=== RUN TestCreateDecoder_BlockAnnounce -=== PAUSE TestCreateDecoder_BlockAnnounce -=== RUN TestCreateNotificationsMessageHandler_BlockAnnounce -=== PAUSE TestCreateNotificationsMessageHandler_BlockAnnounce -=== RUN TestCreateNotificationsMessageHandler_BlockAnnounceHandshake -=== PAUSE TestCreateNotificationsMessageHandler_BlockAnnounceHandshake -=== RUN Test_HandshakeTimeout -=== PAUSE Test_HandshakeTimeout -=== RUN TestCreateNotificationsMessageHandler_HandleTransaction -=== PAUSE TestCreateNotificationsMessageHandler_HandleTransaction -=== RUN TestBlockAnnounceHandshakeSize -=== PAUSE TestBlockAnnounceHandshakeSize -=== RUN Test_sizedBufferPool -=== PAUSE Test_sizedBufferPool -=== RUN Test_sizedBufferPool_race -=== PAUSE Test_sizedBufferPool_race -=== RUN TestStartService -=== PAUSE TestStartService -=== RUN TestBroadcastMessages -=== PAUSE TestBroadcastMessages -=== RUN TestBroadcastDuplicateMessage -=== PAUSE TestBroadcastDuplicateMessage -=== RUN TestService_NodeRoles -=== PAUSE TestService_NodeRoles -=== RUN TestService_Health -=== PAUSE TestService_Health -=== RUN TestPersistPeerStore -=== PAUSE TestPersistPeerStore -=== RUN TestHandleConn -=== PAUSE TestHandleConn -=== RUN TestSerivceIsMajorSyncMetrics -=== PAUSE TestSerivceIsMajorSyncMetrics -=== RUN TestStreamManager -=== PAUSE TestStreamManager -=== RUN TestStreamManager_KeepStream - stream_manager_test.go:91: ---- SKIP: TestStreamManager_KeepStream (0.00s) -=== RUN TestDecodeSyncMessage -=== PAUSE TestDecodeSyncMessage -=== RUN TestDecodeTransactionHandshake -=== PAUSE TestDecodeTransactionHandshake -=== RUN TestHandleTransactionMessage -=== PAUSE TestHandleTransactionMessage -=== RUN TestStringToAddrInfo ---- PASS: TestStringToAddrInfo (0.00s) -=== RUN TestStringsToAddrInfos ---- PASS: TestStringsToAddrInfos (0.00s) -=== RUN TestGenerateKey ---- PASS: TestGenerateKey (0.01s) -=== RUN TestReadLEB128ToUint64 ---- PASS: TestReadLEB128ToUint64 (0.00s) -=== RUN TestInvalidLeb128 ---- PASS: TestInvalidLeb128 (0.00s) -=== CONT TestService_Health -=== CONT Test_HandshakeTimeout -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake -=== CONT TestHandleTransactionMessage -=== CONT TestCreateNotificationsMessageHandler_HandleTransaction -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce -=== CONT TestBlockRequestString -=== CONT TestPeerConnect -BlockRequestMessage RequestedData=1 StartingBlock={[220 209 52 103 1 202 131 150 73 110 82 170 39 133 177 116 141 235 109 176 149 81 183 33 89 220 179 224 137 145 2 91]} EndBlockHash=0x0000000000000000000000000000000000000000000000000000000000000000 Direction=1 Max=0 -=== CONT TestEncodeBlockAnnounce ---- PASS: TestBlockRequestString (0.00s) ---- PASS: TestEncodeBlockAnnounce (0.00s) -=== CONT Test_RemoveReservedPeers -2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce240727509/001/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeA/node.key pkg=network -2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_Health3796617253/001/TestService_Health/nodeA/node.key pkg=network -2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout3557874362/001/Test_HandshakeTimeout/nodeA/node.key pkg=network -2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect3781788135/001/TestPeerConnect/nodeA/node.key pkg=network -2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleTransactionMessage963487009/001/TestHandleTransactionMessage/nodeA/node.key pkg=network -2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction3837544442/001/TestCreateNotificationsMessageHandler_HandleTransaction/nodeA/node.key pkg=network -2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers2521351122/001/Test_RemoveReservedPeers/nodeA/node.key pkg=network -2021-12-07T14:25:53-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake2739113968/001/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeA/node.key pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60465/p2p/12D3KooWNGxiQWyH4dGwjVKQnWYak7hfFbPkRwASB1jdEphNKU1V pkg=network -2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60468/p2p/12D3KooWKp8GjqHCD94dRpYaoKzXM1y177novprk23Pd8j1VMjEv pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60470/p2p/12D3KooWLAR9uEeYo34TLbLjivn9nP4vboa62VZXrP3qRzoi76qp pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60463/p2p/12D3KooWJc3vihKem9XNyoPZVq9doAZEfpC2AD3Zrw5MQBJrd9dG pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60464/p2p/12D3KooWPys2ogCJ8qhs1GJU1onY8fWKKmnkMEAKu8CzPm4zWzTm pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60469/p2p/12D3KooWMYGhNLRaDTiqHXHwhh1D6jX5ZLaDjyDhEXyhTDeSyaRH pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60466/p2p/12D3KooWSc3uKbAr8G9GMssaEnzrNQ2KfmFUUMuqWj38YkM9kZ9d pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:53-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:53-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60467/p2p/12D3KooWHmZxof4Qs2FjEkGQX7rDVHxZpg6htDPSyVZtqunG2KgG pkg=network -2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -================== -WARNING: DATA RACE -Read at 0x000005eb97c0 by goroutine 483: - github.com/ChainSafe/gossamer/dot/telemetry.GetInstance() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:77 +0x30 - github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x184 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 - -Previous write at 0x000005eb97c0 by goroutine 479: - github.com/ChainSafe/gossamer/dot/telemetry.GetInstance.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:80 +0x1b9 - sync.(*Once).doSlow() - /usr/local/go/src/sync/once.go:68 +0x127 - sync.(*Once).Do() - /usr/local/go/src/sync/once.go:59 +0x46 - github.com/ChainSafe/gossamer/dot/telemetry.GetInstance() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:78 +0x4d - github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x184 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 - -Goroutine 483 (running) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 - github.com/ChainSafe/gossamer/dot/network.Test_HandshakeTimeout() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:241 +0x1a4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 479 (running) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 - github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_BlockAnnounce() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:100 +0x1a4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c001126210 by goroutine 483: - github.com/ChainSafe/gossamer/dot/telemetry.(*Handler).SendMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:126 +0x69 - github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x4b5 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 - -Previous write at 0x00c001126210 by goroutine 479: - github.com/ChainSafe/gossamer/dot/telemetry.GetInstance.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:80 +0xaa - sync.(*Once).doSlow() - /usr/local/go/src/sync/once.go:68 +0x127 - sync.(*Once).Do() - /usr/local/go/src/sync/once.go:59 +0x46 - github.com/ChainSafe/gossamer/dot/telemetry.GetInstance() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:78 +0x4d - github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x184 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 - -Goroutine 483 (running) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 - github.com/ChainSafe/gossamer/dot/network.Test_HandshakeTimeout() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:241 +0x1a4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 479 (running) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 - github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_BlockAnnounce() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:100 +0x1a4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c0011261e0 by goroutine 483: - github.com/ChainSafe/gossamer/dot/telemetry.(*Handler).SendMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:129 +0xd9 - github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x4b5 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 - -Previous write at 0x00c0011261e0 by goroutine 479: - github.com/ChainSafe/gossamer/dot/telemetry.GetInstance.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:80 +0xaa - sync.(*Once).doSlow() - /usr/local/go/src/sync/once.go:68 +0x127 - sync.(*Once).Do() - /usr/local/go/src/sync/once.go:59 +0x46 - github.com/ChainSafe/gossamer/dot/telemetry.GetInstance() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/telemetry/telemetry.go:78 +0x4d - github.com/ChainSafe/gossamer/dot/network.(*Service).sentBlockIntervalTelemetry() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:418 +0x184 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start·dwrap·14() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x39 - -Goroutine 483 (running) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 - github.com/ChainSafe/gossamer/dot/network.Test_HandshakeTimeout() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:241 +0x1a4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 479 (running) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:283 +0x134a - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 - github.com/ChainSafe/gossamer/dot/network.TestCreateNotificationsMessageHandler_BlockAnnounce() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications_test.go:100 +0x1a4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounce240727509/002/TestCreateNotificationsMessageHandler_BlockAnnounce/nodeB/node.key pkg=network -2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 2 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_HandshakeTimeout3557874362/002/Test_HandshakeTimeout/nodeB/node.key pkg=network -2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerConnect3781788135/002/TestPeerConnect/nodeB/node.key pkg=network -2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_HandleTransaction3837544442/002/TestCreateNotificationsMessageHandler_HandleTransaction/nodeB/node.key pkg=network -2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake2739113968/002/TestCreateNotificationsMessageHandler_BlockAnnounceHandshake/nodeB/node.key pkg=network -2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_RemoveReservedPeers2521351122/002/Test_RemoveReservedPeers/nodeB/node.key pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60471/p2p/12D3KooWH5fwTfbUGCsqQycKdfy1JVuTAtzFe75TZwqTJvKy62CY pkg=network -=== CONT TestHandleTransactionMessage - testing.go:1152: race detected during execution of test -=== CONT TestStreamCloseEOF ---- FAIL: TestHandleTransactionMessage (1.36s) -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60472/p2p/12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network -=== CONT TestService_Health - testing.go:1152: race detected during execution of test ---- FAIL: TestService_Health (1.39s) -=== CONT Test_AddReservedPeers -2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF3490846028/001/TestStreamCloseEOF/nodeA/node.key pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60473/p2p/12D3KooWHMF8u1apPQfasN1tyFAmDwsuYg1xSTcUFgiBW4x5MdQV pkg=network -2021-12-07T14:25:54-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers4152160875/001/Test_AddReservedPeers/nodeA/node.key pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60474/p2p/12D3KooWQ8cVoRHtihDUc9LZ4VZEqCMGAg4LdRHDzQc2sCVywNHq pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60475/p2p/12D3KooWNF5MGqwybDdj3yetjcsSiH7NQ1Ua6A2BzTCd1y3xeAF5 pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:54-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:54-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60476/p2p/12D3KooWApkKFJMF2jquCuxCmLAagbsTPCk6YFFPkgX35Re3Aynw pkg=network -2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60477/p2p/12D3KooWMtvPqGaDc7rUa2qwxXdhTjCEk12VJNgyPCQVHJQRNmUY pkg=network -2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60478/p2p/12D3KooWBVWbZirA2TAs9JA8t5DW5xPxdJDvTNPnp6S6nzJC7wbq pkg=network -2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 DBUG gossiping from host 12D3KooWKp8GjqHCD94dRpYaoKzXM1y177novprk23Pd8j1VMjEv message of type 0: BlockAnnounceHandshake Roles=4 BestBlockNumber=77 BestBlockHash=0x0100000000000000000000000000000000000000000000000000000000000000 GenesisHash=0x0200000000000000000000000000000000000000000000000000000000000000 pkg=network -2021-12-07T14:25:55-04:00 EROR message type 0 not supported by any notifications protocol pkg=network -2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounce - testing.go:1152: race detected during execution of test ---- FAIL: TestCreateNotificationsMessageHandler_BlockAnnounce (2.05s) -=== CONT Test_PeerSupportsProtocol -2021-12-07T14:25:55-04:00 DBUG connection successful with peer 12D3KooWHMF8u1apPQfasN1tyFAmDwsuYg1xSTcUFgiBW4x5MdQV pkg=network -2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol429121497/001/Test_PeerSupportsProtocol/nodeA/node.key pkg=network -2021-12-07T14:25:55-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWPys2ogCJ8qhs1GJU1onY8fWKKmnkMEAKu8CzPm4zWzTm pkg=network -2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 DBUG connection successful with peer 12D3KooWApkKFJMF2jquCuxCmLAagbsTPCk6YFFPkgX35Re3Aynw pkg=network -2021-12-07T14:25:55-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseEOF3490846028/002/TestStreamCloseEOF/nodeB/node.key pkg=network -2021-12-07T14:25:55-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_AddReservedPeers4152160875/002/Test_AddReservedPeers/nodeB/node.key pkg=network -2021-12-07T14:25:55-04:00 DBUG transaction message TransactionMessage extrinsics count=2 for peer 12D3KooWQ8cVoRHtihDUc9LZ4VZEqCMGAg4LdRHDzQc2sCVywNHq not included into batch pkg=network -2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60479/p2p/12D3KooWAoNZqkchZZSiYd44oJUubNTdTJjtvBNEcrxW2kEghWKY pkg=network -=== CONT TestPeerConnect - testing.go:1152: race detected during execution of test ---- FAIL: TestPeerConnect (2.44s) -=== CONT TestExistingStream -2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60481/p2p/12D3KooWRNoSPiWz9ZFCu5cptHEfoDwgHZ8dNaBGjKxcAUr6Z4JE pkg=network -=== CONT TestCreateNotificationsMessageHandler_BlockAnnounceHandshake - testing.go:1152: race detected during execution of test ---- FAIL: TestCreateNotificationsMessageHandler_BlockAnnounceHandshake (2.51s) -=== CONT TestSend -2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:55-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:55-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream3117877671/001/TestExistingStream/nodeA/node.key pkg=network -2021-12-07T14:25:55-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60480/p2p/12D3KooWMXKyDcmKYNKAh8qtcNz2zLfL8pEehYqTiJ7nr1uHmMq2 pkg=network -2021-12-07T14:25:55-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend1207489262/001/TestSend/nodeA/node.key pkg=network -=== CONT Test_RemoveReservedPeers - testing.go:1152: race detected during execution of test ---- FAIL: Test_RemoveReservedPeers (2.66s) -=== CONT TestBootstrap -2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap2218600355/001/TestBootstrap/nodeA/node.key pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60482/p2p/12D3KooWMoKQwojF8PuFQEKrXMPrDxA6NrypJYp5zdbhqmzWuei6 pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60483/p2p/12D3KooWAoogJZXYBsjDCJfw8cvBtV1FB7y2Ksnk61LH5moLsR3A pkg=network -2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/Test_PeerSupportsProtocol429121497/002/Test_PeerSupportsProtocol/nodeB/node.key pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60484/p2p/12D3KooWLTtCxo1JmNGDbUR31FtrPLT8r2f7G8bGx7E34PDxQnTS pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60486/p2p/12D3KooWAneXjHxbLSAHKiHJWHPDLr6AQYqaTp6T2UYDbPwPsUeX pkg=network -2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 DBUG connection successful with peer 12D3KooWMXKyDcmKYNKAh8qtcNz2zLfL8pEehYqTiJ7nr1uHmMq2 pkg=network -=== CONT TestDecodeTransactionHandshake ---- PASS: Test_AddReservedPeers (1.84s) -=== CONT TestDecode_BlockAnnounceMessage ---- PASS: TestDecodeTransactionHandshake (0.00s) -=== CONT TestCreateDecoder_BlockAnnounce ---- PASS: TestDecode_BlockAnnounceMessage (0.00s) -2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestCreateDecoder_BlockAnnounce3301027701/001/TestCreateDecoder_BlockAnnounce/nodeA/node.key pkg=network -2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExistingStream3117877671/002/TestExistingStream/nodeB/node.key pkg=network -2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSend1207489262/002/TestSend/nodeB/node.key pkg=network -2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBootstrap2218600355/002/TestBootstrap/nodeB/node.key pkg=network -2021-12-07T14:25:56-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60487/p2p/12D3KooWDyzuBbXpQvkkmAs1yCrE3omFUUy5JNMpCtHXDTqzE7gV pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60488/p2p/12D3KooWKCKAyUVV25r3NVSEfa2oFQtvHBsik6zx5fXV4AG5UNmJ pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:56-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:56-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60489/p2p/12D3KooWNuEDwsY4v77dp5zEAFbkLFrxwpq35CQHxpLHXLXDBgTZ pkg=network -2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:57-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60490/p2p/12D3KooWM5a9c9ENop9Yr4cbGG2ACBpsyW5e74CHvcg8RpD5tQ9F pkg=network -2021-12-07T14:25:57-04:00 DBUG bootstrapping to peer 12D3KooWLTtCxo1JmNGDbUR31FtrPLT8r2f7G8bGx7E34PDxQnTS pkg=network -2021-12-07T14:25:57-04:00 DBUG connection successful with peer 12D3KooWLTtCxo1JmNGDbUR31FtrPLT8r2f7G8bGx7E34PDxQnTS pkg=network -=== CONT TestCreateNotificationsMessageHandler_HandleTransaction - testing.go:1152: race detected during execution of test ---- FAIL: TestCreateNotificationsMessageHandler_HandleTransaction (3.85s) -=== CONT TestDecodeTransactionMessageTwoExtrinsics -=== CONT TestDecodeConsensusMessage ---- PASS: TestDecodeTransactionMessageTwoExtrinsics (0.00s) ---- PASS: Test_PeerSupportsProtocol (1.81s) -=== CONT TestEncodeTransactionMessageTwoExtrinsics -=== CONT TestDecodeTransactionMessageOneExtrinsic ---- PASS: TestDecodeConsensusMessage (0.00s) -=== CONT TestHandleConn ---- PASS: TestEncodeTransactionMessageTwoExtrinsics (0.00s) -=== CONT TestDecodeSyncMessage ---- PASS: TestDecodeTransactionMessageOneExtrinsic (0.00s) -=== CONT TestPersistPeerStore ---- PASS: TestDecodeSyncMessage (0.00s) -2021-12-07T14:25:57-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn2162876927/001/TestHandleConn/nodeA/node.key pkg=network -2021-12-07T14:25:57-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore4076152564/001/TestPersistPeerStore/node0/node.key pkg=network -2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:57-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60492/p2p/12D3KooWGeN7T72ianzPN2q4j3u7sPX8ArYwRSEzwqu8G3FfgEf1 pkg=network -2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:57-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60491/p2p/12D3KooWCeHGrmZpZaEvqp8uEC5b68eQzoiPvJdUo2GV2du1NcvY pkg=network ---- PASS: TestCreateDecoder_BlockAnnounce (0.86s) -=== CONT TestStreamManager -================== -WARNING: DATA RACE -Write at 0x000005df4ec8 by goroutine 93: - github.com/ChainSafe/gossamer/dot/network.setupStreamManagerTest() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager_test.go:26 +0x8f - github.com/ChainSafe/gossamer/dot/network.TestStreamManager() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager_test.go:69 +0x54 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous read at 0x000005df4ec8 by goroutine 364: - github.com/ChainSafe/gossamer/dot/network.(*streamManager).start.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/stream_manager.go:39 +0x4a - -Goroutine 93 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 -================== -2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -================== -WARNING: DATA RACE -Write at 0x00c00f55ccd0 by goroutine 44: - runtime.closechan() - /usr/local/go/src/runtime/chan.go:355 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e - github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 - github.com/ChainSafe/gossamer/dot/network.createTestService.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a - testing.(*common).Cleanup.func1() - /usr/local/go/src/testing/testing.go:912 +0x199 - testing.(*common).runCleanup() - /usr/local/go/src/testing/testing.go:1049 +0x154 - testing.tRunner.func2() - /usr/local/go/src/testing/testing.go:1253 +0x4f - testing.tRunner() - /usr/local/go/src/testing/testing.go:1265 +0x268 - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous read at 0x00c00f55ccd0 by goroutine 788: - runtime.chansend() - /usr/local/go/src/runtime/chan.go:158 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Incoming() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:86 +0xc4 - github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:435 +0xfb - github.com/ChainSafe/gossamer/dot/network.(*Service).handleConn-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:433 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Swarm).addConn·dwrap·13() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm.go:285 +0x58 - -Goroutine 44 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 -================== -=== CONT TestBootstrap - testing.go:1152: race detected during execution of test ---- FAIL: TestBootstrap (1.68s) -=== CONT TestStreamCloseMetadataCleanup -2021-12-07T14:25:57-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup3488773186/001/TestStreamCloseMetadataCleanup/nodeA/node.key pkg=network -2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:57-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:57-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60493/p2p/12D3KooWCe9y854cKSwVjeh7hQzW96zXNWpRgArDBbAYKsNeqdXC pkg=network -2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:57-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistPeerStore4076152564/002/TestPersistPeerStore/node1/node.key pkg=network -2021-12-07T14:25:57-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:57-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleConn2162876927/002/TestHandleConn/nodeB/node.key pkg=network -2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:58-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60494/p2p/12D3KooWEc3w2G3N3xsAsWeBa9zteEsUK9exDijPeno2H6uWSdN1 pkg=network -2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:58-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60495/p2p/12D3KooWCiS8okWhdyMFMn9TkG3s3bYMgW6SN6rZqfrdCgLNbY5U pkg=network -2021-12-07T14:25:58-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:58-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStreamCloseMetadataCleanup3488773186/002/TestStreamCloseMetadataCleanup/nodeB/node.key pkg=network -2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:58-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60496/p2p/12D3KooWJMaMZBNKx22kTN1ojkYio6PM4LHzgRZYKwd5YAPz6dHf pkg=network -================== -WARNING: DATA RACE -Read at 0x00c026638930 by goroutine 46: - runtime.mapaccess1_faststr() - /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcbc - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c026638930 by goroutine 649: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 46 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 649 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c015619108 by goroutine 46: - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:262 +0xcc9 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c015619108 by goroutine 649: - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 46 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 649 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c04597cf90 by goroutine 45: - runtime.mapaccess2_faststr() - /usr/local/go/src/runtime/map_faststr.go:107 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:209 +0xa3c - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c04597cf90 by goroutine 513: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 45 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 513 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c0008bd528 by goroutine 45: - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:209 +0xa4d - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c0008bd528 by goroutine 513: - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 45 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 513 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c0002c1990 by goroutine 45: - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xae4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c0002c1990 by goroutine 513: - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x17c - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 45 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 513 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c00283ec00 by goroutine 45: - reflect.typedmemmove() - /usr/local/go/src/runtime/mbarrier.go:178 +0x0 - reflect.packEface() - /usr/local/go/src/reflect/value.go:123 +0xae - reflect.valueInterface() - /usr/local/go/src/reflect/value.go:1381 +0x18a - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:154 +0x9dc - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.DeepEqual() - /usr/local/go/src/reflect/deepequal.go:218 +0x404 - github.com/stretchr/testify/assert.ObjectsAreEqual() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 - github.com/stretchr/testify/assert.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 - github.com/stretchr/testify/require.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c00283ec00 by goroutine 513: - github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:194 +0x77b - github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 45 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 513 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c00283ec08 by goroutine 45: - reflect.Value.IsNil() - /usr/local/go/src/reflect/value.go:1425 +0x1d8 - reflect.deepValueEqual.func1() - /usr/local/go/src/reflect/deepequal.go:50 +0x11d - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:55 +0x16d - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.DeepEqual() - /usr/local/go/src/reflect/deepequal.go:218 +0x404 - github.com/stretchr/testify/assert.ObjectsAreEqual() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 - github.com/stretchr/testify/assert.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 - github.com/stretchr/testify/require.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c00283ec08 by goroutine 513: - github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:195 +0x7c8 - github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 45 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 513 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c00283ec18 by goroutine 45: - reflect.Value.IsNil() - /usr/local/go/src/reflect/value.go:1419 +0x225 - reflect.deepValueEqual.func1() - /usr/local/go/src/reflect/deepequal.go:50 +0x11d - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:55 +0x16d - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.DeepEqual() - /usr/local/go/src/reflect/deepequal.go:218 +0x404 - github.com/stretchr/testify/assert.ObjectsAreEqual() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 - github.com/stretchr/testify/assert.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 - github.com/stretchr/testify/require.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c00283ec18 by goroutine 513: - github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:196 +0x835 - github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 45 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 513 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c03d8a5fe0 by goroutine 45: - reflect.typedmemmove() - /usr/local/go/src/runtime/mbarrier.go:178 +0x0 - reflect.packEface() - /usr/local/go/src/reflect/value.go:123 +0xae - reflect.valueInterface() - /usr/local/go/src/reflect/value.go:1381 +0x18a - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:154 +0x9dc - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:90 +0x1684 - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.DeepEqual() - /usr/local/go/src/reflect/deepequal.go:218 +0x404 - github.com/stretchr/testify/assert.ObjectsAreEqual() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 - github.com/stretchr/testify/assert.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 - github.com/stretchr/testify/require.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c03d8a5fe0 by goroutine 513: - github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:182 +0x6fa - github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 45 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 513 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c00283ec20 by goroutine 45: - reflect.typedmemmove() - /usr/local/go/src/runtime/mbarrier.go:178 +0x0 - reflect.packEface() - /usr/local/go/src/reflect/value.go:123 +0xae - reflect.valueInterface() - /usr/local/go/src/reflect/value.go:1381 +0x18a - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:154 +0x9dc - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.DeepEqual() - /usr/local/go/src/reflect/deepequal.go:218 +0x404 - github.com/stretchr/testify/assert.ObjectsAreEqual() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 - github.com/stretchr/testify/assert.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 - github.com/stretchr/testify/require.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c00283ec20 by goroutine 513: - github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:197 +0x89a - github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 45 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 513 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c00283ec28 by goroutine 45: - reflect.Value.IsNil() - /usr/local/go/src/reflect/value.go:1419 +0x225 - reflect.deepValueEqual.func1() - /usr/local/go/src/reflect/deepequal.go:50 +0x11d - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:55 +0x16d - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.DeepEqual() - /usr/local/go/src/reflect/deepequal.go:218 +0x404 - github.com/stretchr/testify/assert.ObjectsAreEqual() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 - github.com/stretchr/testify/assert.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 - github.com/stretchr/testify/require.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c00283ec28 by goroutine 513: - github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:198 +0x8ba - github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 45 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 513 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c00284647c by goroutine 45: - reflect.typedmemmove() - /usr/local/go/src/runtime/mbarrier.go:178 +0x0 - reflect.packEface() - /usr/local/go/src/reflect/value.go:123 +0xae - reflect.valueInterface() - /usr/local/go/src/reflect/value.go:1381 +0x18a - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:154 +0x9dc - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:123 +0x142c - reflect.deepValueEqual() - /usr/local/go/src/reflect/deepequal.go:120 +0xfe7 - reflect.DeepEqual() - /usr/local/go/src/reflect/deepequal.go:218 +0x404 - github.com/stretchr/testify/assert.ObjectsAreEqual() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:65 +0x184 - github.com/stretchr/testify/assert.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/assert/assertions.go:343 +0x212 - github.com/stretchr/testify/require.Equal() - /Users/eclesiojunior/go/pkg/mod/github.com/stretchr/testify@v1.7.0/require/require.go:162 +0xc8 - github.com/ChainSafe/gossamer/dot/network.TestSend() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:212 +0xb54 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c002846478 by goroutine 513: - github.com/ChainSafe/gossamer/dot/network/proto.(*BlockRequest).Reset() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/proto/api.v1.pb.go:102 +0x37 - google.golang.org/protobuf/proto.Reset() - /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/reset.go:18 +0x4d - google.golang.org/protobuf/proto.UnmarshalOptions.unmarshal() - /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/decode.go:77 +0xcc - google.golang.org/protobuf/proto.Unmarshal() - /Users/eclesiojunior/go/pkg/mod/google.golang.org/protobuf@v1.27.1/proto/decode.go:50 +0xa4 - github.com/ChainSafe/gossamer/dot/network.(*BlockRequestMessage).Decode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/message.go:152 +0xf4 - github.com/ChainSafe/gossamer/dot/network.testBlockRequestMessageDecoder() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:211 +0x51 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:177 +0x29e - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 45 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 513 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -2021-12-07T14:25:58-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network -2021-12-07T14:25:58-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:58-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestSend - testing.go:1152: race detected during execution of test -=== CONT TestConnect ---- FAIL: TestSend (2.79s) -2021-12-07T14:25:58-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect660471562/001/TestConnect/nodeA/node.key pkg=network -2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:58-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60497/p2p/12D3KooWNFGDV5RxrJUeSYfDG3ZMfgt5rRFHkfXfrGB494FkN15f pkg=network -2021-12-07T14:25:58-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:58-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:58-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60492/p2p/12D3KooWGeN7T72ianzPN2q4j3u7sPX8ArYwRSEzwqu8G3FfgEf1 pkg=network -=== CONT TestHandleConn - testing.go:1152: race detected during execution of test ---- FAIL: TestHandleConn (1.77s) -=== CONT TestExternalAddrs -2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrs1664404029/001/TestExternalAddrs/node/node.key pkg=network -2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:59-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60498/p2p/12D3KooWQrDF68TqBYe2RsJq9YWTnz4Dex72ziVAUMbNrLepVjHB pkg=network -2021-12-07T14:25:59-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestConnect660471562/002/TestConnect/nodeB/node.key pkg=network -=== CONT TestStreamManager - testing.go:1152: race detected during execution of test ---- FAIL: TestStreamManager (1.94s) -=== CONT TestExternalAddrsPublicIP -2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestExternalAddrsPublicIP1289943567/001/TestExternalAddrsPublicIP/node/node.key pkg=network -2021-12-07T14:25:59-04:00 DBUG using config PublicIP: 10.0.5.2 pkg=network -2021-12-07T14:25:59-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -================== -WARNING: DATA RACE -Read at 0x00c0266e9950 by goroutine 46: - runtime.mapaccess1_faststr() - /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1008 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c0266e9950 by goroutine 110: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 46 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 110 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c015619528 by goroutine 46: - github.com/ChainSafe/gossamer/dot/network.TestExistingStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:274 +0x1015 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c015619528 by goroutine 110: - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 46 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 110 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -2021-12-07T14:25:59-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network -2021-12-07T14:25:59-04:00 DBUG failed to read from stream using protocol /gossamer/test/0: failed to read length: stream reset pkg=network -2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:59-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60500/p2p/12D3KooWAGy93oXX8yws3hCsc97b44b9biwoPuhonYd4GzTYuPg4 pkg=network -2021-12-07T14:25:59-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:25:59-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:25:59-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60501/p2p/12D3KooWMDGv3j4LeB9LzMuiHY9s5PChWFiUYmfLsRSRjcD91kg2 pkg=network -2021-12-07T14:25:59-04:00 INFO Started listening on /ip4/10.0.5.2/tcp/60501/p2p/12D3KooWMDGv3j4LeB9LzMuiHY9s5PChWFiUYmfLsRSRjcD91kg2 pkg=network -=== CONT TestExternalAddrs - testing.go:1152: race detected during execution of test ---- FAIL: TestExternalAddrs (0.80s) -=== CONT TestPersistPeerStore - testing.go:1152: race detected during execution of test -=== CONT TestEncodeBlockRequestMessage_BlockHash ---- FAIL: TestPersistPeerStore (2.57s) -=== CONT TestMessageCacheError -=== CONT TestExistingStream - testing.go:1152: race detected during execution of test ---- FAIL: TestExistingStream (3.99s) -=== CONT TestEncodeBlockRequestMessage -=== CONT TestGossip ---- PASS: TestEncodeBlockRequestMessage_BlockHash (0.00s) -=== CONT TestKadDHT ---- PASS: TestEncodeBlockRequestMessage (0.00s) -=== CONT TestEncodeBlockRequestMessage_BlockNumber ---- PASS: TestMessageCacheError (0.01s) ---- PASS: TestEncodeBlockRequestMessage_BlockNumber (0.00s) -=== CONT TestBeginDiscovery -2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3541199343/001/TestKadDHT/node0/node.key pkg=network -2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip1543723579/001/TestGossip/nodeA/node.key pkg=network -2021-12-07T14:25:59-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery892423823/001/TestBeginDiscovery/nodeA/node.key pkg=network -2021-12-07T14:25:59-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWCe9y854cKSwVjeh7hQzW96zXNWpRgArDBbAYKsNeqdXC pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60503/p2p/12D3KooWAMjrqHWAwXEWL1WrvUJj3Sr6rhL9Yyk4brS2vq2CrFuF pkg=network -2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60502/p2p/12D3KooWKAq2UuEy36WHJkY3bVQd1gAqooZTuomxbei8HNQHfLFq pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60504/p2p/12D3KooWSqDBsaZDT1uZExaubZ1jZmWLt2qSboQzkprKxAw6AjaK pkg=network -2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestExternalAddrsPublicIP - testing.go:1152: race detected during execution of test ---- FAIL: TestExternalAddrsPublicIP (0.88s) -=== CONT TestSetReservedPeer -2021-12-07T14:26:00-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer310528100/001/TestSetReservedPeer/node0/node.key pkg=network -=== CONT TestConnect - testing.go:1152: race detected during execution of test ---- FAIL: TestConnect (1.65s) -=== CONT TestEncodeLightResponse -=== CONT TestEncodeLightRequest ---- PASS: TestEncodeLightResponse (0.00s) -=== CONT TestMessageCache ---- PASS: TestEncodeLightRequest (0.00s) -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60505/p2p/12D3KooWDdtJgA3UXKjNA1t1qbZXfecepKDfyePU23rpKYVojDKo pkg=network -2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3541199343/002/TestKadDHT/node1/node.key pkg=network -2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip1543723579/002/TestGossip/nodeB/node.key pkg=network -2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery892423823/002/TestBeginDiscovery/nodeB/node.key pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60506/p2p/12D3KooWRuMKNsP4jUfsrCSwcxEBQLExHJjF4VMsduH4V5jNx4E7 pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60507/p2p/12D3KooWGLiiXWD7WrbkKyi9PKXqQpHa3jxRnMqW17RFBLJyxGFu pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:00-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60508/p2p/12D3KooWMFo74g4p6fj8g6D2BTHENNiAyMczYDnzf1j1TSprVnex pkg=network -2021-12-07T14:26:00-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:00-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer310528100/002/TestSetReservedPeer/node1/node.key pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60509/p2p/12D3KooWCkzQyEZSuDUpT4HynZ1cjeM6dK69PwtfFQwusHwLnES7 pkg=network -=== CONT TestStreamCloseMetadataCleanup - testing.go:1152: race detected during execution of test -=== CONT TestDecodeLightMessage ---- FAIL: TestStreamCloseMetadataCleanup (3.50s) ---- PASS: TestDecodeLightMessage (0.01s) -=== CONT TestMDNS -2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS3428643133/001/TestMDNS/nodeA/node.key pkg=network -2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestKadDHT3541199343/003/TestKadDHT/node2/node.key pkg=network -2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -================== -WARNING: DATA RACE -Read at 0x00c03e972070 by goroutine 51: - github.com/ChainSafe/gossamer/dot/network.TestStreamCloseEOF() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:555 +0xa5e - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c03e972070 by goroutine 197: - [failed to restore the stack] - -Goroutine 51 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 -================== -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60511/p2p/12D3KooWQSzu4g54pa5mSTX2ixJLrhFBhh7Si8e1vzRWCqcBRECB pkg=network -2021-12-07T14:26:01-04:00 DBUG starting DHT with bootnodes [{12D3KooWMFo74g4p6fj8g6D2BTHENNiAyMczYDnzf1j1TSprVnex: [/ip4/127.0.0.1/tcp/60508]}]... pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60512/p2p/12D3KooWPWuNizWj3b9VuvYEzvLLtgvBBkhtg6Q6bThgVRptCZv1 pkg=network -2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestGossip1543723579/003/TestGossip/nodeC/node.key pkg=network -2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer310528100/003/TestSetReservedPeer/node2/node.key pkg=network -=== CONT TestStreamCloseEOF - testing.go:1152: race detected during execution of test ---- FAIL: TestStreamCloseEOF (6.96s) -=== CONT TestBannedPeer -2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1156012698/001/TestBannedPeer/nodeA/node.key pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60515/p2p/12D3KooWAwjbbmsNZMK5TkffPh7xr4CxsiptJFjbG46uCgYGPjJZ pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60516/p2p/12D3KooWN28uGhnj2ApkVJQcoWb68ngoBYC3yzwWCP1a2aXaakcj pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:01-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:01-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60517/p2p/12D3KooWQ4HzD8T6339TyaXD4Chns1EHTpHeVJVvgyUc38qYXtqi pkg=network -2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:01-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMDNS3428643133/002/TestMDNS/nodeB/node.key pkg=network -2021-12-07T14:26:01-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:02-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60518/p2p/12D3KooWKsaxAVeftv34StbMT2VrRtowc2Repw5mkWoKf8rJ2sRs pkg=network -2021-12-07T14:26:02-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:02-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:02-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestSetReservedPeer310528100/004/TestSetReservedPeer/node3/node.key pkg=network -2021-12-07T14:26:02-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network -=== CONT TestGossip - gossip_test.go:93: - Error Trace: gossip_test.go:93 - Error: Received unexpected error: - protocol not supported - Test: TestGossip -2021-12-07T14:26:02-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:02-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBannedPeer1156012698/002/TestBannedPeer/nodeB/node.key pkg=network -2021-12-07T14:26:02-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:26:02-04:00 DBUG starting DHT with bootnodes [{12D3KooWSqDBsaZDT1uZExaubZ1jZmWLt2qSboQzkprKxAw6AjaK: [/ip4/127.0.0.1/tcp/60504]}]... pkg=network -2021-12-07T14:26:02-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T14:26:02-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network -2021-12-07T14:26:02-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:02-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60520/p2p/12D3KooWGtmDUHhUbZHS3Ep3CGbHVCuS1QP5PcvWPeeT2EwfetAZ pkg=network -2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:02-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60521/p2p/12D3KooWJPsv2Tyha3gGiLxrmZbw9jdFWQgx9AJWDhv8PHoQ7TPg pkg=network -2021-12-07T14:26:02-04:00 DBUG connection successful with peer 12D3KooWDdtJgA3UXKjNA1t1qbZXfecepKDfyePU23rpKYVojDKo pkg=network - testing.go:1152: race detected during execution of test ---- FAIL: TestGossip (2.92s) -=== CONT TestHandleLightMessage_Response -2021-12-07T14:26:02-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response241592593/001/TestHandleLightMessage_Response/nodeA/node.key pkg=network -2021-12-07T14:26:02-04:00 DBUG connection successful with peer 12D3KooWCkzQyEZSuDUpT4HynZ1cjeM6dK69PwtfFQwusHwLnES7 pkg=network -2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:02-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:02-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60522/p2p/12D3KooWGLCPGN38ix3PyD178HLCdAMPVXnNgTGiHcWRsZCiyjGM pkg=network -2021-12-07T14:26:03-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:03-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:03-04:00 DBUG connection successful with peer 12D3KooWJPsv2Tyha3gGiLxrmZbw9jdFWQgx9AJWDhv8PHoQ7TPg pkg=network -2021-12-07T14:26:03-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset -2021-12-07T14:26:03-04:00 DBUG connection dropped successfully for peer 12D3KooWJPsv2Tyha3gGiLxrmZbw9jdFWQgx9AJWDhv8PHoQ7TPg pkg=network -2021-12-07T14:26:03-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:03-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleLightMessage_Response241592593/002/TestHandleLightMessage_Response/nodeB/node.key pkg=network -2021-12-07T14:26:03-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:26:03-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:03-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:03-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60523/p2p/12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt pkg=network -2021-12-07T14:26:03-04:00 WARN failed to open connection for peer 12D3KooWQSzu4g54pa5mSTX2ixJLrhFBhh7Si8e1vzRWCqcBRECB: context canceled pkg=network -=== CONT TestBeginDiscovery - testing.go:1152: race detected during execution of test ---- FAIL: TestBeginDiscovery (3.91s) -=== CONT TestPeerReputation -2021-12-07T14:26:03-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation1465209743/001/TestPeerReputation/nodeA/node.key pkg=network -=== CONT TestMDNS - testing.go:1152: race detected during execution of test -=== CONT TestMaxPeers ---- FAIL: TestMDNS (2.53s) -2021-12-07T14:26:03-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/001/TestMaxPeers/node0/node.key pkg=network -2021-12-07T14:26:03-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T14:26:03-04:00 DBUG connection successful with peer 12D3KooWN28uGhnj2ApkVJQcoWb68ngoBYC3yzwWCP1a2aXaakcj pkg=network -=== CONT TestMessageCache - testing.go:1152: race detected during execution of test ---- FAIL: TestMessageCache (3.53s) -=== CONT TestPersistentPeers -2021-12-07T14:26:03-04:00 CRIT highest rated peer is below bannedThresholdValue pkg=peerset -2021-12-07T14:26:03-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers1668795105/001/TestPersistentPeers/node-a/node.key pkg=network -2021-12-07T14:26:03-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:03-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:03-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60524/p2p/12D3KooWBQcVber8K4GQD17SbF5WUoDLVuLWVZesNP4yVUPS2EFg pkg=network -2021-12-07T14:26:03-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60525/p2p/12D3KooWKJEtUR4soQeXuicPrwA6CuPZxzdTYiBVdE2gunypp8nw pkg=network -2021-12-07T14:26:04-04:00 WARN ignoring LightRequest without request data pkg=network -2021-12-07T14:26:04-04:00 DBUG cleaning up inbound handshake data for protocol=/gossamer/test/0/light/2, peer=12D3KooWGLCPGN38ix3PyD178HLCdAMPVXnNgTGiHcWRsZCiyjGM pkg=network -2021-12-07T14:26:04-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T14:26:04-04:00 WARN failed to send LightResponse message to peer 12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt: stream closed pkg=network -2021-12-07T14:26:04-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T14:26:04-04:00 WARN failed to send LightResponse message to peer 12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt: stream closed pkg=network -2021-12-07T14:26:04-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T14:26:04-04:00 WARN failed to send LightResponse message to peer 12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt: stream closed pkg=network -2021-12-07T14:26:04-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T14:26:04-04:00 WARN failed to send LightResponse message to peer 12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt: stream closed pkg=network -2021-12-07T14:26:04-04:00 DBUG LightResponse message: RemoteCallResponse=Proof = RemoteReadResponse=Proof = RemoteHeaderResponse=Header =[] Proof = RemoteChangesResponse=Max = Proof =[] Roots=[] RootsProof= pkg=network -2021-12-07T14:26:04-04:00 WARN failed to send LightResponse message to peer 12D3KooWRdnXYdxCFBqiHFYbWqbSh2gVKVEtcRY8TTSAj5ydQyZt: stream closed pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60526/p2p/12D3KooWSfsC3Qnfqukg19bRJ3NnEef3PDsFuhEjNuPkPvwQTMyR pkg=network -=== CONT TestProtectUnprotectPeer ---- PASS: TestHandleLightMessage_Response (1.66s) -=== CONT TestMinPeers ---- PASS: TestProtectUnprotectPeer (0.00s) -=== CONT TestSetReservedPeer - testing.go:1152: race detected during execution of test ---- FAIL: TestSetReservedPeer (4.09s) -=== CONT TestBuildIdentity -=== CONT Test_sizedBufferPool_race ---- PASS: TestBuildIdentity (0.01s) -=== CONT TestService_NodeRoles ---- PASS: Test_sizedBufferPool_race (0.00s) -2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers102499482/001/TestMinPeers/node0/node.key pkg=network -2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestService_NodeRoles3521792647/001/TestService_NodeRoles/node/node.key pkg=network -2021-12-07T14:26:04-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network -2021-12-07T14:26:04-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPeerReputation1465209743/002/TestPeerReputation/nodeB/node.key pkg=network -2021-12-07T14:26:04-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/002/TestMaxPeers/node1/node.key pkg=network -2021-12-07T14:26:04-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60527/p2p/12D3KooWLLE7thnZ3bKqEmjm9zkjFKn5nwgRaYhCyLMZtvkcDxBZ pkg=network -=== CONT TestService_NodeRoles - service_test.go:266: - Error Trace: service_test.go:102 - service_test.go:266 - Error: Received unexpected error: - failed to listen on any addresses: [listen tcp4 0.0.0.0:7000: bind: address already in use] - Test: TestService_NodeRoles -=== CONT TestBroadcastDuplicateMessage ---- FAIL: TestService_NodeRoles (0.27s) -2021-12-07T14:26:04-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1378793643/001/TestBroadcastDuplicateMessage/nodeA/node.key pkg=network -2021-12-07T14:26:04-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestPersistentPeers1668795105/002/TestPersistentPeers/node-b/node.key pkg=network -2021-12-07T14:26:04-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60528/p2p/12D3KooWSRT3zXUr7LBnBCeXSnLNTeoR5eChzjnD9Ep855CBXiY8 pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60529/p2p/12D3KooWMAH8Cxw7cDLDUX5mWatq2Zmu6sv8v9GDxk9wJV38jrFX pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60530/p2p/12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:04-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:04-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60531/p2p/12D3KooWFrMTXo6H5fyVRbgRHRvsrAQotH3DHAwsPKdmwKrcjmNG pkg=network -2021-12-07T14:26:04-04:00 DBUG connection successful with peer 12D3KooWSfsC3Qnfqukg19bRJ3NnEef3PDsFuhEjNuPkPvwQTMyR pkg=network -2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers102499482/002/TestMinPeers/node1/node.key pkg=network -2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60533/p2p/12D3KooWPcmHB9uVKBEFkmAnxBKEho5DPBkphA66QxZEo4akS1SN pkg=network -2021-12-07T14:26:05-04:00 DBUG connection successful with peer 12D3KooWSRT3zXUr7LBnBCeXSnLNTeoR5eChzjnD9Ep855CBXiY8 pkg=network -2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/003/TestMaxPeers/node2/node.key pkg=network -2021-12-07T14:26:05-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T14:26:05-04:00 DBUG cleaning up outbound handshake data for protocol=/gossamer/test/0/block-announces/1, peer=12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA pkg=network -2021-12-07T14:26:05-04:00 DBUG failed to send handshake to peer 12D3KooWKRyzVWW6ChFjQjK4miCty85Niy49tpPV95XdKu1BcvMA on protocol /gossamer/test/0/block-announces/1: handshake timeout reached pkg=network -2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastDuplicateMessage1378793643/002/TestBroadcastDuplicateMessage/nodeB/node.key pkg=network -================== -WARNING: DATA RACE -Read at 0x00c0027f1c50 by goroutine 54: - runtime.mapaccess2_faststr() - /usr/local/go/src/runtime/map_faststr.go:107 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).getNode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:117 +0x8b - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:109 +0x31 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c0027f1c50 by goroutine 846: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).addReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:224 +0x24f - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:325 +0x154 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:714 +0x529 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x47 - -Goroutine 54 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 846 (running) created at: - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x170 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 - github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c0a21d5408 by goroutine 54: - github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).getNode() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:117 +0x99 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:109 +0x31 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c0a21d5408 by goroutine 846: - github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).addReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:224 +0x25e - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:325 +0x154 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:714 +0x529 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x47 - -Goroutine 54 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 846 (running) created at: - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x170 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 - github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c065792ff0 by goroutine 54: - github.com/ChainSafe/gossamer/dot/peerset.(*node).getReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:92 +0x10a - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).PeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:113 +0x117 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:704 +0x7bd - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c065792ff0 by goroutine 846: - github.com/ChainSafe/gossamer/dot/peerset.(*node).addReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:96 +0x1f0 - github.com/ChainSafe/gossamer/dot/peerset.(*PeersState).addReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerstate.go:223 +0x36 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).reportPeer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:325 +0x154 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).doWork() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:714 +0x529 - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start·dwrap·1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x47 - -Goroutine 54 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 846 (running) created at: - github.com/ChainSafe/gossamer/dot/peerset.(*PeerSet).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/peerset.go:673 +0x170 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:123 +0x154 - github.com/ChainSafe/gossamer/dot/network.(*Service).startPeerSetHandler() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:656 +0x81 - github.com/ChainSafe/gossamer/dot/network.(*Service).Start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:258 +0xea6 - github.com/ChainSafe/gossamer/dot/network.createTestService() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:106 +0x7a8 - github.com/ChainSafe/gossamer/dot/network.TestPeerReputation() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host_test.go:671 +0x1e4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60534/p2p/12D3KooWCjpj5fDQxbmyK1ermEon9L4Bnd6PtpTPrVKm8SfSaw7h pkg=network -=== CONT TestPeerReputation - testing.go:1152: race detected during execution of test ---- FAIL: TestPeerReputation (1.94s) -=== CONT TestStartService -2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60535/p2p/12D3KooWStzVmgNeF3GUy1WStsfTbNZ2YZ4qFvSnH66K1hmYGCnb pkg=network -2021-12-07T14:26:05-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestStartService3976781647/001/TestStartService/node/node.key pkg=network -2021-12-07T14:26:05-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMinPeers102499482/003/TestMinPeers/nodeB/node.key pkg=network -2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60536/p2p/12D3KooWMhP2FA9j9meaVBoCv4zKrbK5hWBQXotmRknccuBJWnyJ pkg=network -2021-12-07T14:26:05-04:00 DBUG connection successful with peer 12D3KooWJPsv2Tyha3gGiLxrmZbw9jdFWQgx9AJWDhv8PHoQ7TPg pkg=network -2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:05-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:05-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60537/p2p/12D3KooWG6dKYvHvtM6uwnAsTgZ3LG26gnzZJRd49siBPp7YC9vL pkg=network -2021-12-07T14:26:05-04:00 DBUG bootstrapping to peer 12D3KooWLLE7thnZ3bKqEmjm9zkjFKn5nwgRaYhCyLMZtvkcDxBZ pkg=network -2021-12-07T14:26:05-04:00 DBUG bootstrapping to peer 12D3KooWPcmHB9uVKBEFkmAnxBKEho5DPBkphA66QxZEo4akS1SN pkg=network -2021-12-07T14:26:05-04:00 DBUG connection successful with peer 12D3KooWLLE7thnZ3bKqEmjm9zkjFKn5nwgRaYhCyLMZtvkcDxBZ pkg=network -2021-12-07T14:26:05-04:00 DBUG connection successful with peer 12D3KooWPcmHB9uVKBEFkmAnxBKEho5DPBkphA66QxZEo4akS1SN pkg=network -2021-12-07T14:26:06-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:06-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/004/TestMaxPeers/node3/node.key pkg=network -2021-12-07T14:26:06-04:00 WARN min peers higher than max peers; setting to default pkg=network -2021-12-07T14:26:06-04:00 DBUG connection dropped successfully for peer 12D3KooWFrMTXo6H5fyVRbgRHRvsrAQotH3DHAwsPKdmwKrcjmNG pkg=network -=== CONT TestMaxPeers - connmgr_test.go:73: - Error Trace: service_test.go:102 - connmgr_test.go:73 - Error: Received unexpected error: - open /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/004/TestMaxPeers/node3/libp2p-datastore: too many open files - While opening directory: /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestMaxPeers1963342565/004/TestMaxPeers/node3/libp2p-datastore. - github.com/dgraph-io/badger/v2.syncDir - /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/dir_unix.go:109 - github.com/dgraph-io/badger/v2.helpRewrite - /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/manifest.go:294 - github.com/dgraph-io/badger/v2.helpOpenOrCreateManifestFile - /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/manifest.go:147 - github.com/dgraph-io/badger/v2.openOrCreateManifestFile - /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/manifest.go:127 - github.com/dgraph-io/badger/v2.Open - /Users/eclesiojunior/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/db.go:283 - github.com/ipfs/go-ds-badger2.NewDatastore - /Users/eclesiojunior/go/pkg/mod/github.com/ipfs/go-ds-badger2@v0.1.1/datastore.go:150 - github.com/ChainSafe/gossamer/dot/network.newHost - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/host.go:132 - github.com/ChainSafe/gossamer/dot/network.NewService - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:130 - github.com/ChainSafe/gossamer/dot/network.createTestService - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:101 - github.com/ChainSafe/gossamer/dot/network.TestMaxPeers - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/connmgr_test.go:73 - testing.tRunner - /usr/local/go/src/testing/testing.go:1259 - runtime.goexit - /usr/local/go/src/runtime/asm_amd64.s:1581 - Test: TestMaxPeers -2021-12-07T14:26:06-04:00 DBUG connection successful with peer 12D3KooWFrMTXo6H5fyVRbgRHRvsrAQotH3DHAwsPKdmwKrcjmNG pkg=network -2021-12-07T14:26:06-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:26:06-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network - testing.go:1152: race detected during execution of test ---- FAIL: TestMaxPeers (2.59s) -=== CONT TestHandleBlockAnnounceMessage -2021-12-07T14:26:06-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestHandleBlockAnnounceMessage2619289495/001/TestHandleBlockAnnounceMessage/nodeA/node.key pkg=network -2021-12-07T14:26:06-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:06-04:00 DBUG connection dropped successfully for peer 12D3KooWLLE7thnZ3bKqEmjm9zkjFKn5nwgRaYhCyLMZtvkcDxBZ pkg=network ---- PASS: TestStartService (0.79s) -=== CONT TestDecodeBlockAnnounceHandshake -=== CONT TestBroadcastMessages ---- PASS: TestDecodeBlockAnnounceHandshake (0.00s) -================== -WARNING: DATA RACE -Write at 0x00c0657f4258 by goroutine 87: - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:248 +0xe8b - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous read at 0x00c0657f4258 by goroutine 664: - github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:285 +0x3b2 - github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 - -Goroutine 87 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 664 (finished) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0x467 - github.com/ChainSafe/gossamer/dot/network.(*Service).GossipMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:530 +0x3d9 - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:241 +0xd56 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:26:06-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages529829691/001/TestBroadcastMessages/nodeA/node.key pkg=network -2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:26:06-04:00 DBUG gossiping from host 12D3KooWEonVtquoWcsj4cansGKjRHepxtuc8r4P944tyE9Vvr6r message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -================== -WARNING: DATA RACE -Read at 0x00c021dadf20 by goroutine 87: - runtime.mapaccess1_faststr() - /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf78 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c021dadf20 by goroutine 254: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 87 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 254 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c02a16b108 by goroutine 87: - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:255 +0xf85 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c02a16b108 by goroutine 254: - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 87 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 254 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -2021-12-07T14:26:06-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network -2021-12-07T14:26:06-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:06-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:06-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60539/p2p/12D3KooWDpjvuBferNGgUZNyevbfWvDgkwtAecw9k4LqzLwwvbkG pkg=network -=== CONT TestBannedPeer - testing.go:1152: race detected during execution of test -=== CONT Test_HandshakeTimeout - testing.go:1152: race detected during execution of test -=== CONT Test_sizedBufferPool ---- FAIL: TestBannedPeer (5.20s) -=== CONT TestEncodeBlockAnnounceHandshake -=== CONT TestBuild ---- PASS: Test_sizedBufferPool (0.00s) ---- FAIL: Test_HandshakeTimeout (13.52s) -=== CONT TestBlockAnnounceHandshakeSize ---- PASS: TestEncodeBlockAnnounceHandshake (0.00s) -=== CONT TestDecodeBlockAnnounce ---- PASS: TestBlockAnnounceHandshakeSize (0.00s) -=== CONT TestValidateBlockAnnounceHandshake ---- PASS: TestDecodeBlockAnnounce (0.00s) -=== CONT TestEncodeBlockAnnounceMessage ---- PASS: TestBuild (0.05s) ---- PASS: TestEncodeBlockAnnounceMessage (0.00s) -=== CONT TestEncodeTransactionMessageSingleExtrinsic -=== CONT TestEncodeBlockResponseMessage_WithAll ---- PASS: TestEncodeTransactionMessageSingleExtrinsic (0.00s) -=== CONT TestEncodeBlockResponseMessage_Empty ---- PASS: TestEncodeBlockResponseMessage_WithAll (0.01s) ---- PASS: TestEncodeBlockResponseMessage_Empty (0.00s) -=== CONT TestEncodeBlockResponseMessage_WithBody ---- PASS: TestEncodeBlockResponseMessage_WithBody (0.00s) -=== CONT TestEncodeBlockRequestMessage_NoOptionals -=== CONT TestBeginDiscovery_ThreeNodes ---- PASS: TestEncodeBlockRequestMessage_NoOptionals (0.00s) -2021-12-07T14:26:06-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestValidateBlockAnnounceHandshake2935554881/001/TestValidateBlockAnnounceHandshake/nodeA/node.key pkg=network -2021-12-07T14:26:06-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:06-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:06-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60540/p2p/12D3KooWNqugDjzAoN2zsAcKanwnwLpKsBQ1ykNmXt2kYyX9b1mq pkg=network -2021-12-07T14:26:06-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes593551894/001/TestBeginDiscovery_ThreeNodes/nodeA/node.key pkg=network -================== -WARNING: DATA RACE -Write at 0x00c056495810 by goroutine 87: - runtime.closechan() - /usr/local/go/src/runtime/chan.go:355 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:144 +0x7e - github.com/ChainSafe/gossamer/dot/network.(*Service).Stop() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:456 +0x223 - github.com/ChainSafe/gossamer/dot/network.createTestService.func1() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:110 +0x4a - testing.(*common).Cleanup.func1() - /usr/local/go/src/testing/testing.go:912 +0x199 - testing.(*common).runCleanup() - /usr/local/go/src/testing/testing.go:1049 +0x154 - testing.tRunner.func2() - /usr/local/go/src/testing/testing.go:1253 +0x4f - testing.tRunner() - /usr/local/go/src/testing/testing.go:1265 +0x268 - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous read at 0x00c056495810 by goroutine 1216: - runtime.chansend() - /usr/local/go/src/runtime/chan.go:158 +0x0 - github.com/ChainSafe/gossamer/dot/peerset.(*Handler).ReportPeer() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/peerset/handler.go:77 +0xf0 - github.com/ChainSafe/gossamer/dot/network.(*Service).sendData() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:315 +0x957 - github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding·dwrap·10() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0xb4 - -Goroutine 87 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 1216 (finished) created at: - github.com/ChainSafe/gossamer/dot/network.(*Service).broadcastExcluding() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/notifications.go:419 +0x467 - github.com/ChainSafe/gossamer/dot/network.(*Service).GossipMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service.go:530 +0x3d9 - github.com/ChainSafe/gossamer/dot/network.TestBroadcastDuplicateMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:252 +0xeda - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -=== CONT TestPersistentPeers - testing.go:1152: race detected during execution of test ---- FAIL: TestPersistentPeers (3.24s) -=== CONT TestRemovePeer -=== CONT TestBroadcastDuplicateMessage - testing.go:1152: race detected during execution of test -=== CONT TestSerivceIsMajorSyncMetrics ---- FAIL: TestBroadcastDuplicateMessage (2.45s) -=== CONT TestMinPeers - testing.go:1152: race detected during execution of test ---- FAIL: TestMinPeers (2.74s) ---- PASS: TestSerivceIsMajorSyncMetrics (0.00s) -2021-12-07T14:26:07-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer572055684/001/TestRemovePeer/nodeA/node.key pkg=network -2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:07-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60541/p2p/12D3KooWJfjCmpnZHwuaxbfyBr2Bk7WKQa3wpFudrFM3j4BPgz5p pkg=network -2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:07-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60542/p2p/12D3KooWKuR5DnN8k2H62oAAxKobd7j8tBT3rkzGucx9k5vdFuv5 pkg=network -2021-12-07T14:26:07-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:07-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60543/p2p/12D3KooWJkAyg5qi1KtDg359mTR3c5Dpz1y6YCGc4AcVm7DKDCWw pkg=network -=== CONT TestHandleBlockAnnounceMessage - testing.go:1152: race detected during execution of test ---- FAIL: TestHandleBlockAnnounceMessage (1.05s) -2021-12-07T14:26:07-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:07-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBroadcastMessages529829691/002/TestBroadcastMessages/nodeB/node.key pkg=network -2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:07-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60544/p2p/12D3KooWBVWZzSodSJets1LRYBK3wHHtxoQhfTiJdUzzYXpXfmE1 pkg=network -2021-12-07T14:26:07-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:07-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:07-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes593551894/002/TestBeginDiscovery_ThreeNodes/nodeB/node.key pkg=network -2021-12-07T14:26:07-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -=== CONT TestValidateBlockAnnounceHandshake - testing.go:1152: race detected during execution of test ---- FAIL: TestValidateBlockAnnounceHandshake (0.94s) -2021-12-07T14:26:07-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestRemovePeer572055684/002/TestRemovePeer/nodeB/node.key pkg=network -2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:07-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:07-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60545/p2p/12D3KooWNbJ1gGT5DNugwrNmNWvsUVfrtbyWWW8N4C3yBkY3XcXx pkg=network -2021-12-07T14:26:08-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:08-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:08-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60546/p2p/12D3KooWSXScNu7Ld3gwL5gMV4zVaZFvgjipokuyKkavQBuEcDFY pkg=network -2021-12-07T14:26:08-04:00 DBUG bootstrapping to peer 12D3KooWJkAyg5qi1KtDg359mTR3c5Dpz1y6YCGc4AcVm7DKDCWw pkg=network -2021-12-07T14:26:08-04:00 DBUG connection successful with peer 12D3KooWJkAyg5qi1KtDg359mTR3c5Dpz1y6YCGc4AcVm7DKDCWw pkg=network -2021-12-07T14:26:08-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:08-04:00 DBUG gossiping from host 12D3KooWNqugDjzAoN2zsAcKanwnwLpKsBQ1ykNmXt2kYyX9b1mq message of type 3: BlockAnnounceMessage ParentHash=0x0000000000000000000000000000000000000000000000000000000000000000 Number=896 StateRoot=0x0000000000000000000000000000000000000000000000000000000000000000 ExtrinsicsRoot=0x0000000000000000000000000000000000000000000000000000000000000000 Digest={{ map[2:{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} 4:{[0 0 0 0] []} 5:{[0 0 0 0] []} 6:{[0 0 0 0] []}]} []} pkg=network -2021-12-07T14:26:08-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:08-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:08-04:00 INFO Generating p2p identity with seed 0 and key file /var/folders/vj/qljhg8m12mxfl4bfs4yb_7qh0000gn/T/TestBeginDiscovery_ThreeNodes593551894/003/TestBeginDiscovery_ThreeNodes/nodeC/node.key pkg=network -2021-12-07T14:26:08-04:00 INFO registered notifications sub-protocol /gossamer/test/0/block-announces/1 pkg=network -2021-12-07T14:26:08-04:00 INFO registered notifications sub-protocol /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:08-04:00 INFO Started listening on /ip4/127.0.0.1/tcp/60548/p2p/12D3KooWPogTnV3D76ntdFNV9emAoSzaXmozBVUVxZBbDS2svwFi pkg=network -2021-12-07T14:26:09-04:00 DBUG connection dropped successfully for peer 12D3KooWJkAyg5qi1KtDg359mTR3c5Dpz1y6YCGc4AcVm7DKDCWw pkg=network -2021-12-07T14:26:09-04:00 INFO started network service with supported protocols /p2p/id/delta/1.0.0, /ipfs/id/1.0.0, /ipfs/id/push/1.0.0, /ipfs/ping/1.0.0, /gossamer/test/0/sync/2, /gossamer/test/0/light/2, /gossamer/test/0/block-announces/1, /gossamer/test/0/transactions/1 pkg=network -2021-12-07T14:26:09-04:00 DBUG starting DHT with bootnodes [{12D3KooWNbJ1gGT5DNugwrNmNWvsUVfrtbyWWW8N4C3yBkY3XcXx: [/ip4/127.0.0.1/tcp/60545]} {12D3KooWPogTnV3D76ntdFNV9emAoSzaXmozBVUVxZBbDS2svwFi: [/ip4/127.0.0.1/tcp/60548]}]... pkg=network ---- PASS: TestRemovePeer (2.35s) -================== -WARNING: DATA RACE -Read at 0x00c0264be7e0 by goroutine 86: - runtime.mapaccess1_faststr() - /usr/local/go/src/runtime/map_faststr.go:12 +0x0 - github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9a4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c0264be7e0 by goroutine 443: - runtime.mapassign_faststr() - /usr/local/go/src/runtime/map_faststr.go:202 +0x0 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x1f5 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 86 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 443 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -================== -WARNING: DATA RACE -Read at 0x00c02a16b948 by goroutine 86: - github.com/ChainSafe/gossamer/dot/network.TestBroadcastMessages() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:181 +0x9b1 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c02a16b948 by goroutine 443: - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:137 +0x204 - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleMessage-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:135 +0x6d - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).readStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:184 +0x3bc - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:132 +0xab - github.com/ChainSafe/gossamer/dot/network.(*testStreamHandler).handleStream-fm() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/helpers_test.go:124 +0x4d - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:529 +0x86 - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler·dwrap·3() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x74 - -Goroutine 86 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 443 (running) created at: - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:372 +0x7ca - github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p@v0.15.1/p2p/host/basic/basic_host.go:329 +0x4d - github.com/libp2p/go-libp2p-swarm.(*Conn).start.func1.1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-swarm@v0.5.3/swarm_conn.go:125 +0xe4 -================== -2021-12-07T14:26:10-04:00 DBUG failed to read from stream using protocol /gossamer/test/0/block-announces/1: failed to read length: stream reset pkg=network -2021-12-07T14:26:10-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:26:10-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T14:26:10-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network -2021-12-07T14:26:10-04:00 DBUG starting DHT with bootnodes [{12D3KooWKuR5DnN8k2H62oAAxKobd7j8tBT3rkzGucx9k5vdFuv5: [/ip4/127.0.0.1/tcp/60542]}]... pkg=network -=== CONT TestBroadcastMessages - testing.go:1152: race detected during execution of test ---- FAIL: TestBroadcastMessages (3.87s) -2021-12-07T14:26:10-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T14:26:10-04:00 DBUG starting DHT with bootnodes [{12D3KooWPWuNizWj3b9VuvYEzvLLtgvBBkhtg6Q6bThgVRptCZv1: [/ip4/127.0.0.1/tcp/60512]}]... pkg=network -2021-12-07T14:26:11-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:26:11-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T14:26:11-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T14:26:11-04:00 DBUG starting DHT with bootnodes [{12D3KooWKuR5DnN8k2H62oAAxKobd7j8tBT3rkzGucx9k5vdFuv5: [/ip4/127.0.0.1/tcp/60542]}]... pkg=network -2021-12-07T14:26:11-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:26:11-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T14:26:11-04:00 WARN failed to advertise in the DHT: failed to find any peer in table pkg=network -2021-12-07T14:26:11-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T14:26:11-04:00 DBUG starting DHT with bootnodes [{12D3KooWAMjrqHWAwXEWL1WrvUJj3Sr6rhL9Yyk4brS2vq2CrFuF: [/ip4/127.0.0.1/tcp/60503]}]... pkg=network -================== -WARNING: DATA RACE -Read at 0x00c02331ee90 by goroutine 37: - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x264 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Previous write at 0x00c02331ee90 by goroutine 1067: - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:108 +0x6b2 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 37 (running) created at: - testing.(*T).Run() - /usr/local/go/src/testing/testing.go:1306 +0x726 - testing.runTests.func1() - /usr/local/go/src/testing/testing.go:1598 +0x99 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.runTests() - /usr/local/go/src/testing/testing.go:1596 +0x7ca - testing.(*M).Run() - /usr/local/go/src/testing/testing.go:1504 +0x9d1 - github.com/ChainSafe/gossamer/dot/network.TestMain() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/service_test.go:118 +0x33 - main.main() - _testmain.go:205 +0x264 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c063d2bc70 by goroutine 460: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x111 - -Previous write at 0x00c063d2bc70 by goroutine 1067: - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:139 +0x93d - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 460 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c05f038000 by goroutine 460: - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindLocal() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:714 +0x5d - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:625 +0x1b1 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b - -Previous write at 0x00c05f038000 by goroutine 1067: - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 460 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c05f038058 by goroutine 460: - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b - -Previous write at 0x00c05f038058 by goroutine 1067: - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 460 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c05f038930 by goroutine 460: - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b - -Previous write at 0x00c05f038930 by goroutine 1067: - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 460 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c059fa4318 by goroutine 460: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b - -Previous write at 0x00c059fa4318 by goroutine 1067: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 460 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c059fa4360 by goroutine 460: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:394 +0xde - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b - -Previous write at 0x00c059fa4360 by goroutine 1067: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 460 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c059fa4378 by goroutine 460: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:399 +0x148 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b - -Previous write at 0x00c059fa4378 by goroutine 1067: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 460 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c059f94e98 by goroutine 460: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2ab - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b - -Previous write at 0x00c059f94e98 by goroutine 1067: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1c4 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 460 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c059f94e90 by goroutine 460: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2cb - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b - -Previous write at 0x00c059f94e90 by goroutine 1067: - github.com/libp2p/go-libp2p-kbucket.newBucket() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x12a - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 460 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c05f02afe8 by goroutine 460: - container/list.(*List).Front() - /usr/local/go/src/container/list/list.go:70 +0x57 - github.com/libp2p/go-libp2p-kbucket.(*peerDistanceSorter).appendPeersFromList() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/sorting.go:40 +0x69 - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:404 +0x2e4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func1() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:241 +0x13b - -Previous write at 0x00c05f02afe8 by goroutine 1067: - container/list.(*List).Init() - /usr/local/go/src/container/list/list.go:57 +0x113 - container/list.New() - /usr/local/go/src/container/list/list.go:62 +0x96 - github.com/libp2p/go-libp2p-kbucket.newBucket() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/bucket.go:45 +0x121 - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:66 +0x1ad - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:124 +0x73c - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 460 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:239 +0x417 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c063d2bc78 by goroutine 1250: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x115 - -Previous write at 0x00c063d2bc78 by goroutine 1067: - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:139 +0x93d - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 1250 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c054d9aa80 by goroutine 1250: - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindLocal() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:714 +0x5d - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:625 +0x1b1 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 - -Previous write at 0x00c054d9aa80 by goroutine 1067: - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:278 +0x4d7 - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 1250 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c054d9aad8 by goroutine 1250: - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x126 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 - -Previous write at 0x00c054d9aad8 by goroutine 1067: - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 1250 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c054d9b3b0 by goroutine 1250: - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x146 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 - -Previous write at 0x00c054d9b3b0 by goroutine 1067: - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:273 +0x339 - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 1250 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -================== -WARNING: DATA RACE -Read at 0x00c059e8dd58 by goroutine 1250: - github.com/libp2p/go-libp2p-kbucket.(*RoutingTable).NearestPeers() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:388 +0x70 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:151 +0x172 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/query.go:81 +0xc4 - github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/routing.go:629 +0x3d9 - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer.func2() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:245 +0x144 - -Previous write at 0x00c059e8dd58 by goroutine 1067: - github.com/libp2p/go-libp2p-kbucket.NewRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.4.7/table.go:65 +0x176 - github.com/libp2p/go-libp2p-kad-dht.makeRoutingTable() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:386 +0x2c5 - github.com/libp2p/go-libp2p-kad-dht.makeDHT() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:313 +0xadd - github.com/libp2p/go-libp2p-kad-dht.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dht.go:180 +0x2b7 - github.com/libp2p/go-libp2p-kad-dht/dual.New() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:134 +0x911 - github.com/ChainSafe/gossamer/dot/network.(*discovery).start() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery.go:103 +0x688 - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery·dwrap·26() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x39 - -Goroutine 1250 (running) created at: - github.com/libp2p/go-libp2p-kad-dht/dual.(*DHT).FindPeer() - /Users/eclesiojunior/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.11.1/dual/dual.go:243 +0x617 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:91 +0x292 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 - -Goroutine 1067 (running) created at: - github.com/ChainSafe/gossamer/dot/network.newTestDiscovery() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:45 +0x4d7 - github.com/ChainSafe/gossamer/dot/network.TestKadDHT() - /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/dot/network/discovery_test.go:80 +0xe4 - testing.tRunner() - /usr/local/go/src/testing/testing.go:1259 +0x22f - testing.(*T).Run·dwrap·21() - /usr/local/go/src/testing/testing.go:1306 +0x47 -================== -2021-12-07T14:26:12-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:26:12-04:00 DBUG advertising ourselves in the DHT... pkg=network -2021-12-07T14:26:12-04:00 DBUG DHT discovery started! pkg=network -2021-12-07T14:26:12-04:00 DBUG advertising ourselves in the DHT... pkg=network -=== CONT TestBeginDiscovery_ThreeNodes - testing.go:1152: race detected during execution of test ---- FAIL: TestBeginDiscovery_ThreeNodes (6.07s) -2021-12-07T14:26:21-04:00 DBUG no peers yet, waiting to start DHT... pkg=network -2021-12-07T14:26:21-04:00 DBUG starting DHT with bootnodes [{12D3KooWAMjrqHWAwXEWL1WrvUJj3Sr6rhL9Yyk4brS2vq2CrFuF: [/ip4/127.0.0.1/tcp/60503]}]... pkg=network -2021-12-07T14:26:22-04:00 DBUG DHT discovery started! pkg=network -=== CONT TestKadDHT - testing.go:1152: race detected during execution of test ---- FAIL: TestKadDHT (22.49s) -FAIL -FAIL github.com/ChainSafe/gossamer/dot/network 31.050s -FAIL From 56b20e019529db2e7674dcdd0f1f55fad76ea844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Fri, 14 Jan 2022 16:31:01 -0400 Subject: [PATCH 10/35] chore: remove unused `stopCh` --- dot/peerset/peerset.go | 1 - 1 file changed, 1 deletion(-) diff --git a/dot/peerset/peerset.go b/dot/peerset/peerset.go index ff77d72f3d..ff38daf64a 100644 --- a/dot/peerset/peerset.go +++ b/dot/peerset/peerset.go @@ -179,7 +179,6 @@ type PeerSet struct { nextPeriodicAllocSlots time.Duration // chan for receiving action request. actionQueue <-chan action - stopCh chan struct{} } // config is configuration of a single set. From 5879434902cffee1c0fe7cd1cfa71f9f46a244e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Fri, 14 Jan 2022 17:08:47 -0400 Subject: [PATCH 11/35] chore: resolve stream handler race condition --- dot/network/service.go | 5 ++++- dot/network/stream_manager.go | 18 +++++++++--------- dot/network/stream_manager_test.go | 20 +++++++++++--------- 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/dot/network/service.go b/dot/network/service.go index 25464f4b02..1b534092eb 100644 --- a/dot/network/service.go +++ b/dot/network/service.go @@ -146,6 +146,9 @@ func NewService(cfg *Config) (*Service, error) { } bufPool := newSizedBufferPool(preAllocateInPool, poolSize) + const cleanupStreamInterval = time.Minute + streamManager := newStreamManager(ctx, cleanupStreamInterval) + network := &Service{ ctx: ctx, cancel: cancel, @@ -163,7 +166,7 @@ func NewService(cfg *Config) (*Service, error) { telemetryInterval: cfg.telemetryInterval, closeCh: make(chan struct{}), bufPool: bufPool, - streamManager: newStreamManager(ctx), + streamManager: streamManager, blockResponseBuf: make([]byte, maxBlockResponseSize), telemetry: cfg.Telemetry, } diff --git a/dot/network/stream_manager.go b/dot/network/stream_manager.go index 4b846dc0fe..8ac6ce3262 100644 --- a/dot/network/stream_manager.go +++ b/dot/network/stream_manager.go @@ -11,8 +11,6 @@ import ( "github.com/libp2p/go-libp2p-core/network" ) -var cleanupStreamInterval = time.Minute - type streamData struct { lastReceivedMessage time.Time stream network.Stream @@ -23,20 +21,22 @@ type streamData struct { // This prevents keeping stale streams open and continuously trying to // read from it, which takes up lots of CPU over time. type streamManager struct { - ctx context.Context - streamDataMap *sync.Map //map[string]*streamData + ctx context.Context + streamDataMap *sync.Map //map[string]*streamData + cleanupStreamInterval time.Duration } -func newStreamManager(ctx context.Context) *streamManager { +func newStreamManager(ctx context.Context, cleanupStreamInterval time.Duration) *streamManager { return &streamManager{ - ctx: ctx, - streamDataMap: new(sync.Map), + ctx: ctx, + streamDataMap: new(sync.Map), + cleanupStreamInterval: cleanupStreamInterval, } } func (sm *streamManager) start() { go func() { - ticker := time.NewTicker(cleanupStreamInterval) + ticker := time.NewTicker(sm.cleanupStreamInterval) defer ticker.Stop() for { @@ -56,7 +56,7 @@ func (sm *streamManager) cleanupStreams() { lastReceived := sdata.lastReceivedMessage stream := sdata.stream - if time.Since(lastReceived) > cleanupStreamInterval { + if time.Since(lastReceived) > sm.cleanupStreamInterval { _ = stream.Close() sm.streamDataMap.Delete(id) } diff --git a/dot/network/stream_manager_test.go b/dot/network/stream_manager_test.go index 83ccad5e1d..114a3c6760 100644 --- a/dot/network/stream_manager_test.go +++ b/dot/network/stream_manager_test.go @@ -18,19 +18,17 @@ import ( "github.com/stretchr/testify/require" ) -func setupStreamManagerTest(t *testing.T) (context.Context, []libp2phost.Host, []*streamManager) { +func setupStreamManagerTest(t *testing.T, cleanupStreamInterval time.Duration) (context.Context, []libp2phost.Host, []*streamManager) { t.Helper() ctx, cancel := context.WithCancel(context.Background()) - cleanupStreamInterval = time.Millisecond * 500 t.Cleanup(func() { - cleanupStreamInterval = time.Minute cancel() }) - smA := newStreamManager(ctx) - smB := newStreamManager(ctx) + smA := newStreamManager(ctx, cleanupStreamInterval) + smB := newStreamManager(ctx, cleanupStreamInterval) portA := availablePort(t) portB := availablePort(t) @@ -66,7 +64,9 @@ func setupStreamManagerTest(t *testing.T) (context.Context, []libp2phost.Host, [ func TestStreamManager(t *testing.T) { t.Parallel() - ctx, hosts, sms := setupStreamManagerTest(t) + const interval = time.Millisecond * 50 + ctx, hosts, sms := setupStreamManagerTest(t, interval) + ha, hb := hosts[0], hosts[1] smA, smB := sms[0], sms[1] @@ -77,7 +77,7 @@ func TestStreamManager(t *testing.T) { smA.start() smB.start() - time.Sleep(cleanupStreamInterval * 2) + time.Sleep(interval * 2) connsAToB := ha.Network().ConnsToPeer(hb.ID()) require.GreaterOrEqual(t, len(connsAToB), 1) require.Equal(t, 0, len(connsAToB[0].GetStreams())) @@ -89,7 +89,9 @@ func TestStreamManager(t *testing.T) { func TestStreamManager_KeepStream(t *testing.T) { t.Skip() // TODO: test is flaky (#1026) - ctx, hosts, sms := setupStreamManagerTest(t) + const interval = time.Millisecond * 50 + + ctx, hosts, sms := setupStreamManagerTest(t, interval) ha, hb := hosts[0], hosts[1] smA, smB := sms[0], sms[1] @@ -100,7 +102,7 @@ func TestStreamManager_KeepStream(t *testing.T) { smA.start() smB.start() - time.Sleep(cleanupStreamInterval / 3) + time.Sleep(interval / 3) connsAToB := ha.Network().ConnsToPeer(hb.ID()) require.GreaterOrEqual(t, len(connsAToB), 1) require.Equal(t, 1, len(connsAToB[0].GetStreams())) From 03f77aa7fed18e745e7af382dd0c44f5b5336087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Mon, 17 Jan 2022 11:25:33 -0400 Subject: [PATCH 12/35] chore: resolve race at `TestExistingStream` --- dot/network/helpers_test.go | 40 +++++++++++++------------------------ dot/network/host_test.go | 18 ++++++++++++----- 2 files changed, 27 insertions(+), 31 deletions(-) diff --git a/dot/network/helpers_test.go b/dot/network/helpers_test.go index a6d8cf36e1..c362fa78df 100644 --- a/dot/network/helpers_test.go +++ b/dot/network/helpers_test.go @@ -7,6 +7,7 @@ import ( "errors" "io" "math/big" + "sync" "testing" "github.com/ChainSafe/gossamer/dot/types" @@ -19,33 +20,9 @@ import ( const blockRequestSize uint32 = 128 -func testBlockResponseMessage() *BlockResponseMessage { - msg := &BlockResponseMessage{ - BlockData: []*types.BlockData{}, - } - - for i := 0; i < int(blockRequestSize); i++ { - testHeader := &types.Header{ - Number: big.NewInt(int64(77 + i)), - Digest: types.NewDigest(), - } - - body := types.NewBody([]types.Extrinsic{[]byte{4, 4, 2}}) - - msg.BlockData = append(msg.BlockData, &types.BlockData{ - Hash: testHeader.Hash(), - Header: testHeader, - Body: body, - MessageQueue: nil, - Receipt: nil, - Justification: nil, - }) - } - - return msg -} - type testStreamHandler struct { + sync.Mutex + messages map[peer.ID][]Message decoder messageDecoder exit bool @@ -70,6 +47,9 @@ func (s *testStreamHandler) handleStream(stream libp2pnetwork.Stream) { } func (s *testStreamHandler) handleMessage(stream libp2pnetwork.Stream, msg Message) error { + s.Lock() + defer s.Unlock() + msgs := s.messages[stream.Conn().RemotePeer()] s.messages[stream.Conn().RemotePeer()] = append(msgs, msg) announceHandshake := &BlockAnnounceHandshake{ @@ -127,6 +107,14 @@ func (s *testStreamHandler) readStream(stream libp2pnetwork.Stream, } } +func (s *testStreamHandler) messagesFrom(peerID peer.ID) (messages []Message, ok bool) { + s.Lock() + defer s.Unlock() + + messages, ok = s.messages[peerID] + return messages, ok +} + var starting, _ = variadic.NewUint64OrHash(uint64(1)) var one = uint32(1) diff --git a/dot/network/host_test.go b/dot/network/host_test.go index af05dc7b29..4ccfa618b1 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -234,7 +234,7 @@ func TestSend(t *testing.T) { time.Sleep(TestMessageTimeout) - msg, ok := handler.messages[nodeA.host.id()] + msg, ok := handler.messagesFrom(nodeA.host.id()) require.True(t, ok) require.Equal(t, 1, len(msg)) require.Equal(t, testBlockReqMessage, msg[0]) @@ -287,24 +287,32 @@ func TestExistingStream(t *testing.T) { require.NoError(t, err) time.Sleep(TestMessageTimeout) - require.NotNil(t, handlerB.messages[nodeA.host.id()], "node B timeout waiting for message from node A") + + messages, _ := handlerB.messagesFrom(nodeA.host.id()) + assert.Len(t, messages, 1) + require.NotNil(t, messages, "node B timeout waiting for message from node A") // node A uses the stream to send a second message err = nodeA.host.writeToStream(stream, testBlockReqMessage) require.NoError(t, err) - require.NotNil(t, handlerB.messages[nodeA.host.id()], "node B timeout waiting for message from node A") + + messages, _ = handlerB.messagesFrom(nodeA.host.id()) + require.NotNil(t, messages, "node B timeout waiting for message from node A") // node B opens the stream to send the first message stream, err = nodeB.host.send(addrInfoA.ID, nodeB.host.protocolID, testBlockReqMessage) require.NoError(t, err) time.Sleep(TestMessageTimeout) - require.NotNil(t, handlerA.messages[nodeB.host.id()], "node A timeout waiting for message from node B") + messages, _ = handlerA.messagesFrom(nodeB.host.id()) + require.NotNil(t, messages, "node A timeout waiting for message from node B") // node B uses the stream to send a second message err = nodeB.host.writeToStream(stream, testBlockReqMessage) require.NoError(t, err) - require.NotNil(t, handlerA.messages[nodeB.host.id()], "node A timeout waiting for message from node B") + + messages, _ = handlerA.messagesFrom(nodeB.host.id()) + require.NotNil(t, messages, "node A timeout waiting for message from node B") } func TestStreamCloseMetadataCleanup(t *testing.T) { From bbaa958a8851c985b3b596d537cf15b56c638aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Mon, 17 Jan 2022 12:06:08 -0400 Subject: [PATCH 13/35] chore: resolve race at `(*PeersState).getNode()` --- dot/network/helpers_test.go | 2 -- dot/peerset/peerstate.go | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dot/network/helpers_test.go b/dot/network/helpers_test.go index c362fa78df..e712cffe57 100644 --- a/dot/network/helpers_test.go +++ b/dot/network/helpers_test.go @@ -18,8 +18,6 @@ import ( "github.com/libp2p/go-libp2p-core/peer" ) -const blockRequestSize uint32 = 128 - type testStreamHandler struct { sync.Mutex diff --git a/dot/peerset/peerstate.go b/dot/peerset/peerstate.go index 90b5f59040..7fba82a724 100644 --- a/dot/peerset/peerstate.go +++ b/dot/peerset/peerstate.go @@ -114,6 +114,9 @@ type PeersState struct { } func (ps *PeersState) getNode(p peer.ID) (*node, error) { + ps.mu.Lock() + defer ps.mu.Unlock() + if n, ok := ps.nodes[p]; ok { return n, nil } From 0518139a11adbf4159578f5e567674c4ee941576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Mon, 17 Jan 2022 15:04:13 -0400 Subject: [PATCH 14/35] chore: fix data race at `TestStreamCloseEOF` --- dot/network/helpers_test.go | 8 ++++++-- dot/network/host_test.go | 10 +++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/dot/network/helpers_test.go b/dot/network/helpers_test.go index e712cffe57..d2bf5fb275 100644 --- a/dot/network/helpers_test.go +++ b/dot/network/helpers_test.go @@ -23,13 +23,17 @@ type testStreamHandler struct { messages map[peer.ID][]Message decoder messageDecoder - exit bool + + // exitChan is a notify chan that the readStream + // works and sucessfuly returns + exitChan chan struct{} } func newTestStreamHandler(decoder messageDecoder) *testStreamHandler { return &testStreamHandler{ messages: make(map[peer.ID][]Message), decoder: decoder, + exitChan: make(chan struct{}), } } @@ -75,7 +79,7 @@ func (s *testStreamHandler) readStream(stream libp2pnetwork.Stream, msgBytes := make([]byte, maxBlockResponseSize) defer func() { - s.exit = true + close(s.exitChan) }() for { diff --git a/dot/network/host_test.go b/dot/network/host_test.go index 4ccfa618b1..f9b6e5514f 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -566,7 +566,6 @@ func TestStreamCloseEOF(t *testing.T) { nodeB.noGossip = true handler := newTestStreamHandler(testBlockRequestMessageDecoder) nodeB.host.registerStreamHandler(nodeB.host.protocolID, handler.handleStream) - require.False(t, handler.exit) addrInfoB := nodeB.host.addrInfo() err := nodeA.host.connect(addrInfoB) @@ -581,14 +580,15 @@ func TestStreamCloseEOF(t *testing.T) { stream, err := nodeA.host.send(addrInfoB.ID, nodeB.host.protocolID, testBlockReqMessage) require.NoError(t, err) - require.False(t, handler.exit) err = stream.Close() require.NoError(t, err) - time.Sleep(TestBackoffTimeout) - - require.True(t, handler.exit) + select { + case <-time.After(time.Millisecond * 500): + require.Fail(t, "stream handler does not exit after stream closed") + case <-handler.exitChan: + } } // Test to check the nodes connection by peer set manager From ec8dece5d10b38631dd4c69cdad2a54f426ebdbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Mon, 17 Jan 2022 15:51:59 -0400 Subject: [PATCH 15/35] chore: add `MessageCacheTTL` at node config --- dot/network/config.go | 2 ++ dot/network/host.go | 2 +- dot/network/service_test.go | 31 ++++++++++++++++++------------- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/dot/network/config.go b/dot/network/config.go index 42011aff4e..7ad6b93070 100644 --- a/dot/network/config.go +++ b/dot/network/config.go @@ -107,6 +107,8 @@ type Config struct { SlotDuration time.Duration Telemetry telemetry.Client + + MessageCacheTTL time.Duration } // build checks the configuration, sets up the private key for the network service, diff --git a/dot/network/host.go b/dot/network/host.go index 1dbdda5d9c..0b43a025df 100644 --- a/dot/network/host.go +++ b/dot/network/host.go @@ -201,7 +201,7 @@ func newHost(ctx context.Context, cfg *Config) (*host, error) { return int64(1) }, } - msgCache, err := newMessageCache(config, msgCacheTTL) + msgCache, err := newMessageCache(config, cfg.MessageCacheTTL) if err != nil { return nil, err } diff --git a/dot/network/service_test.go b/dot/network/service_test.go index d15fdf93ee..54c5b78dfd 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -255,20 +255,21 @@ func TestBroadcastMessages(t *testing.T) { // simulate message sent from core service nodeA.GossipMessage(anounceMessage) time.Sleep(time.Second * 2) - require.NotNil(t, handler.messages[nodeA.host.id()]) + + messages, _ := handler.messagesFrom(nodeA.host.id()) + require.NotNil(t, messages) } func TestBroadcastDuplicateMessage(t *testing.T) { t.Parallel() - msgCacheTTL = 2 * time.Second - basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ - BasePath: basePathA, - Port: availablePort(t), - NoBootstrap: true, - NoMDNS: true, + BasePath: basePathA, + Port: availablePort(t), + NoBootstrap: true, + NoMDNS: true, + MessageCacheTTL: 2 * time.Second, } nodeA := createTestService(t, configA) @@ -276,10 +277,11 @@ func TestBroadcastDuplicateMessage(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ - BasePath: basePathB, - Port: availablePort(t), - NoBootstrap: true, - NoMDNS: true, + BasePath: basePathB, + Port: availablePort(t), + NoBootstrap: true, + NoMDNS: true, + MessageCacheTTL: 2 * time.Second, } nodeB := createTestService(t, configB) @@ -320,7 +322,8 @@ func TestBroadcastDuplicateMessage(t *testing.T) { } time.Sleep(time.Millisecond * 200) - require.Equal(t, 1, len(handler.messages[nodeA.host.id()])) + messages, _ := handler.messagesFrom(nodeA.host.id()) + require.Len(t, messages, 1) nodeA.host.messageCache = nil @@ -329,7 +332,9 @@ func TestBroadcastDuplicateMessage(t *testing.T) { nodeA.GossipMessage(announceMessage) time.Sleep(time.Millisecond * 10) } - require.Equal(t, 6, len(handler.messages[nodeA.host.id()])) + + messages, _ = handler.messagesFrom(nodeA.host.id()) + require.Len(t, messages, 6) } func TestService_NodeRoles(t *testing.T) { From 59cc12436ec1e69b22a198f44eeaf4c2d71b30d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Mon, 17 Jan 2022 16:10:39 -0400 Subject: [PATCH 16/35] chore: split tests to avoid data race --- dot/network/service_test.go | 72 +++++++++++++++++++++++++++++++++---- 1 file changed, 65 insertions(+), 7 deletions(-) diff --git a/dot/network/service_test.go b/dot/network/service_test.go index 54c5b78dfd..e7412874a7 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -260,7 +260,7 @@ func TestBroadcastMessages(t *testing.T) { require.NotNil(t, messages) } -func TestBroadcastDuplicateMessage(t *testing.T) { +func Test_Broadcast_Duplicate_Messages_WithDisabled_MessageCache(t *testing.T) { t.Parallel() basePathA := utils.NewTestBasePath(t, "nodeA") @@ -315,7 +315,10 @@ func TestBroadcastDuplicateMessage(t *testing.T) { Digest: types.NewDigest(), } - // Only one message will be sent. + // disable message cache before sent the messages + nodeA.host.messageCache = nil + + // All 5 message will be sent since cache is disabled. for i := 0; i < 5; i++ { nodeA.GossipMessage(announceMessage) time.Sleep(time.Millisecond * 10) @@ -323,18 +326,73 @@ func TestBroadcastDuplicateMessage(t *testing.T) { time.Sleep(time.Millisecond * 200) messages, _ := handler.messagesFrom(nodeA.host.id()) - require.Len(t, messages, 1) + require.Len(t, messages, 6) +} - nodeA.host.messageCache = nil +func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { + t.Parallel() - // All 5 message will be sent since cache is disabled. + basePathA := utils.NewTestBasePath(t, "nodeA") + configA := &Config{ + BasePath: basePathA, + Port: availablePort(t), + NoBootstrap: true, + NoMDNS: true, + MessageCacheTTL: 2 * time.Second, + } + + nodeA := createTestService(t, configA) + nodeA.noGossip = true + + basePathB := utils.NewTestBasePath(t, "nodeB") + configB := &Config{ + BasePath: basePathB, + Port: availablePort(t), + NoBootstrap: true, + NoMDNS: true, + MessageCacheTTL: 2 * time.Second, + } + + nodeB := createTestService(t, configB) + nodeB.noGossip = true + + handler := newTestStreamHandler(testBlockAnnounceHandshakeDecoder) + nodeB.host.registerStreamHandler(nodeB.host.protocolID+blockAnnounceID, handler.handleStream) + + addrInfoB := nodeB.host.addrInfo() + err := nodeA.host.connect(addrInfoB) + // retry connect if "failed to dial" error + if failedToDial(err) { + time.Sleep(TestBackoffTimeout) + err = nodeA.host.connect(addrInfoB) + } + require.NoError(t, err) + + stream, err := nodeA.host.h.NewStream(context.Background(), nodeB.host.id(), nodeB.host.protocolID+blockAnnounceID) + require.NoError(t, err) + require.NotNil(t, stream) + + protocol := nodeA.notificationsProtocols[BlockAnnounceMsgType] + protocol.outboundHandshakeData.Store(nodeB.host.id(), &handshakeData{ + received: true, + validated: true, + stream: stream, + }) + + announceMessage := &BlockAnnounceMessage{ + Number: big.NewInt(128 * 7), + Digest: types.NewDigest(), + } + + // Only one message will be sent. for i := 0; i < 5; i++ { nodeA.GossipMessage(announceMessage) time.Sleep(time.Millisecond * 10) } - messages, _ = handler.messagesFrom(nodeA.host.id()) - require.Len(t, messages, 6) + time.Sleep(time.Millisecond * 200) + messages, _ := handler.messagesFrom(nodeA.host.id()) + require.Len(t, messages, 1) } func TestService_NodeRoles(t *testing.T) { From a43421c1aacb7e9cb11fd75fc351a64dce13d29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Mon, 17 Jan 2022 16:17:21 -0400 Subject: [PATCH 17/35] chore: introduce mutexes at peerset handler to avoide close a channel while writing on it --- dot/network/service_test.go | 2 +- dot/peerset/handler.go | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/dot/network/service_test.go b/dot/network/service_test.go index e7412874a7..824ee81346 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -326,7 +326,7 @@ func Test_Broadcast_Duplicate_Messages_WithDisabled_MessageCache(t *testing.T) { time.Sleep(time.Millisecond * 200) messages, _ := handler.messagesFrom(nodeA.host.id()) - require.Len(t, messages, 6) + require.Len(t, messages, 5) } func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { diff --git a/dot/peerset/handler.go b/dot/peerset/handler.go index ab69592daa..d4d5a3cee6 100644 --- a/dot/peerset/handler.go +++ b/dot/peerset/handler.go @@ -5,12 +5,15 @@ package peerset import ( "context" + "sync" "github.com/libp2p/go-libp2p-core/peer" ) // Handler manages peerSet. type Handler struct { + mu sync.Mutex + actionQueue chan<- action peerSet *PeerSet closeCh chan struct{} @@ -32,6 +35,9 @@ func NewPeerSetHandler(cfg *ConfigSet) (*Handler, error) { // AddReservedPeer adds reserved peer into peerSet. func (h *Handler) AddReservedPeer(setID int, peers ...peer.ID) { + h.mu.Lock() + defer h.mu.Unlock() + h.actionQueue <- action{ actionCall: addReservedPeer, setID: setID, @@ -41,6 +47,9 @@ func (h *Handler) AddReservedPeer(setID int, peers ...peer.ID) { // RemoveReservedPeer remove reserved peer from peerSet. func (h *Handler) RemoveReservedPeer(setID int, peers ...peer.ID) { + h.mu.Lock() + defer h.mu.Unlock() + h.actionQueue <- action{ actionCall: removeReservedPeer, setID: setID, @@ -50,6 +59,9 @@ func (h *Handler) RemoveReservedPeer(setID int, peers ...peer.ID) { // SetReservedPeer set the reserve peer into peerSet func (h *Handler) SetReservedPeer(setID int, peers ...peer.ID) { + h.mu.Lock() + defer h.mu.Unlock() + h.actionQueue <- action{ actionCall: setReservedPeers, setID: setID, @@ -59,6 +71,9 @@ func (h *Handler) SetReservedPeer(setID int, peers ...peer.ID) { // AddPeer adds peer to peerSet. func (h *Handler) AddPeer(setID int, peers ...peer.ID) { + h.mu.Lock() + defer h.mu.Unlock() + h.actionQueue <- action{ actionCall: addToPeerSet, setID: setID, @@ -68,6 +83,9 @@ func (h *Handler) AddPeer(setID int, peers ...peer.ID) { // RemovePeer removes peer from peerSet. func (h *Handler) RemovePeer(setID int, peers ...peer.ID) { + h.mu.Lock() + defer h.mu.Unlock() + h.actionQueue <- action{ actionCall: removeFromPeerSet, setID: setID, @@ -77,6 +95,9 @@ func (h *Handler) RemovePeer(setID int, peers ...peer.ID) { // ReportPeer reports ReputationChange according to the peer behaviour. func (h *Handler) ReportPeer(rep ReputationChange, peers ...peer.ID) { + h.mu.Lock() + defer h.mu.Unlock() + h.actionQueue <- action{ actionCall: reportPeer, reputation: rep, @@ -86,6 +107,9 @@ func (h *Handler) ReportPeer(rep ReputationChange, peers ...peer.ID) { // Incoming calls when we have an incoming connection from peer. func (h *Handler) Incoming(setID int, peers ...peer.ID) { + h.mu.Lock() + defer h.mu.Unlock() + h.actionQueue <- action{ actionCall: incoming, peers: peers, @@ -100,6 +124,9 @@ func (h *Handler) Messages() chan Message { // DisconnectPeer calls for disconnecting a connection from peer. func (h *Handler) DisconnectPeer(setID int, peers ...peer.ID) { + h.mu.Lock() + defer h.mu.Unlock() + h.actionQueue <- action{ actionCall: disconnect, setID: setID, @@ -130,6 +157,9 @@ func (h *Handler) Start(ctx context.Context) { // SortedPeers return chan for sorted connected peer in the peerSet. func (h *Handler) SortedPeers(setIdx int) chan peer.IDSlice { + h.mu.Lock() + defer h.mu.Unlock() + resultPeersCh := make(chan peer.IDSlice) h.actionQueue <- action{ actionCall: sortedPeers, @@ -142,6 +172,9 @@ func (h *Handler) SortedPeers(setIdx int) chan peer.IDSlice { // Stop closes the actionQueue and result message chan. func (h *Handler) Stop() { + h.mu.Lock() + defer h.mu.Unlock() + select { case <-h.closeCh: default: From e7cf32f471793b3debf2d270bb7673c0f02e80bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Mon, 17 Jan 2022 17:08:53 -0400 Subject: [PATCH 18/35] feat: remove race conditions from `dot/network` package --- dot/network/service.go | 62 +++++++++++++++++++++++----------------- dot/peerset/peerstate.go | 7 +++-- 2 files changed, 39 insertions(+), 30 deletions(-) diff --git a/dot/network/service.go b/dot/network/service.go index 1b534092eb..cb6f301a15 100644 --- a/dot/network/service.go +++ b/dot/network/service.go @@ -285,8 +285,7 @@ func (s *Service) Start() error { } go s.logPeerCount() - go s.publishNetworkTelemetry(s.closeCh) - go s.sentBlockIntervalTelemetry() + go s.publishTelemetry(s.closeCh) s.streamManager.start() return nil @@ -387,47 +386,56 @@ func (s *Service) logPeerCount() { } } -func (s *Service) publishNetworkTelemetry(done <-chan struct{}) { +func (s *Service) publishTelemetry(done <-chan struct{}) { ticker := time.NewTicker(s.telemetryInterval) defer ticker.Stop() for { + s.sentBandwidthTelemetry() + err := s.sentBlockIntervalTelemetry() + if err != nil { + logger.Warnf("failed to sent block interval telemetry: %s", err) + continue + } + select { case <-done: return - case <-ticker.C: - o := s.host.bwc.GetBandwidthTotals() - s.telemetry.SendMessage(telemetry.NewBandwidth(o.RateIn, o.RateOut, s.host.peerCount())) } } } -func (s *Service) sentBlockIntervalTelemetry() { - for { - best, err := s.blockState.BestBlockHeader() - if err != nil { - continue - } - bestHash := best.Hash() +func (s *Service) sentBandwidthTelemetry() { + o := s.host.bwc.GetBandwidthTotals() + s.telemetry.SendMessage(telemetry.NewBandwidth(o.RateIn, o.RateOut, s.host.peerCount())) +} - finalised, err := s.blockState.GetHighestFinalisedHeader() - if err != nil { - continue - } - finalizedHash := finalised.Hash() +func (s *Service) sentBlockIntervalTelemetry() (err error) { + best, err := s.blockState.BestBlockHeader() + if err != nil { + return err + } - s.telemetry.SendMessage(telemetry.NewBlockInterval( - &bestHash, - best.Number, - &finalizedHash, - finalised.Number, - big.NewInt(int64(s.transactionHandler.TransactionsCount())), - big.NewInt(0), // TODO: (ed) determine where to get used_state_cache_size (#1501) - )) + bestHash := best.Hash() - time.Sleep(s.telemetryInterval) + finalised, err := s.blockState.GetHighestFinalisedHeader() + if err != nil { + return err } + + finalizedHash := finalised.Hash() + + s.telemetry.SendMessage(telemetry.NewBlockInterval( + &bestHash, + best.Number, + &finalizedHash, + finalised.Number, + big.NewInt(int64(s.transactionHandler.TransactionsCount())), + big.NewInt(0), // TODO: (ed) determine where to get used_state_cache_size (#1501) + )) + + return nil } func (s *Service) handleConn(conn libp2pnetwork.Conn) { diff --git a/dot/peerset/peerstate.go b/dot/peerset/peerstate.go index 7fba82a724..e70c14f751 100644 --- a/dot/peerset/peerstate.go +++ b/dot/peerset/peerstate.go @@ -215,15 +215,16 @@ func (ps *PeersState) sortedPeers(idx int) peer.IDSlice { func (ps *PeersState) addReputation(pid peer.ID, change ReputationChange) ( newReputation Reputation, err error) { - ps.mu.Lock() - defer ps.mu.Unlock() - n, err := ps.getNode(pid) if err != nil { return 0, err } newReputation = n.addReputation(change.Value) + + ps.mu.Lock() + defer ps.mu.Unlock() + ps.nodes[pid] = n return newReputation, nil From 7e8cc891c44d28cdce0ecf0f5d091231b25d04e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20J=C3=BAnior?= Date: Mon, 17 Jan 2022 17:15:07 -0400 Subject: [PATCH 19/35] chore: remove `./test_data` from network pkg tests --- dot/network/host_test.go | 3 ++- dot/network/service_test.go | 23 +++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dot/network/host_test.go b/dot/network/host_test.go index f9b6e5514f..7cb171933a 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -84,6 +84,8 @@ func TestExternalAddrsPublicIP(t *testing.T) { } func TestExternalAddrsPublicDNS(t *testing.T) { + t.Parallel() + config := &Config{ BasePath: utils.NewTestBasePath(t, "node"), PublicDNS: "alice", @@ -100,7 +102,6 @@ func TestExternalAddrsPublicDNS(t *testing.T) { mustNewMultiAddr("/dns/alice/tcp/7001"), } assert.Equal(t, addrInfo.Addrs, expected) - } // test host connect method diff --git a/dot/network/service_test.go b/dot/network/service_test.go index 824ee81346..944bcd64ce 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -7,7 +7,6 @@ import ( "context" "fmt" "math/big" - "os" "strings" "testing" "time" @@ -190,17 +189,17 @@ func createTestService(t *testing.T, cfg *Config) (srvc *Service) { return srvc } -func TestMain(m *testing.M) { - // Start all tests - code := m.Run() - - // Cleanup test path. - err := os.RemoveAll(utils.TestDir) - if err != nil { - fmt.Printf("failed to remove path %s : %s\n", utils.TestDir, err) - } - os.Exit(code) -} +// func TestMain(m *testing.M) { +// // Start all tests +// code := m.Run() + +// // Cleanup test path. +// err := os.RemoveAll(utils.TestDir) +// if err != nil { +// fmt.Printf("failed to remove path %s : %s\n", utils.TestDir, err) +// } +// os.Exit(code) +// } // test network service starts func TestStartService(t *testing.T) { From a459fe4dc77c74891d680456d6f63e241428e097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20Junior?= Date: Wed, 26 Jan 2022 17:08:20 -0400 Subject: [PATCH 20/35] chore: fix typo Co-authored-by: Timothy Wu --- dot/network/helpers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot/network/helpers_test.go b/dot/network/helpers_test.go index d2bf5fb275..c4fb87c8dc 100644 --- a/dot/network/helpers_test.go +++ b/dot/network/helpers_test.go @@ -25,7 +25,7 @@ type testStreamHandler struct { decoder messageDecoder // exitChan is a notify chan that the readStream - // works and sucessfuly returns + // works and sucessfully returns exitChan chan struct{} } From 15b4433ee5ad975c636adf6fb7144cc4abde6c03 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Wed, 26 Jan 2022 17:18:11 -0400 Subject: [PATCH 21/35] use timer :D --- dot/network/host_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dot/network/host_test.go b/dot/network/host_test.go index 12b8f409b8..a5cdc14ccf 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -560,10 +560,15 @@ func TestStreamCloseEOF(t *testing.T) { err = stream.Close() require.NoError(t, err) + timeout := time.NewTimer(time.Millisecond * 500) + select { - case <-time.After(time.Millisecond * 500): - require.Fail(t, "stream handler does not exit after stream closed") + case <-timeout.C: + t.Fatal("stream handler does not exit after stream closed") case <-handler.exitChan: + if !timeout.Stop() { + <-timeout.C + } } } From fade1edec38cb9e1bb79096e723b7ad5bbf03dee Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Wed, 26 Jan 2022 17:22:59 -0400 Subject: [PATCH 22/35] chore: test `ok` instead nil messages --- dot/network/host_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dot/network/host_test.go b/dot/network/host_test.go index a5cdc14ccf..8994aae6f6 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -275,31 +275,31 @@ func TestExistingStream(t *testing.T) { time.Sleep(TestMessageTimeout) - messages, _ := handlerB.messagesFrom(nodeA.host.id()) + messages, ok := handlerB.messagesFrom(nodeA.host.id()) + require.True(t, ok, "node B timed out waiting for message from node A") assert.Len(t, messages, 1) - require.NotNil(t, messages, "node B timed out waiting for message from node A") // node A uses the stream to send a second message err = nodeA.host.writeToStream(stream, testBlockReqMessage) require.NoError(t, err) - messages, _ = handlerB.messagesFrom(nodeA.host.id()) - require.NotNil(t, messages, "node B timed out waiting for message from node A") + _, ok = handlerB.messagesFrom(nodeA.host.id()) + require.True(t, ok, "node B timed out waiting for message from node A") // node B opens the stream to send the first message stream, err = nodeB.host.send(addrInfoA.ID, nodeB.host.protocolID, testBlockReqMessage) require.NoError(t, err) time.Sleep(TestMessageTimeout) - messages, _ = handlerA.messagesFrom(nodeB.host.id()) - require.NotNil(t, messages, "node A timed out waiting for message from node B") + _, ok = handlerA.messagesFrom(nodeB.host.id()) + require.True(t, ok, "node A timed out waiting for message from node B") // node B uses the stream to send a second message err = nodeB.host.writeToStream(stream, testBlockReqMessage) require.NoError(t, err) - messages, _ = handlerA.messagesFrom(nodeB.host.id()) - require.NotNil(t, messages, "node A timed out waiting for message from node B") + _, ok = handlerA.messagesFrom(nodeB.host.id()) + require.True(t, ok, "node A timed out waiting for message from node B") } func TestStreamCloseMetadataCleanup(t *testing.T) { From 586965718beb74b1a2d6f5fac0b09d0366707762 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Wed, 26 Jan 2022 17:25:41 -0400 Subject: [PATCH 23/35] chore: use a more meaningful name --- dot/network/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot/network/service.go b/dot/network/service.go index 7527bebcae..5f436b1f54 100644 --- a/dot/network/service.go +++ b/dot/network/service.go @@ -386,7 +386,7 @@ func (s *Service) logPeerCount() { } } -func (s *Service) publishTelemetry(done <-chan struct{}) { +func (s *Service) publishTelemetry(cancel <-chan struct{}) { ticker := time.NewTicker(s.telemetryInterval) defer ticker.Stop() @@ -399,7 +399,7 @@ func (s *Service) publishTelemetry(done <-chan struct{}) { } select { - case <-done: + case <-cancel: return case <-ticker.C: } From ea4509de405dcd173d49f569640a2fa904808bb4 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Wed, 26 Jan 2022 17:26:10 -0400 Subject: [PATCH 24/35] chore: fix typo --- dot/network/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot/network/service.go b/dot/network/service.go index 5f436b1f54..4280ad1c9a 100644 --- a/dot/network/service.go +++ b/dot/network/service.go @@ -392,7 +392,7 @@ func (s *Service) publishTelemetry(cancel <-chan struct{}) { for { s.sentBandwidthTelemetry() - err := s.sentBlockIntervalTelemetry() + err := s.sendBlockIntervalTelemetry() if err != nil { logger.Warnf("failed to sent block interval telemetry: %s", err) continue @@ -411,7 +411,7 @@ func (s *Service) sentBandwidthTelemetry() { s.telemetry.SendMessage(telemetry.NewBandwidth(o.RateIn, o.RateOut, s.host.peerCount())) } -func (s *Service) sentBlockIntervalTelemetry() (err error) { +func (s *Service) sendBlockIntervalTelemetry() (err error) { best, err := s.blockState.BestBlockHeader() if err != nil { return err From 74df15fcd7c24aa2f415cae55510f9da0f51b4e7 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Wed, 26 Jan 2022 17:28:14 -0400 Subject: [PATCH 25/35] chore: improving code --- dot/network/service.go | 5 +++-- dot/network/service_test.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dot/network/service.go b/dot/network/service.go index 4280ad1c9a..06a9d7cdda 100644 --- a/dot/network/service.go +++ b/dot/network/service.go @@ -6,6 +6,7 @@ package network import ( "context" "errors" + "fmt" "math/big" "strings" "sync" @@ -414,14 +415,14 @@ func (s *Service) sentBandwidthTelemetry() { func (s *Service) sendBlockIntervalTelemetry() (err error) { best, err := s.blockState.BestBlockHeader() if err != nil { - return err + return fmt.Errorf("cannot get best block header: %w", err) } bestHash := best.Hash() finalised, err := s.blockState.GetHighestFinalisedHeader() if err != nil { - return err + return fmt.Errorf("cannot get highehst finalised header: %w", err) } finalizedHash := finalised.Hash() diff --git a/dot/network/service_test.go b/dot/network/service_test.go index 24eddf6f47..ace4696a2c 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -296,7 +296,7 @@ func Test_Broadcast_Duplicate_Messages_WithDisabled_MessageCache(t *testing.T) { Digest: types.NewDigest(), } - // disable message cache before sent the messages + // disable message cache before sending the messages nodeA.host.messageCache = nil // All 5 message will be sent since cache is disabled. From 3a8a47cdc21fb48b0717984bddecb7f8835b76ae Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Thu, 27 Jan 2022 11:35:43 -0400 Subject: [PATCH 26/35] chore: remove availablePortQueue --- dot/network/block_announce_test.go | 4 +- dot/network/connmgr_test.go | 18 +++---- dot/network/discovery_test.go | 12 ++--- dot/network/gossip_test.go | 6 +-- dot/network/host_test.go | 58 +++++++++++------------ dot/network/light_test.go | 4 +- dot/network/mdns_test.go | 4 +- dot/network/notifications_test.go | 18 +++---- dot/network/service_test.go | 24 +++++----- dot/network/stream_manager_test.go | 8 +--- dot/network/transaction_test.go | 2 +- dot/network/utils_test.go | 36 -------------- dot/peerset/handler.go | 75 ++++++++++-------------------- 13 files changed, 101 insertions(+), 168 deletions(-) diff --git a/dot/network/block_announce_test.go b/dot/network/block_announce_test.go index b7c8771322..2e0cc3a9d4 100644 --- a/dot/network/block_announce_test.go +++ b/dot/network/block_announce_test.go @@ -130,7 +130,7 @@ func TestHandleBlockAnnounceMessage(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -153,7 +153,7 @@ func TestValidateBlockAnnounceHandshake(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/connmgr_test.go b/dot/network/connmgr_test.go index ac2c8ff5c9..2d16b21143 100644 --- a/dot/network/connmgr_test.go +++ b/dot/network/connmgr_test.go @@ -23,7 +23,7 @@ func TestMinPeers(t *testing.T) { for i := range nodes { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -36,7 +36,7 @@ func TestMinPeers(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, Bootnodes: []string{addrs.String(), addrs1.String()}, NoMDNS: true, MinPeers: min, @@ -63,7 +63,7 @@ func TestMaxPeers(t *testing.T) { for i := range nodes { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MaxPeers: max, @@ -134,7 +134,7 @@ func TestPersistentPeers(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -143,7 +143,7 @@ func TestPersistentPeers(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoMDNS: true, PersistentPeers: []string{addrs[0].String()}, } @@ -173,7 +173,7 @@ func TestRemovePeer(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -185,7 +185,7 @@ func TestRemovePeer(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, Bootnodes: []string{addrA.String()}, NoMDNS: true, } @@ -214,7 +214,7 @@ func TestSetReservedPeer(t *testing.T) { for i := range nodes { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -228,7 +228,7 @@ func TestSetReservedPeer(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoMDNS: true, PersistentPeers: []string{addrA.String(), addrB.String()}, } diff --git a/dot/network/discovery_test.go b/dot/network/discovery_test.go index 3d8b2278ff..21e61f48d7 100644 --- a/dot/network/discovery_test.go +++ b/dot/network/discovery_test.go @@ -21,7 +21,7 @@ func newTestDiscovery(t *testing.T, num int) []*discovery { for i := 0; i < num; i++ { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -103,7 +103,7 @@ func TestBeginDiscovery(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -113,7 +113,7 @@ func TestBeginDiscovery(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -141,7 +141,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -151,7 +151,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -161,7 +161,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configC := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/gossip_test.go b/dot/network/gossip_test.go index 2875ed0ca8..01efb77bc9 100644 --- a/dot/network/gossip_test.go +++ b/dot/network/gossip_test.go @@ -23,7 +23,7 @@ func TestGossip(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -34,7 +34,7 @@ func TestGossip(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -54,7 +54,7 @@ func TestGossip(t *testing.T) { configC := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/host_test.go b/dot/network/host_test.go index 8994aae6f6..b08ef6f1a4 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -4,7 +4,6 @@ package network import ( - "fmt" "testing" "time" @@ -22,7 +21,7 @@ func TestExternalAddrs(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -50,11 +49,10 @@ func mustNewMultiAddr(s string) (a ma.Multiaddr) { func TestExternalAddrsPublicIP(t *testing.T) { t.Parallel() - port := availablePort(t) config := &Config{ BasePath: t.TempDir(), PublicIP: "10.0.5.2", - Port: port, + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -76,8 +74,8 @@ func TestExternalAddrsPublicIP(t *testing.T) { } expected := []ma.Multiaddr{ - mustNewMultiAddr(fmt.Sprintf("/ip4/127.0.0.1/tcp/%d", port)), - mustNewMultiAddr(fmt.Sprintf("/ip4/10.0.5.2/tcp/%d", port)), + mustNewMultiAddr("/ip4/127.0.0.1/tcp/0"), + mustNewMultiAddr("/ip4/10.0.5.2/tcp/0"), } assert.Equal(t, addrInfo.Addrs, expected) } @@ -109,7 +107,7 @@ func TestConnect(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -119,7 +117,7 @@ func TestConnect(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -149,7 +147,7 @@ func TestBootstrap(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -161,7 +159,7 @@ func TestBootstrap(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, Bootnodes: []string{addrA.String()}, NoMDNS: true, } @@ -188,7 +186,7 @@ func TestSend(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -198,7 +196,7 @@ func TestSend(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -235,7 +233,7 @@ func TestExistingStream(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -248,7 +246,7 @@ func TestExistingStream(t *testing.T) { addrInfoA := nodeA.host.addrInfo() configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -307,7 +305,7 @@ func TestStreamCloseMetadataCleanup(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -319,7 +317,7 @@ func TestStreamCloseMetadataCleanup(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -382,7 +380,7 @@ func Test_PeerSupportsProtocol(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -391,7 +389,7 @@ func Test_PeerSupportsProtocol(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -446,7 +444,7 @@ func Test_AddReservedPeers(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -456,7 +454,7 @@ func Test_AddReservedPeers(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -478,7 +476,7 @@ func Test_RemoveReservedPeers(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -488,7 +486,7 @@ func Test_RemoveReservedPeers(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -523,7 +521,7 @@ func TestStreamCloseEOF(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -533,7 +531,7 @@ func TestStreamCloseEOF(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -578,7 +576,7 @@ func TestPeerConnect(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -590,7 +588,7 @@ func TestPeerConnect(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -616,7 +614,7 @@ func TestBannedPeer(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -628,7 +626,7 @@ func TestBannedPeer(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -669,7 +667,7 @@ func TestPeerReputation(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -681,7 +679,7 @@ func TestPeerReputation(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MinPeers: 1, diff --git a/dot/network/light_test.go b/dot/network/light_test.go index 85f26ffd40..3eabbc02f1 100644 --- a/dot/network/light_test.go +++ b/dot/network/light_test.go @@ -90,7 +90,7 @@ func TestHandleLightMessage_Response(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -98,7 +98,7 @@ func TestHandleLightMessage_Response(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/mdns_test.go b/dot/network/mdns_test.go index 901a57622f..60c11b1a95 100644 --- a/dot/network/mdns_test.go +++ b/dot/network/mdns_test.go @@ -19,7 +19,7 @@ func TestMDNS(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, } @@ -28,7 +28,7 @@ func TestMDNS(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, } diff --git a/dot/network/notifications_test.go b/dot/network/notifications_test.go index afb633a7e8..644aedf7e6 100644 --- a/dot/network/notifications_test.go +++ b/dot/network/notifications_test.go @@ -25,7 +25,7 @@ func TestCreateDecoder_BlockAnnounce(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -87,7 +87,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounce(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -96,7 +96,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounce(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -148,7 +148,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(t *testing.T) config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -167,7 +167,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(t *testing.T) configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -227,7 +227,7 @@ func Test_HandshakeTimeout(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -237,7 +237,7 @@ func Test_HandshakeTimeout(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, RandSeed: 2, NoBootstrap: true, NoMDNS: true, @@ -315,7 +315,7 @@ func TestCreateNotificationsMessageHandler_HandleTransaction(t *testing.T) { const batchSize = 5 config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, batchSize: batchSize, @@ -325,7 +325,7 @@ func TestCreateNotificationsMessageHandler_HandleTransaction(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/service_test.go b/dot/network/service_test.go index ace4696a2c..24bb5c8ee6 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -42,7 +42,7 @@ func createServiceHelper(t *testing.T, num int) []*Service { for i := 0; i < num; i++ { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -94,7 +94,7 @@ func createTestService(t *testing.T, cfg *Config) (srvc *Service) { if cfg == nil { cfg = &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, LogLvl: log.Warn, @@ -201,7 +201,7 @@ func TestBroadcastMessages(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -211,7 +211,7 @@ func TestBroadcastMessages(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -248,7 +248,7 @@ func Test_Broadcast_Duplicate_Messages_WithDisabled_MessageCache(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MessageCacheTTL: 2 * time.Second, @@ -259,7 +259,7 @@ func Test_Broadcast_Duplicate_Messages_WithDisabled_MessageCache(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MessageCacheTTL: 2 * time.Second, @@ -316,7 +316,7 @@ func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ BasePath: basePathA, - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MessageCacheTTL: 2 * time.Second, @@ -328,7 +328,7 @@ func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ BasePath: basePathB, - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, MessageCacheTTL: 2 * time.Second, @@ -397,7 +397,7 @@ func TestService_NodeRoles(t *testing.T) { cfg := &Config{ BasePath: t.TempDir(), Roles: 1, - Port: availablePort(t), + Port: 0, } svc := createTestService(t, cfg) @@ -411,7 +411,7 @@ func TestService_Health(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -461,7 +461,7 @@ func TestHandleConn(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } @@ -470,7 +470,7 @@ func TestHandleConn(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/stream_manager_test.go b/dot/network/stream_manager_test.go index 114a3c6760..e53bf01727 100644 --- a/dot/network/stream_manager_test.go +++ b/dot/network/stream_manager_test.go @@ -5,7 +5,6 @@ package network import ( "context" - "fmt" "testing" "time" @@ -30,12 +29,9 @@ func setupStreamManagerTest(t *testing.T, cleanupStreamInterval time.Duration) ( smA := newStreamManager(ctx, cleanupStreamInterval) smB := newStreamManager(ctx, cleanupStreamInterval) - portA := availablePort(t) - portB := availablePort(t) - - addrA, err := ma.NewMultiaddr(fmt.Sprintf("/ip4/0.0.0.0/tcp/%d", portA)) + addrA, err := ma.NewMultiaddr("/ip4/0.0.0.0/tcp/0") require.NoError(t, err) - addrB, err := ma.NewMultiaddr(fmt.Sprintf("/ip4/0.0.0.0/tcp/%d", portB)) + addrB, err := ma.NewMultiaddr("/ip4/0.0.0.0/tcp/0") require.NoError(t, err) ha, err := libp2p.New( diff --git a/dot/network/transaction_test.go b/dot/network/transaction_test.go index a2f9f0cad5..e94a40ee26 100644 --- a/dot/network/transaction_test.go +++ b/dot/network/transaction_test.go @@ -46,7 +46,7 @@ func TestHandleTransactionMessage(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: availablePort(t), + Port: 0, NoBootstrap: true, NoMDNS: true, TransactionHandler: transactionHandler, diff --git a/dot/network/utils_test.go b/dot/network/utils_test.go index 0ca2e35c0f..0046f49a29 100644 --- a/dot/network/utils_test.go +++ b/dot/network/utils_test.go @@ -10,42 +10,6 @@ import ( "github.com/stretchr/testify/require" ) -const portsAmount = 200 - -// portQueue is a blocking port queue -type portQueue chan uint16 - -func (pq portQueue) put(p uint16) { - pq <- p -} - -func (pq portQueue) get() (port uint16) { - port = <-pq - return port -} - -var availablePorts portQueue - -func init() { - availablePorts = make(chan uint16, portsAmount) - const startAt = uint16(7500) - for port := startAt; port < portsAmount+startAt; port++ { - availablePorts.put(port) - } -} - -// availablePort is test helper function that gets an available port and release the same port after test ends -func availablePort(t *testing.T) uint16 { - t.Helper() - port := availablePorts.get() - - t.Cleanup(func() { - availablePorts.put(port) - }) - - return port -} - // list of IPFS peers, for testing only var TestPeers = []string{ "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", diff --git a/dot/peerset/handler.go b/dot/peerset/handler.go index d4d5a3cee6..6b92d98774 100644 --- a/dot/peerset/handler.go +++ b/dot/peerset/handler.go @@ -5,15 +5,12 @@ package peerset import ( "context" - "sync" "github.com/libp2p/go-libp2p-core/peer" ) // Handler manages peerSet. type Handler struct { - mu sync.Mutex - actionQueue chan<- action peerSet *PeerSet closeCh chan struct{} @@ -33,71 +30,60 @@ func NewPeerSetHandler(cfg *ConfigSet) (*Handler, error) { }, nil } +func (h *Handler) setActionQueue(act action) { + select { + case <-h.closeCh: + case h.actionQueue <- act: + } +} + // AddReservedPeer adds reserved peer into peerSet. func (h *Handler) AddReservedPeer(setID int, peers ...peer.ID) { - h.mu.Lock() - defer h.mu.Unlock() - - h.actionQueue <- action{ + h.setActionQueue(action{ actionCall: addReservedPeer, setID: setID, peers: peers, - } + }) } // RemoveReservedPeer remove reserved peer from peerSet. func (h *Handler) RemoveReservedPeer(setID int, peers ...peer.ID) { - h.mu.Lock() - defer h.mu.Unlock() - - h.actionQueue <- action{ + h.setActionQueue(action{ actionCall: removeReservedPeer, setID: setID, peers: peers, - } + }) } // SetReservedPeer set the reserve peer into peerSet func (h *Handler) SetReservedPeer(setID int, peers ...peer.ID) { - h.mu.Lock() - defer h.mu.Unlock() - - h.actionQueue <- action{ + h.setActionQueue(action{ actionCall: setReservedPeers, setID: setID, peers: peers, - } + }) } // AddPeer adds peer to peerSet. func (h *Handler) AddPeer(setID int, peers ...peer.ID) { - h.mu.Lock() - defer h.mu.Unlock() - - h.actionQueue <- action{ + h.setActionQueue(action{ actionCall: addToPeerSet, setID: setID, peers: peers, - } + }) } // RemovePeer removes peer from peerSet. func (h *Handler) RemovePeer(setID int, peers ...peer.ID) { - h.mu.Lock() - defer h.mu.Unlock() - - h.actionQueue <- action{ + h.setActionQueue(action{ actionCall: removeFromPeerSet, setID: setID, peers: peers, - } + }) } // ReportPeer reports ReputationChange according to the peer behaviour. func (h *Handler) ReportPeer(rep ReputationChange, peers ...peer.ID) { - h.mu.Lock() - defer h.mu.Unlock() - h.actionQueue <- action{ actionCall: reportPeer, reputation: rep, @@ -107,14 +93,11 @@ func (h *Handler) ReportPeer(rep ReputationChange, peers ...peer.ID) { // Incoming calls when we have an incoming connection from peer. func (h *Handler) Incoming(setID int, peers ...peer.ID) { - h.mu.Lock() - defer h.mu.Unlock() - - h.actionQueue <- action{ + h.setActionQueue(action{ actionCall: incoming, peers: peers, setID: setID, - } + }) } // Messages return result message chan. @@ -124,14 +107,11 @@ func (h *Handler) Messages() chan Message { // DisconnectPeer calls for disconnecting a connection from peer. func (h *Handler) DisconnectPeer(setID int, peers ...peer.ID) { - h.mu.Lock() - defer h.mu.Unlock() - - h.actionQueue <- action{ + h.setActionQueue(action{ actionCall: disconnect, setID: setID, peers: peers, - } + }) } // PeerReputation returns the reputation of the peer. @@ -157,29 +137,24 @@ func (h *Handler) Start(ctx context.Context) { // SortedPeers return chan for sorted connected peer in the peerSet. func (h *Handler) SortedPeers(setIdx int) chan peer.IDSlice { - h.mu.Lock() - defer h.mu.Unlock() - resultPeersCh := make(chan peer.IDSlice) - h.actionQueue <- action{ + h.setActionQueue(action{ actionCall: sortedPeers, resultPeersCh: resultPeersCh, setID: setIdx, - } + }) return resultPeersCh } // Stop closes the actionQueue and result message chan. func (h *Handler) Stop() { - h.mu.Lock() - defer h.mu.Unlock() - select { case <-h.closeCh: default: - h.cancelCtx() close(h.closeCh) close(h.actionQueue) + h.cancelCtx() + } } From 37046e12c02eb732605abb20bd2700449e0d405c Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Fri, 28 Jan 2022 11:48:28 -0400 Subject: [PATCH 27/35] chore: fix problems with port number 0 --- dot/network/block_announce_test.go | 4 +- dot/network/connmgr_test.go | 10 ++--- dot/network/discovery_test.go | 12 ++--- dot/network/gossip_test.go | 6 +-- dot/network/helpers_test.go | 39 ++++++++++++++--- dot/network/host_test.go | 70 ++++++++++++++++-------------- dot/network/light_test.go | 4 +- dot/network/mdns_test.go | 4 +- dot/network/notifications.go | 7 +-- dot/network/notifications_test.go | 18 ++++---- dot/network/service_test.go | 41 +++++------------ dot/network/utils_test.go | 36 +++++++++++++++ dot/peerset/handler.go | 45 ++++++++++++++----- 13 files changed, 183 insertions(+), 113 deletions(-) diff --git a/dot/network/block_announce_test.go b/dot/network/block_announce_test.go index 2e0cc3a9d4..b7c8771322 100644 --- a/dot/network/block_announce_test.go +++ b/dot/network/block_announce_test.go @@ -130,7 +130,7 @@ func TestHandleBlockAnnounceMessage(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -153,7 +153,7 @@ func TestValidateBlockAnnounceHandshake(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/connmgr_test.go b/dot/network/connmgr_test.go index 2d16b21143..fe666424de 100644 --- a/dot/network/connmgr_test.go +++ b/dot/network/connmgr_test.go @@ -23,7 +23,7 @@ func TestMinPeers(t *testing.T) { for i := range nodes { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -63,7 +63,7 @@ func TestMaxPeers(t *testing.T) { for i := range nodes { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MaxPeers: max, @@ -134,7 +134,7 @@ func TestPersistentPeers(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -173,7 +173,7 @@ func TestRemovePeer(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -214,7 +214,7 @@ func TestSetReservedPeer(t *testing.T) { for i := range nodes { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/discovery_test.go b/dot/network/discovery_test.go index 21e61f48d7..3d8b2278ff 100644 --- a/dot/network/discovery_test.go +++ b/dot/network/discovery_test.go @@ -21,7 +21,7 @@ func newTestDiscovery(t *testing.T, num int) []*discovery { for i := 0; i < num; i++ { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -103,7 +103,7 @@ func TestBeginDiscovery(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -113,7 +113,7 @@ func TestBeginDiscovery(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -141,7 +141,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -151,7 +151,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -161,7 +161,7 @@ func TestBeginDiscovery_ThreeNodes(t *testing.T) { configC := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/gossip_test.go b/dot/network/gossip_test.go index 01efb77bc9..2875ed0ca8 100644 --- a/dot/network/gossip_test.go +++ b/dot/network/gossip_test.go @@ -23,7 +23,7 @@ func TestGossip(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -34,7 +34,7 @@ func TestGossip(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -54,7 +54,7 @@ func TestGossip(t *testing.T) { configC := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/helpers_test.go b/dot/network/helpers_test.go index 384b7d6b4b..8fd101f871 100644 --- a/dot/network/helpers_test.go +++ b/dot/network/helpers_test.go @@ -18,21 +18,48 @@ import ( "github.com/libp2p/go-libp2p-core/peer" ) +const blockRequestSize uint32 = 128 + +func testBlockResponseMessage() *BlockResponseMessage { + msg := &BlockResponseMessage{ + BlockData: []*types.BlockData{}, + } + + for i := 0; i < int(blockRequestSize); i++ { + testHeader := &types.Header{ + Number: big.NewInt(int64(77 + i)), + Digest: types.NewDigest(), + } + + body := types.NewBody([]types.Extrinsic{[]byte{4, 4, 2}}) + + msg.BlockData = append(msg.BlockData, &types.BlockData{ + Hash: testHeader.Hash(), + Header: testHeader, + Body: body, + MessageQueue: nil, + Receipt: nil, + Justification: nil, + }) + } + + return msg +} + type testStreamHandler struct { sync.Mutex messages map[peer.ID][]Message decoder messageDecoder - // readStream closes exitChan when it returns - exitChan chan struct{} + eofCh chan struct{} } func newTestStreamHandler(decoder messageDecoder) *testStreamHandler { return &testStreamHandler{ messages: make(map[peer.ID][]Message), decoder: decoder, - exitChan: make(chan struct{}), + eofCh: make(chan struct{}), } } @@ -48,12 +75,11 @@ func (s *testStreamHandler) handleStream(stream libp2pnetwork.Stream) { } func (s *testStreamHandler) handleMessage(stream libp2pnetwork.Stream, msg Message) error { + s.Lock() defer s.Unlock() - msgs := s.messages[stream.Conn().RemotePeer()] s.messages[stream.Conn().RemotePeer()] = append(msgs, msg) - announceHandshake := &BlockAnnounceHandshake{ BestBlockNumber: 0, } @@ -78,11 +104,10 @@ func (s *testStreamHandler) readStream(stream libp2pnetwork.Stream, peer peer.ID, decoder messageDecoder, handler messageHandler) { msgBytes := make([]byte, maxBlockResponseSize) - defer close(s.exitChan) - for { tot, err := readStream(stream, msgBytes) if errors.Is(err, io.EOF) { + s.eofCh <- struct{}{} return } else if err != nil { logger.Debugf("failed to read from stream using protocol %s: %s", stream.Protocol(), err) diff --git a/dot/network/host_test.go b/dot/network/host_test.go index b08ef6f1a4..e0d4766a53 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -4,6 +4,7 @@ package network import ( + "regexp" "testing" "time" @@ -21,7 +22,7 @@ func TestExternalAddrs(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -52,7 +53,7 @@ func TestExternalAddrsPublicIP(t *testing.T) { config := &Config{ BasePath: t.TempDir(), PublicIP: "10.0.5.2", - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -63,6 +64,8 @@ func TestExternalAddrsPublicIP(t *testing.T) { privateIPs, err := newPrivateIPFilters() require.NoError(t, err) + multiAddrRegex := regexp.MustCompile("^/ip4/(127.0.0.1|10.0.5.2)/tcp/[0-9]+$") + for i, addr := range addrInfo.Addrs { switch i { case len(addrInfo.Addrs) - 1: @@ -71,13 +74,9 @@ func TestExternalAddrsPublicIP(t *testing.T) { default: require.False(t, privateIPs.AddrBlocked(addr)) } - } - expected := []ma.Multiaddr{ - mustNewMultiAddr("/ip4/127.0.0.1/tcp/0"), - mustNewMultiAddr("/ip4/10.0.5.2/tcp/0"), + require.True(t, multiAddrRegex.MatchString(addr.String())) } - assert.Equal(t, addrInfo.Addrs, expected) } func TestExternalAddrsPublicDNS(t *testing.T) { @@ -107,7 +106,7 @@ func TestConnect(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -117,7 +116,7 @@ func TestConnect(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -147,7 +146,7 @@ func TestBootstrap(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -186,7 +185,7 @@ func TestSend(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -196,7 +195,7 @@ func TestSend(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -233,7 +232,7 @@ func TestExistingStream(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -246,7 +245,7 @@ func TestExistingStream(t *testing.T) { addrInfoA := nodeA.host.addrInfo() configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -305,7 +304,7 @@ func TestStreamCloseMetadataCleanup(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -317,7 +316,7 @@ func TestStreamCloseMetadataCleanup(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -380,7 +379,7 @@ func Test_PeerSupportsProtocol(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -389,7 +388,7 @@ func Test_PeerSupportsProtocol(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -444,7 +443,7 @@ func Test_AddReservedPeers(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -454,7 +453,7 @@ func Test_AddReservedPeers(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -476,7 +475,7 @@ func Test_RemoveReservedPeers(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -486,7 +485,7 @@ func Test_RemoveReservedPeers(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -521,7 +520,7 @@ func TestStreamCloseEOF(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -531,13 +530,14 @@ func TestStreamCloseEOF(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } nodeB := createTestService(t, configB) nodeB.noGossip = true + handler := newTestStreamHandler(testBlockRequestMessageDecoder) nodeB.host.registerStreamHandler(nodeB.host.protocolID, handler.handleStream) @@ -558,12 +558,12 @@ func TestStreamCloseEOF(t *testing.T) { err = stream.Close() require.NoError(t, err) - timeout := time.NewTimer(time.Millisecond * 500) + timeout := time.NewTimer(TestBackoffTimeout) select { case <-timeout.C: t.Fatal("stream handler does not exit after stream closed") - case <-handler.exitChan: + case <-handler.eofCh: if !timeout.Stop() { <-timeout.C } @@ -576,7 +576,7 @@ func TestPeerConnect(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -588,7 +588,7 @@ func TestPeerConnect(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -614,7 +614,7 @@ func TestBannedPeer(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -626,7 +626,7 @@ func TestBannedPeer(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -667,7 +667,7 @@ func TestPeerReputation(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -679,7 +679,7 @@ func TestPeerReputation(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MinPeers: 1, @@ -690,6 +690,7 @@ func TestPeerReputation(t *testing.T) { nodeB.noGossip = true addrInfoB := nodeB.host.addrInfo() + nodeA.host.h.Peerstore().AddAddrs(addrInfoB.ID, addrInfoB.Addrs, peerstore.PermanentAddrTTL) nodeA.host.cm.peerSetHandler.AddPeer(0, addrInfoB.ID) @@ -706,6 +707,9 @@ func TestPeerReputation(t *testing.T) { time.Sleep(100 * time.Millisecond) rep, err := nodeA.host.cm.peerSetHandler.PeerReputation(addrInfoB.ID) + + const zeroReputation int32 = 0 + require.NoError(t, err) - require.Greater(t, rep, int32(0)) + require.Greater(t, rep, zeroReputation) } diff --git a/dot/network/light_test.go b/dot/network/light_test.go index 3eabbc02f1..85f26ffd40 100644 --- a/dot/network/light_test.go +++ b/dot/network/light_test.go @@ -90,7 +90,7 @@ func TestHandleLightMessage_Response(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -98,7 +98,7 @@ func TestHandleLightMessage_Response(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/mdns_test.go b/dot/network/mdns_test.go index 60c11b1a95..901a57622f 100644 --- a/dot/network/mdns_test.go +++ b/dot/network/mdns_test.go @@ -19,7 +19,7 @@ func TestMDNS(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, } @@ -28,7 +28,7 @@ func TestMDNS(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, } diff --git a/dot/network/notifications.go b/dot/network/notifications.go index a3b0006557..027ef6de58 100644 --- a/dot/network/notifications.go +++ b/dot/network/notifications.go @@ -264,6 +264,7 @@ func closeOutboundStream(info *notificationsProtocol, peerID peer.ID, stream lib ) info.outboundHandshakeData.Delete(peerID) + fmt.Println(">>>>>> closed outbound stream") _ = stream.Close() } @@ -289,12 +290,12 @@ func (s *Service) sendData(peer peer.ID, hs Handshake, info *notificationsProtoc } if s.host.messageCache != nil && s.host.messageCache.exists(peer, msg) { - logger.Tracef("message has already been sent, ignoring: peer=%s msg=%s", peer, msg) + logger.Debugf("message has already been sent, ignoring: peer=%s msg=%s", peer, msg) return } // we've completed the handshake with the peer, send message directly - logger.Tracef("sending message to peer %s using protocol %s: %s", peer, info.protocolID, msg) + logger.Debugf("sending message to peer %s using protocol %s: %s", peer, info.protocolID, msg) if err := s.host.writeToStream(stream, msg); err != nil { logger.Debugf("failed to send message to peer %s: %s", peer, err) @@ -310,7 +311,7 @@ func (s *Service) sendData(peer peer.ID, hs Handshake, info *notificationsProtoc } } - logger.Tracef("successfully sent message on protocol %s to peer %s: message=", info.protocolID, peer, msg) + logger.Debugf("successfully sent message on protocol %s to peer %s: message=", info.protocolID, peer, msg) s.host.cm.peerSetHandler.ReportPeer(peerset.ReputationChange{ Value: peerset.GossipSuccessValue, Reason: peerset.GossipSuccessReason, diff --git a/dot/network/notifications_test.go b/dot/network/notifications_test.go index 644aedf7e6..afb633a7e8 100644 --- a/dot/network/notifications_test.go +++ b/dot/network/notifications_test.go @@ -25,7 +25,7 @@ func TestCreateDecoder_BlockAnnounce(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -87,7 +87,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounce(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -96,7 +96,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounce(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -148,7 +148,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(t *testing.T) config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -167,7 +167,7 @@ func TestCreateNotificationsMessageHandler_BlockAnnounceHandshake(t *testing.T) configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -227,7 +227,7 @@ func Test_HandshakeTimeout(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -237,7 +237,7 @@ func Test_HandshakeTimeout(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), RandSeed: 2, NoBootstrap: true, NoMDNS: true, @@ -315,7 +315,7 @@ func TestCreateNotificationsMessageHandler_HandleTransaction(t *testing.T) { const batchSize = 5 config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, batchSize: batchSize, @@ -325,7 +325,7 @@ func TestCreateNotificationsMessageHandler_HandleTransaction(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/service_test.go b/dot/network/service_test.go index 24bb5c8ee6..7a733e4f14 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -17,7 +17,6 @@ import ( "github.com/ChainSafe/gossamer/dot/types" "github.com/ChainSafe/gossamer/internal/log" "github.com/ChainSafe/gossamer/lib/common" - "github.com/ChainSafe/gossamer/lib/utils" ) var TestProtocolID = "/gossamer/test/0" @@ -42,7 +41,7 @@ func createServiceHelper(t *testing.T, num int) []*Service { for i := 0; i < num; i++ { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -201,7 +200,7 @@ func TestBroadcastMessages(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -211,7 +210,7 @@ func TestBroadcastMessages(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -305,7 +304,6 @@ func Test_Broadcast_Duplicate_Messages_WithDisabled_MessageCache(t *testing.T) { time.Sleep(time.Millisecond * 10) } - time.Sleep(time.Millisecond * 200) messages, _ := handler.messagesFrom(nodeA.host.id()) require.Len(t, messages, 6) } @@ -313,9 +311,8 @@ func Test_Broadcast_Duplicate_Messages_WithDisabled_MessageCache(t *testing.T) { func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { t.Parallel() - basePathA := utils.NewTestBasePath(t, "nodeA") configA := &Config{ - BasePath: basePathA, + BasePath: t.TempDir(), Port: 0, NoBootstrap: true, NoMDNS: true, @@ -325,9 +322,8 @@ func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { nodeA := createTestService(t, configA) nodeA.noGossip = true - basePathB := utils.NewTestBasePath(t, "nodeB") configB := &Config{ - BasePath: basePathB, + BasePath: t.TempDir(), Port: 0, NoBootstrap: true, NoMDNS: true, @@ -337,7 +333,6 @@ func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { nodeB := createTestService(t, configB) nodeB.noGossip = true - // TODO: create a decoder that handles both handshakes and messages handler := newTestStreamHandler(testBlockAnnounceHandshakeDecoder) nodeB.host.registerStreamHandler(nodeB.host.protocolID+blockAnnounceID, handler.handleStream) @@ -366,29 +361,15 @@ func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { Digest: types.NewDigest(), } - delete(handler.messages, nodeA.host.id()) - // Only one message will be sent. for i := 0; i < 5; i++ { nodeA.GossipMessage(announceMessage) time.Sleep(time.Millisecond * 10) } - time.Sleep(time.Millisecond * 500) - - nodeAMessages, _ := handler.messagesFrom(nodeA.host.id()) - require.Equal(t, 2, len(nodeAMessages)) - - nodeA.host.messageCache = nil - - // All 5 message will be sent since cache is disabled. - for i := 0; i < 5; i++ { - nodeA.GossipMessage(announceMessage) - time.Sleep(time.Millisecond * 10) - } - - nodeAMessages, _ = handler.messagesFrom(nodeA.host.id()) - require.Equal(t, 7, len(nodeAMessages)) + time.Sleep(time.Millisecond * 200) + messages, _ := handler.messagesFrom(nodeA.host.id()) + require.Len(t, messages, 2) } func TestService_NodeRoles(t *testing.T) { @@ -411,7 +392,7 @@ func TestService_Health(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -461,7 +442,7 @@ func TestHandleConn(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } @@ -470,7 +451,7 @@ func TestHandleConn(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, } diff --git a/dot/network/utils_test.go b/dot/network/utils_test.go index 0046f49a29..0ca2e35c0f 100644 --- a/dot/network/utils_test.go +++ b/dot/network/utils_test.go @@ -10,6 +10,42 @@ import ( "github.com/stretchr/testify/require" ) +const portsAmount = 200 + +// portQueue is a blocking port queue +type portQueue chan uint16 + +func (pq portQueue) put(p uint16) { + pq <- p +} + +func (pq portQueue) get() (port uint16) { + port = <-pq + return port +} + +var availablePorts portQueue + +func init() { + availablePorts = make(chan uint16, portsAmount) + const startAt = uint16(7500) + for port := startAt; port < portsAmount+startAt; port++ { + availablePorts.put(port) + } +} + +// availablePort is test helper function that gets an available port and release the same port after test ends +func availablePort(t *testing.T) uint16 { + t.Helper() + port := availablePorts.get() + + t.Cleanup(func() { + availablePorts.put(port) + }) + + return port +} + // list of IPFS peers, for testing only var TestPeers = []string{ "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", diff --git a/dot/peerset/handler.go b/dot/peerset/handler.go index 6b92d98774..ece5c5dac0 100644 --- a/dot/peerset/handler.go +++ b/dot/peerset/handler.go @@ -5,15 +5,19 @@ package peerset import ( "context" + "sync" "github.com/libp2p/go-libp2p-core/peer" ) // Handler manages peerSet. type Handler struct { - actionQueue chan<- action - peerSet *PeerSet - closeCh chan struct{} + actionQueue chan<- action + closeCh chan struct{} + writersWG sync.WaitGroup + writerWGMutex sync.Mutex + + peerSet *PeerSet cancelCtx context.CancelFunc } @@ -31,10 +35,25 @@ func NewPeerSetHandler(cfg *ConfigSet) (*Handler, error) { } func (h *Handler) setActionQueue(act action) { - select { - case <-h.closeCh: - case h.actionQueue <- act: - } + go func(data action) { + h.writerWGMutex.Lock() + h.writersWG.Add(1) + h.writerWGMutex.Unlock() + + defer h.writersWG.Done() + + select { + case <-h.closeCh: + return + default: + } + + select { + case <-h.closeCh: + case h.actionQueue <- data: + } + }(act) + } // AddReservedPeer adds reserved peer into peerSet. @@ -84,11 +103,11 @@ func (h *Handler) RemovePeer(setID int, peers ...peer.ID) { // ReportPeer reports ReputationChange according to the peer behaviour. func (h *Handler) ReportPeer(rep ReputationChange, peers ...peer.ID) { - h.actionQueue <- action{ + h.setActionQueue(action{ actionCall: reportPeer, reputation: rep, peers: peers, - } + }) } // Incoming calls when we have an incoming connection from peer. @@ -152,9 +171,13 @@ func (h *Handler) Stop() { select { case <-h.closeCh: default: - close(h.closeCh) - close(h.actionQueue) h.cancelCtx() + close(h.closeCh) + h.writerWGMutex.Lock() + h.writersWG.Wait() + h.writerWGMutex.Unlock() + + close(h.actionQueue) } } From 1fc3b735c3efcb9429020cc58326bd0aaec4c108 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Fri, 28 Jan 2022 15:01:03 -0400 Subject: [PATCH 28/35] chore: use map to avoid inner loops --- dot/peerset/peerset_test.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dot/peerset/peerset_test.go b/dot/peerset/peerset_test.go index 3c094734c8..7126185dae 100644 --- a/dot/peerset/peerset_test.go +++ b/dot/peerset/peerset_test.go @@ -55,10 +55,10 @@ func TestAddReservedPeers(t *testing.T) { time.Sleep(time.Millisecond * 200) - expectedMsgs := []Message{ - {Status: Connect, setID: 0, PeerID: bootNode}, - {Status: Connect, setID: 0, PeerID: reservedPeer}, - {Status: Connect, setID: 0, PeerID: reservedPeer2}, + expectedMsgs := map[peer.ID]Message{ + bootNode: {Status: Connect, setID: 0, PeerID: bootNode}, + reservedPeer: {Status: Connect, setID: 0, PeerID: reservedPeer}, + reservedPeer2: {Status: Connect, setID: 0, PeerID: reservedPeer2}, } require.Equal(t, uint32(1), ps.peerState.sets[0].numOut) @@ -68,8 +68,11 @@ func TestAddReservedPeers(t *testing.T) { if len(ps.resultMsgCh) == 0 { break } + msg := <-ps.resultMsgCh - require.Equal(t, expectedMsgs[i], msg) + expected, has := expectedMsgs[msg.PeerID] + require.True(t, has) + require.Equal(t, expected, msg) } } From 290fd1b3b4e5e4156ef16bb5306a45702c5e9cf2 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Fri, 28 Jan 2022 15:06:11 -0400 Subject: [PATCH 29/35] chore: remove unneeded code --- dot/network/helpers_test.go | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/dot/network/helpers_test.go b/dot/network/helpers_test.go index 8fd101f871..ee91239484 100644 --- a/dot/network/helpers_test.go +++ b/dot/network/helpers_test.go @@ -18,34 +18,6 @@ import ( "github.com/libp2p/go-libp2p-core/peer" ) -const blockRequestSize uint32 = 128 - -func testBlockResponseMessage() *BlockResponseMessage { - msg := &BlockResponseMessage{ - BlockData: []*types.BlockData{}, - } - - for i := 0; i < int(blockRequestSize); i++ { - testHeader := &types.Header{ - Number: big.NewInt(int64(77 + i)), - Digest: types.NewDigest(), - } - - body := types.NewBody([]types.Extrinsic{[]byte{4, 4, 2}}) - - msg.BlockData = append(msg.BlockData, &types.BlockData{ - Hash: testHeader.Hash(), - Header: testHeader, - Body: body, - MessageQueue: nil, - Receipt: nil, - Justification: nil, - }) - } - - return msg -} - type testStreamHandler struct { sync.Mutex From fa16436e0d49911770a450ca29094384ce4b7879 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Fri, 28 Jan 2022 15:10:09 -0400 Subject: [PATCH 30/35] chore: use availablePort(t) for tests --- dot/network/connmgr_test.go | 8 ++++---- dot/network/host_test.go | 2 +- dot/network/service_test.go | 12 ++++++------ dot/network/transaction_test.go | 2 +- dot/rpc/modules/system_integration_test.go | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dot/network/connmgr_test.go b/dot/network/connmgr_test.go index fe666424de..ac2c8ff5c9 100644 --- a/dot/network/connmgr_test.go +++ b/dot/network/connmgr_test.go @@ -36,7 +36,7 @@ func TestMinPeers(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), Bootnodes: []string{addrs.String(), addrs1.String()}, NoMDNS: true, MinPeers: min, @@ -143,7 +143,7 @@ func TestPersistentPeers(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoMDNS: true, PersistentPeers: []string{addrs[0].String()}, } @@ -185,7 +185,7 @@ func TestRemovePeer(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), Bootnodes: []string{addrA.String()}, NoMDNS: true, } @@ -228,7 +228,7 @@ func TestSetReservedPeer(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoMDNS: true, PersistentPeers: []string{addrA.String(), addrB.String()}, } diff --git a/dot/network/host_test.go b/dot/network/host_test.go index e0d4766a53..56ac2b2544 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -158,7 +158,7 @@ func TestBootstrap(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), Bootnodes: []string{addrA.String()}, NoMDNS: true, } diff --git a/dot/network/service_test.go b/dot/network/service_test.go index 31f48e970c..8d004e0df3 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -93,7 +93,7 @@ func createTestService(t *testing.T, cfg *Config) (srvc *Service) { if cfg == nil { cfg = &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, LogLvl: log.Warn, @@ -247,7 +247,7 @@ func Test_Broadcast_Duplicate_Messages_WithDisabled_MessageCache(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MessageCacheTTL: 2 * time.Second, @@ -258,7 +258,7 @@ func Test_Broadcast_Duplicate_Messages_WithDisabled_MessageCache(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MessageCacheTTL: 2 * time.Second, @@ -313,7 +313,7 @@ func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { configA := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MessageCacheTTL: 2 * time.Second, @@ -324,7 +324,7 @@ func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { configB := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, MessageCacheTTL: 2 * time.Second, @@ -378,7 +378,7 @@ func TestService_NodeRoles(t *testing.T) { cfg := &Config{ BasePath: t.TempDir(), Roles: 1, - Port: 0, + Port: availablePort(t), } svc := createTestService(t, cfg) diff --git a/dot/network/transaction_test.go b/dot/network/transaction_test.go index e94a40ee26..a2f9f0cad5 100644 --- a/dot/network/transaction_test.go +++ b/dot/network/transaction_test.go @@ -46,7 +46,7 @@ func TestHandleTransactionMessage(t *testing.T) { config := &Config{ BasePath: t.TempDir(), - Port: 0, + Port: availablePort(t), NoBootstrap: true, NoMDNS: true, TransactionHandler: transactionHandler, diff --git a/dot/rpc/modules/system_integration_test.go b/dot/rpc/modules/system_integration_test.go index f9da374a5c..3a787c4794 100644 --- a/dot/rpc/modules/system_integration_test.go +++ b/dot/rpc/modules/system_integration_test.go @@ -72,7 +72,7 @@ func newNetworkService(t *testing.T) *network.Service { BasePath: t.TempDir(), SlotDuration: time.Second, BlockState: blockStateMock, - Port: 0, + Port:\s+availablePort(t), Syncer: syncerMock, TransactionHandler: transactionHandlerMock, Telemetry: telemetryMock, From 6ca2cfd1d8b81193f28aadd542cf4c863ed0fddb Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Fri, 28 Jan 2022 15:13:41 -0400 Subject: [PATCH 31/35] chore: replace available port by 0 at rpc integration tests --- dot/rpc/modules/system_integration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot/rpc/modules/system_integration_test.go b/dot/rpc/modules/system_integration_test.go index 3a787c4794..f9da374a5c 100644 --- a/dot/rpc/modules/system_integration_test.go +++ b/dot/rpc/modules/system_integration_test.go @@ -72,7 +72,7 @@ func newNetworkService(t *testing.T) *network.Service { BasePath: t.TempDir(), SlotDuration: time.Second, BlockState: blockStateMock, - Port:\s+availablePort(t), + Port: 0, Syncer: syncerMock, TransactionHandler: transactionHandlerMock, Telemetry: telemetryMock, From dd9a674cc2d8c8453f96b81154a569b8948abc95 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Fri, 28 Jan 2022 15:49:05 -0400 Subject: [PATCH 32/35] chore: using rwmutex in addPeerReputation and getNode --- dot/peerset/peerstate.go | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/dot/peerset/peerstate.go b/dot/peerset/peerstate.go index e70c14f751..348782bf2d 100644 --- a/dot/peerset/peerstate.go +++ b/dot/peerset/peerstate.go @@ -110,18 +110,19 @@ type PeersState struct { // since, single Info can also manage the flow. sets []Info - mu sync.Mutex + mu sync.RWMutex } func (ps *PeersState) getNode(p peer.ID) (*node, error) { - ps.mu.Lock() - defer ps.mu.Unlock() + ps.mu.RLock() + defer ps.mu.RUnlock() - if n, ok := ps.nodes[p]; ok { - return n, nil + n, has := ps.nodes[p] + if !has { + return nil, ErrPeerDoesNotExist } - return nil, ErrPeerDoesNotExist + return n, nil } // NewPeerState initiates a new PeersState @@ -174,6 +175,9 @@ func (ps *PeersState) peerStatus(set int, peerID peer.ID) string { // peers return the list of all the peers we know of. func (ps *PeersState) peers() []peer.ID { + ps.mu.RLock() + defer ps.mu.RUnlock() + peerIDs := make([]peer.ID, 0, len(ps.nodes)) for k := range ps.nodes { peerIDs = append(peerIDs, k) @@ -215,16 +219,16 @@ func (ps *PeersState) sortedPeers(idx int) peer.IDSlice { func (ps *PeersState) addReputation(pid peer.ID, change ReputationChange) ( newReputation Reputation, err error) { - n, err := ps.getNode(pid) - if err != nil { - return 0, err + ps.mu.Lock() + defer ps.mu.Unlock() + + n, has := ps.nodes[pid] + if !has { + return 0, ErrPeerDoesNotExist } newReputation = n.addReputation(change.Value) - ps.mu.Lock() - defer ps.mu.Unlock() - ps.nodes[pid] = n return newReputation, nil From c84d611e2bda196ddec4fa216ec8742988005959 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Sat, 29 Jan 2022 14:11:58 -0400 Subject: [PATCH 33/35] chore: address comments --- dot/network/host_test.go | 4 +--- dot/network/service.go | 2 +- dot/peerset/handler.go | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dot/network/host_test.go b/dot/network/host_test.go index 56ac2b2544..9c2f6248b2 100644 --- a/dot/network/host_test.go +++ b/dot/network/host_test.go @@ -708,8 +708,6 @@ func TestPeerReputation(t *testing.T) { rep, err := nodeA.host.cm.peerSetHandler.PeerReputation(addrInfoB.ID) - const zeroReputation int32 = 0 - require.NoError(t, err) - require.Greater(t, rep, zeroReputation) + require.Greater(t, rep, 0) } diff --git a/dot/network/service.go b/dot/network/service.go index 4a3b8536b3..56b7459f75 100644 --- a/dot/network/service.go +++ b/dot/network/service.go @@ -452,7 +452,7 @@ func (s *Service) sendBlockIntervalTelemetry() (err error) { finalised, err := s.blockState.GetHighestFinalisedHeader() if err != nil { - return fmt.Errorf("cannot get highehst finalised header: %w", err) + return fmt.Errorf("cannot get highest finalised header: %w", err) } finalizedHash := finalised.Hash() diff --git a/dot/peerset/handler.go b/dot/peerset/handler.go index ece5c5dac0..5ca8bf4f85 100644 --- a/dot/peerset/handler.go +++ b/dot/peerset/handler.go @@ -53,7 +53,6 @@ func (h *Handler) setActionQueue(act action) { case h.actionQueue <- data: } }(act) - } // AddReservedPeer adds reserved peer into peerSet. From 5e705779edfeed3045edd1c14fc7d0a304694683 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Mon, 30 May 2022 17:24:41 -0400 Subject: [PATCH 34/35] chore: fix lint --- dot/network/service_test.go | 4 +++- dot/network/stream_manager_test.go | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dot/network/service_test.go b/dot/network/service_test.go index 2168fa8894..1f9b67bb2c 100644 --- a/dot/network/service_test.go +++ b/dot/network/service_test.go @@ -337,7 +337,9 @@ func Test_Broadcast_Duplicate_Messages_With_MessageCache(t *testing.T) { } require.NoError(t, err) - stream, err := nodeA.host.p2pHost.NewStream(context.Background(), nodeB.host.id(), nodeB.host.protocolID+blockAnnounceID) + stream, err := nodeA.host.p2pHost.NewStream(context.Background(), + nodeB.host.id(), nodeB.host.protocolID+blockAnnounceID) + require.NoError(t, err) require.NotNil(t, stream) diff --git a/dot/network/stream_manager_test.go b/dot/network/stream_manager_test.go index e53bf01727..e2cb2dfecb 100644 --- a/dot/network/stream_manager_test.go +++ b/dot/network/stream_manager_test.go @@ -17,7 +17,8 @@ import ( "github.com/stretchr/testify/require" ) -func setupStreamManagerTest(t *testing.T, cleanupStreamInterval time.Duration) (context.Context, []libp2phost.Host, []*streamManager) { +func setupStreamManagerTest(t *testing.T, + cleanupStreamInterval time.Duration) (context.Context, []libp2phost.Host, []*streamManager) { t.Helper() ctx, cancel := context.WithCancel(context.Background()) From f1b9a3f9f55bbe2762756dfed89918b1ae52332e Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Mon, 30 May 2022 17:31:30 -0400 Subject: [PATCH 35/35] chore: just fall through the `select` case --- dot/network/service.go | 1 - 1 file changed, 1 deletion(-) diff --git a/dot/network/service.go b/dot/network/service.go index 95e22b934f..8c48fc3366 100644 --- a/dot/network/service.go +++ b/dot/network/service.go @@ -406,7 +406,6 @@ func (s *Service) publishTelemetry(cancel <-chan struct{}) { err := s.sendBlockIntervalTelemetry() if err != nil { logger.Warnf("failed to sent block interval telemetry: %s", err) - continue } select {