From 9039b6cd053e25e839269f825ebf50cb64f59393 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Wed, 6 Jan 2021 19:14:03 -0500 Subject: [PATCH] blockchain v0: fix faux router --- blockchain/v0/reactor_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blockchain/v0/reactor_test.go b/blockchain/v0/reactor_test.go index b5fee74ce..30c45bd28 100644 --- a/blockchain/v0/reactor_test.go +++ b/blockchain/v0/reactor_test.go @@ -246,7 +246,7 @@ func simulateRouter(primary *reactorTestSuite, suites []*reactorTestSuite) { if envelope.Broadcast { for _, s := range suites { // broadcast to everyone except source - if s.peerID != envelope.From { + if s.peerID != primary.peerID { s.blockchainInCh <- p2p.Envelope{ From: primary.peerID, To: s.peerID, @@ -267,8 +267,8 @@ func simulateRouter(primary *reactorTestSuite, suites []*reactorTestSuite) { }() go func() { - for range primary.blockchainPeerErrCh { - // drop peer errors + for pErr := range primary.blockchainPeerErrCh { + primary.reactor.Logger.Debug("dropped peer error", "err", pErr.Err) } }() }