IntersectMBO / IntersectMBO/ouroboros-consensus

Resubmit transactions from rolled back blocks

Open
#674 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Haskell
Stars
67
Forks
43
Avg merge
5d 13h
Merged PRs (30d)
43

Description

Duncan:
> Once we get to Praos and we get frequent short forks, we'll want to take txs from blocks that got rolled back and put them back into the mempool. This is "just" a performance optimisation since wallets will re-submit anyway. So how to do this in a simple modular way? Idea...
Do it asynchronously. A thread uses the chain db chain follower api to follow the current chain. When it rolls back, query the volatile db for the blocks that were rolled back, extract the txs and try to add them to the end of the mempool.
So the chain db and mempool should not have to be aware of this at all. It's just best effort, no guarantee if we fork extremely quickly and the thread cannot keep up.

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.