10000 e2e: application should log when a transaction is evicted from the mempool · Issue #4111 · cometbft/cometbft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
e2e: application should log when a transaction is evicted from the mempool #4111
Open
@cason

Description

@cason

The e2e application has a logic to evict transactions from the mempool after a given amount of heights, if they are still present there. If it is part of the re-check tx logic:

if stHeight > txHeight.(uint64)+txTTL {
app.logger.Debug("Application CheckTx", "msg", "transaction expired", "tx_hash", cmttypes.Tx.Hash(req.Tx), "seen_height", txHeight, "current_height", stHeight)
app.seenTxs.Delete(txKey)
return &abci.CheckTxResponse{
Code: kvstore.CodeTypeExpired,
Log: fmt.Sprintf("transaction expired; seen height %v, current height %v", txHeight, stHeight),
}, nil

This information, when a transaction is evicted, is logged in Debug mode, therefore not seen during ordinary executions.

I suggest that this information should be always visible, therefore logged in Info mode.

By the way, how can we set the debug level for the e2e application?

Metadata

Metadata

Assignees

No one assigned

    Labels

    e2eRelated to our end-to-end testsenhancementNew feature or requesttestingrelated to unit testing in general

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0