From f9a82ae45f8160f6a34e0b461a7e741cd4e8bb22 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 11 Jan 2024 19:13:26 +0300 Subject: [PATCH] network: add debug for transactions as well Signed-off-by: Roman Khimov --- pkg/network/server.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/network/server.go b/pkg/network/server.go index 30c221257..e000c18c5 100644 --- a/pkg/network/server.go +++ b/pkg/network/server.go @@ -1142,8 +1142,11 @@ txloop: } } } - if s.verifyAndPoolTX(tx) == nil { + err := s.verifyAndPoolTX(tx) + if err == nil { s.broadcastTX(tx, nil) + } else { + s.log.Debug("tx handler", zap.Error(err), zap.String("hash", tx.Hash().StringLE())) } s.txInLock.Lock() delete(s.txInMap, tx.Hash())