Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitcoin] Introduce pending block and handle reorg #1901

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

jolestar
Copy link
Contributor

Summary

Introduce pending block and handle reorg.

part of #1685

TODO

  1. Refactor the relayer and confirm the L1 tx in the new transaction.
  2. Add more tests to reorg.

Copy link

vercel bot commented Jun 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2024 1:42am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Jun 18, 2024 1:42am

Copy link

github-actions bot commented Jun 17, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

// if the reorg happen, the latest block height should not be none.
let current_height = *option::borrow(&store.latest_block_height);
let block_hashs = vector::empty<address>();
while(current_height > block_height){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

处理 reorg 时,最多回退多少个区块?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有个设置 reorg_pending_blocks,这个值要再确认一下。

@jolestar jolestar requested a review from pause125 as a code owner June 18, 2024 01:41
@jolestar jolestar merged commit b806247 into main Jun 18, 2024
8 checks passed
@jolestar jolestar deleted the refactor_block_process branch June 18, 2024 04:03
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.

2 participants