network: add debug for transactions as well

Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
Roman Khimov 2024-01-11 19:13:26 +03:00
parent db2e214f7e
commit f9a82ae45f

View file

@ -1142,8 +1142,11 @@ txloop:
} }
} }
} }
if s.verifyAndPoolTX(tx) == nil { err := s.verifyAndPoolTX(tx)
if err == nil {
s.broadcastTX(tx, nil) s.broadcastTX(tx, nil)
} else {
s.log.Debug("tx handler", zap.Error(err), zap.String("hash", tx.Hash().StringLE()))
} }
s.txInLock.Lock() s.txInLock.Lock()
delete(s.txInMap, tx.Hash()) delete(s.txInMap, tx.Hash())