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

[Fix] Coupling block sync to DAG state #3261

Closed
wants to merge 6 commits into from
Closed

Conversation

mdelle1
Copy link
Contributor

@mdelle1 mdelle1 commented May 17, 2024

Motivation

This PR focuses on coupling block sync to DAG state replication. When a node is syncing via block responses, it will sync its storage and DAG with the certificates contained in the block and attempt to update its ledger. Previously, there were scenarios where a node would commit certificates in its DAG without advancing blocks. Instead, the committal of certificates and advancement of blocks during sync should be coupled. This PR commits certificates in the DAG only when blocks are advanced to in the sync module and creates a channel to the BFT to ensure that the leader certificate of the block being added was recently committed in the BFT.

@mdelle1 mdelle1 requested a review from raychu86 May 17, 2024 16:13
@mdelle1 mdelle1 changed the title [DRAFT] Coupling block sync to DAG state Coupling block sync to DAG state May 17, 2024
@raychu86 raychu86 changed the base branch from testnet-beta to mainnet-staging May 17, 2024 16:50
@raychu86 raychu86 changed the title Coupling block sync to DAG state [Fix] Coupling block sync to DAG state May 17, 2024
@raychu86 raychu86 marked this pull request as draft May 20, 2024 20:56
@mdelle1 mdelle1 closed this May 22, 2024
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.

None yet

2 participants