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 remaining issues for getting lfmb from sharders #167

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

peterlimg
Copy link
Member

Get latest finalized magic block from shaders and return the block with highest magic block starting round, or block with highest round if they have the same MB starting round. Previously, it returns the the list of latest finalized magic block acquired from sharders, and do the sorting outside the function. This makes the sorting algorithm spread everywhere when the GetLastFinalizedMagicBlockFromSharder is called, and can cause unexpected issue if the sorting algorithm needs update.

Get latest finalized magic block from shaders and return the block with highest magic block starting round, or block with highest round if they have the same MB starting round. Previously, it returns the the list of latest finalized magic block acquired from sharders, and do the sorting outside the function. This makes the sorting algorithem spread everywhere when the GetLastFinalizedMagicBlockFromSharder is called, and can cause unexpected issue if the sorting algorithem needs update.
@peterlimg peterlimg added the bug label Apr 8, 2021
@peterlimg peterlimg changed the title Fix a remaining issue of getting lfmb from sharders Fix remaining issues for getting lfmb from sharders Apr 8, 2021
@Sriep Sriep merged commit c93e602 into master Apr 8, 2021
@platsko platsko deleted the fix/err-get-lfmb-from-sharders branch May 9, 2021 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants