-
Notifications
You must be signed in to change notification settings - Fork 66
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
Reduce network by only fetching block meta instead of whole block #267
Reduce network by only fetching block meta instead of whole block #267
Conversation
_ = cleanup_tick.tick() => { | ||
let size_before = recent_confirmed_blocks.len(); | ||
recent_confirmed_blocks.retain(|_blockhash, block| { | ||
block.slot > current_slot - 100 // must be greater than finalized slot distance (32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a good idea, In some cases it takes time to finalize like if there are some complicated bank forks. So current_slot should be last_finalized_slot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah! very good point. my logic was very wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be fixed now
The merge-base changed after approval.
The merge-base changed after approval.
changes: