Skip to content

Test: integration test for appside mempool is needed #516

@cloudgray

Description

@cloudgray

Problem

Image

Currently unit tests for mempool interfaces like Insert, Remove, Select exist. But Integration test using CheckTx and ProcessProposal are not being conducted.

Closing Criteria

  • TestTransactionOrderingWithABCIMethodCalls
    • Check tx ordering with txs which have various gas prices
    • Check tx replacement between txs which have same nonce but different gasPrice
    • Check low gas txs are replaced when mempool is full
    • Check expected txs are included in mempool in expected order by CheckTx.
    • Check expected txs are included in proposal in expected order by PrepareProposal.
  • TestNonceGappedTransactionsWithABCIMethodCalls
    • Check nonce gap tx passes checkTx
    • Check nonce gap txs pass checkTx
    • Check pending count increases when nonce gap is filled
    • Check txs from different accounts with nonce gaps pass checkTx
    • Check expected txs are included in mempool in expected order by CheckTx.
    • Check expected txs are included in proposal in expected order by PrepareProposal.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions