-
Notifications
You must be signed in to change notification settings - Fork 75
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
Respect message list limits when creating messages to send #218
Conversation
Some background from slack:
@Nashatyrev wrote:
|
Basically the approach looks good. |
BTW, does it make sense to simply increase subscription limits as soon as we hit such case? |
What do you think about this variant? 965636b
|
Yeah I really like that approach. You're right that it's quite unusual to exceed these message limits (only case I know of is when three forks are scheduled for subsequent epochs which only happens in devnets). In terms of increasing the subscription limits, I'm assuming at the libp2p level the current limits must be somewhat agreed between clients though not really sure of that. At the Teku level yeah I think we can just increase the limits to make things fit without opening up any real risks - there are still a limited number of "relevant" topics that we allow subscriptions to and it won't require that big an increase on the current limits. |
… submitting all subscriptions
Fixed an issue here 9d39652. When new peer connected |
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.
LGTM
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.
Thanks Anton, looks good.
Somewhat naive approach to ensuring created messages are within the message list limits. Before adding each message part to the new message all list limits are checked. If limits would be exceeded the message part is re-added to the pending pool.
Some concerns:
validateMessageListLimits
(single message) andvalidateMergedMessageListLimits
(two messages)?