Skip to content

Commit

Permalink
remove confusing duplicate log in CheckTx rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
jchappelow committed Feb 24, 2025
1 parent 77f6784 commit fa79d3d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions node/block_processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit fa79d3d

Please sign in to comment.