From fa79d3d9a11e86f7426a8200e3838b933c572567 Mon Sep 17 00:00:00 2001 From: Jon Chappelow Date: Mon, 24 Feb 2025 17:06:25 -0600 Subject: [PATCH] remove confusing duplicate log in CheckTx rejection --- node/block_processor/processor.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/node/block_processor/processor.go b/node/block_processor/processor.go index 1d3a06339..e1dcb12be 100644 --- a/node/block_processor/processor.go +++ b/node/block_processor/processor.go @@ -254,7 +254,7 @@ func (bp *BlockProcessor) CheckTx(ctx context.Context, tx *ktypes.Transaction, h return fmt.Errorf("failed to get tx sender identifier: %w", err) } - err = bp.txapp.ApplyMempool(&common.TxContext{ + return bp.txapp.ApplyMempool(&common.TxContext{ Ctx: ctx, BlockContext: &common.BlockContext{ ChainContext: bp.chainCtx, @@ -267,12 +267,6 @@ func (bp *BlockProcessor) CheckTx(ctx context.Context, tx *ktypes.Transaction, h Caller: ident, Authenticator: tx.Signature.Type, }, readTx, tx) - if err != nil { - bp.log.Info("Transaction rejected", "tx", txHash, "err", err, "recheck", recheck) - return err - } - - return nil } // InitChain initializes the node with the genesis state. This included initializing the