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

Timeout for block proposal. #4553

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Timeout for block proposal. #4553

merged 2 commits into from
Nov 10, 2023

Conversation

Frozen
Copy link
Contributor

@Frozen Frozen commented Nov 7, 2023

This pull request mainly includes refactoring of the rotateLeader function and additional functions for more detailed logging.

@Frozen Frozen changed the title Timeout for proposal. Timeout for block proposal. Nov 7, 2023
@Frozen Frozen added the WIP Work in progress don't merge yet! label Nov 9, 2023
@Frozen Frozen marked this pull request as ready for review November 9, 2023 00:36
@Frozen Frozen self-assigned this Nov 9, 2023
@Frozen Frozen removed the WIP Work in progress don't merge yet! label Nov 9, 2023
@Frozen Frozen merged commit dbe4d43 into dev Nov 10, 2023
2 checks passed
@ONECasey ONECasey deleted the fix/leader-proposal-timeout branch January 30, 2024 15:45
leader = consensus.getLeaderPubKey()
curBlock = bc.CurrentBlock()
curNumber = curBlock.NumberU64()
curEpoch = curBlock.Epoch().Uint64()
)
const blocksCountAliveness = 10
const blocksCountAliveness = 4
Copy link
Contributor

Choose a reason for hiding this comment

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

could you please explain this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

4 is more comfortable for localnet. If no blocks from validator for 4 blocks means validator is inactive, and we can skip him from future rotating.

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