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

feat: set finalized and safe hash (parlia) #54

Merged
merged 15 commits into from
Jul 15, 2024

Conversation

j75689
Copy link
Collaborator

@j75689 j75689 commented Jul 4, 2024

Description

feat: set finalized and safe hash (parlia)

Rationale

Notifying BlockchainTree of finalized and safe hash can finalize the blocks, and rpc can query it using the finalized and safe tags.

Example

n/a

Changes

Notable changes:

  • parlia engine task
  • bsc block executor

Potential Impacts

no

@j75689 j75689 force-pushed the feat/parlia/finalized_hash branch from b7fab30 to bd16a0b Compare July 8, 2024 07:45
error!(target: "consensus::parlia", ?fcu_response, "Forkchoice update returned invalid response");
break
}
ForkchoiceStatus::Syncing => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

if it is ForkchoiceStatus::Syncing, why both to send the update in the loop again?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because blocktree will return the fcu status code, the function here is to repeatedly send fcu until the Valid is returned.

@j75689 j75689 force-pushed the feat/parlia/finalized_hash branch from 56da573 to bee8093 Compare July 15, 2024 03:10
@j75689 j75689 force-pushed the feat/parlia/finalized_hash branch from 4b29bbb to f2a0a5a Compare July 15, 2024 12:02
@j75689 j75689 force-pushed the feat/parlia/finalized_hash branch from f2a0a5a to e247252 Compare July 15, 2024 12:04
@unclezoro unclezoro merged commit 9f13118 into bnb-chain:develop Jul 15, 2024
34 checks passed
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