Skip to content

[mempool] Problem: new block is not notified in time #473

@yihuang

Description

@yihuang

Right now, new block event for mempool is notified in EndBlocker. But in end blocker, the current block is not finalized, so then mempool try to query the latest block, it only gets the last block, so the mempool state is almost one block behind with the latest block.

Possible solutions: subscribe the new block event from cometbft?

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