-
Notifications
You must be signed in to change notification settings - Fork 65
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
Change rlp to alloy-rlp #212
Conversation
When I tried below inputs for decoding and encoding let data = [6, 193, 0, 63];
let msg = Message::decode(&data).unwrap();
let encoded = msg.encode();
assert_eq!(data.to_vec(), encoded); the result is:
2- let data = [6, 193, 128, 75];
let msg = Message::decode(&data).unwrap();
let encoded = msg.encode();
assert_eq!(data.to_vec(), encoded); the result is:
3- let data = [6, 193, 128, 128];
let msg = Message::decode(&data).unwrap();
let encoded = msg.encode();
assert_eq!(data.to_vec(), encoded); the result is:
|
Giving you here some ideas of what going on so that maybe you can figure out the bugs:
Same as before, only the
Exactly as before |
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.
This initially looks good to me. @ackintosh - If you have a spare sec, could you run this against some real nodes and see if it functions as we expect.
Also @armaganyildirak - Can you target a released version of the ENR crate so we can merge this in. |
@AgeManning We merged my enr alloy-rlp PR after the v0.10.0 so this PR is not working with enr v0.10.0. But this PR is working with latest enr commits. |
ahh ok, So we need a new ENR release. Cool. I'll get that sorted, thanks |
Yes thank you. I will change the enr version with new one after we need a new discv5 release because this two PRs are working together. |
I'm sorry for not noticing this PR earlier. Currently, I'm conducting tests for this PR using Testground (discv5-testground), and everything looks good so far. I'm also working on creating tests for TALKREQ/TALKRESP. I'll let you know once the tests are completed. |
The tests have been successfully completed. 🙂 |
@AgeManning. I changed enr version to |
Awesome. Thanks @armaganyildirak - I've yanked 10.1, can we target 11.0 now. Then lets merge this guy down. |
I changed enr version |
Description
Try to change rlp to alloy-rlp.
Notes & open questions
Some of the tests are not working. Probably I need help for fixing them.
I import my latest pr sigp/enr#46 as enr because I need the use alloy-rlp for both repo.