-
Notifications
You must be signed in to change notification settings - Fork 146
Refactor handling OFFER
req and update should_store
db method
#324
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
Conversation
Interesting, if I'm understanding correctly this will result in a node sometimes not accepting data that it should accept. Have you done any analysis on why & how often these false positives from Also for what it's worth (if anything), Facebook doesn't use this function in production, at least in 2018: |
Hmm, It seems it is not as reliable as I expected, I will revert back to the |
8657967
to
376ff7d
Compare
Actually, |
376ff7d
to
6b8888f
Compare
6b8888f
to
e7ece03
Compare
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.
Great find on get_pinned
, definitely looks like what we want to be using.
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.
LGTM!
a7916a0
to
6252f4b
Compare
What was wrong?
We were accepting any content offered without checking if we are interested in the content.
Subtask of #313.
How was it fixed?
should_store
DB method to useget_pinned
to avoid unnecessary memory copy and bump rocksdb crate version.should_store
method when handling OFFER requests and accept only content we are interested in.To-Do