Skip to content

mempool: Reject incoming txs while catching up #785

Closed

Description

@hvanz

Summary

Following the decision taken in RFC 103, a node that is catching up (that is, performing BlockSync or StateSync) should not accept incoming transactions until it switches to consensus mode.

See #734.

Proposal

While the node is performing state sync or block sync:

  • Disable the RPC endpoints broadcast_txs_* by returning an error.
  • The mempool reactor should reject incoming transactions and should not send any transaction that may have in the mempool.

There was a proposal for implementing node phases, but we won't do that here.

Activity

  1. added
    enhancement
    on May 3, 2023
  2. self-assigned this
    on May 3, 2023
  3. added
    P:integrator-experience
    on May 4, 2023
  4. cason commented on May 5, 2023

    @cason
  5. removed
    P:integrator-experience
    on Jul 13, 2023
  6. moved this from Todo to In Progress in CometBFT 2023on Jul 13, 2023
  7. moved this from In Progress to Done in CometBFT 2023on Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementmempool

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions