IntersectMBO / IntersectMBO/ouroboros-consensus

Mempool snapshotting should not eagerly validate all transactions

Open
#568 1 comment 0 reactions 0 assignees View on GitHub
technical debt
Dominant language
Haskell
Stars
67
Forks
43
Avg merge
5d 13h
Merged PRs (30d)
43

Description

Right now, it seems like fetching a mempool snapshot for a ledger state will eagerly validate all transactions. When forging a block, it would be nice to only have it validate transactions until the block is full.

One idea would be to make sure that the returned list of transactions is lazily filtered by validity.

Also, the `TraceForgingMempoolSnapshot` event is currently forcing the length of the transactions, which has to be adapted for this to work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.