From 137d1a289260d5619dcacaef5df4202988a136f0 Mon Sep 17 00:00:00 2001 From: NathanBSC Date: Fri, 5 May 2023 19:25:05 +0800 Subject: [PATCH] fix: output an error log when bsc extension fail to handshake --- eth/handler_bsc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/handler_bsc.go b/eth/handler_bsc.go index fcb39ed1ab..195691989b 100644 --- a/eth/handler_bsc.go +++ b/eth/handler_bsc.go @@ -27,6 +27,7 @@ func (h *bscHandler) RunPeer(peer *bsc.Peer, hand bsc.Handler) error { ps.lock.Lock() if wait, ok := ps.bscWait[id]; ok { delete(ps.bscWait, id) + peer.Log().Error("Bsc extension Handshake failed", "err", err) wait <- nil } ps.lock.Unlock()