From 44356c8e27b8f9575913281034d57139a121f5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20Ram=C3=ADrez?= Date: Wed, 26 Jul 2023 16:50:24 +0200 Subject: [PATCH] do not add tx to the pool in case err != nil --- pool/pool.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pool/pool.go b/pool/pool.go index 7a0ca6a1f1..640f1bde41 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -175,7 +175,8 @@ func (p *Pool) StoreTx(ctx context.Context, tx types.Transaction, ip string, isW // Do not add tx to the pool return err } else if err != nil { - log.Debugf("PreExecuteTx error (this can be ignored): %v", err) + log.Errorf("PreExecuteTx error: %v", err) + return err } if preExecutionResponse.isOOC {