-
Notifications
You must be signed in to change notification settings - Fork 166
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
clamping sync requests #1273
clamping sync requests #1273
Conversation
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 a bunch for getting to this fast!
I would love a code comment on each of the two checks making it explicit we enforce existing client-side limits, and that this therefore shouldn't have an effect on a well-behaving client.
Without that, another later reader, may not find it obvious those lines are meant to check for mischief.
One more thing: |
Addressed comments |
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 a bunch!
}, | ||
) | ||
err = ss.e.requestHandler.onRangeRequest(originID, req) | ||
require.NoError(ss.T(), err, "valid range request should pass") |
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.
Nit: do we want to call this "valid"?
}, | ||
) | ||
err = ss.e.requestHandler.onBatchRequest(originID, req) | ||
require.NoError(ss.T(), err, "should pass request with valid blocks") |
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.
Nit: do we want to call this "valid"?
Codecov Report
@@ Coverage Diff @@
## master #1273 +/- ##
==========================================
+ Coverage 54.59% 54.61% +0.01%
==========================================
Files 498 498
Lines 31533 31538 +5
==========================================
+ Hits 17217 17223 +6
Misses 11968 11968
+ Partials 2348 2347 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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
bors merge |
closes #https://github.com/dapperlabs/flow-go/issues/5836