Skip to content

Commit

Permalink
do not add tx to the pool in case err != nil
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM committed Jul 26, 2023
1 parent 6fd4c75 commit 44356c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 44356c8

Please sign in to comment.