-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
test: add failing put/get test with salted content #199
Conversation
when we store data with a salt, and get back a hash to retrieve the data later, the data is not found via the hash any more in 8.4.
ff58c69
to
7252ff2
Compare
update: this also fails with test vector 2 from http://bittorrent.org/beps/bep_0044.html, so it seems like a bug |
@robertkowalski I believe these tests will start working again if you include the Specifically on these two lines: 7252ff2#diff-3309f8e8309d79dd0ea3ba112b4c18e0R110 8ea849c#diff-c48b89eba3c2629431adc02e9d8a71e1R45 You should be passing I'll try to make this change and test later today. |
Update: I was wrong about this. The tests themselves are buggy. See #200 for fixed versions of @robertkowalski's tests. |
@chr15m thanks for your work. you fixed the test by passing the salt to the get function. i don't see anything in the spec that passing the salt on a |
@robertkowalski No I didn't fix the test by passing the salt to the get function. I removed that here because it is superfluous to the fix: cbf06d4#diff-3309f8e8309d79dd0ea3ba112b4c18e0L122 However the only reason this works is because of the way the test system works. In the real world you will need to pass The reason the spec does not say anything about passing However you must be able to validate the responses from other DHT nodes during the So the reason we must pass Sorry if this is not very clear. Tomorrow morning I will try to draw a diagram. |
when we store data with a salt, and get back a hash to retrieve
the data later, the data is not found via the hash any more in
8.4.