Skip to content

Track competing forks and report the most dangerous one for a transaction - #153

Draft
olga24912 wants to merge 8 commits into
mainfrom
fork_monitoring
Draft

olga24912 wants to merge 8 commits into
mainfrom
fork_monitoring

Conversation

@olga24912

Copy link
Copy Markdown
Contributor

Tracks the tips of all competing chains in forks_tips, sorted by the height of their lowest common ancestor with the main chain.

TxInclusionInfo now carries dangerous_fork_tip_height — the highest fork which does not contain the transaction block and would drop it on a reorg.

A reorg keeps the old main chain as a fork instead of deleting it.

GC for forks: no dangling blocks are left in storage anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant