-
Notifications
You must be signed in to change notification settings - Fork 1k
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
TCP P2P optimization #710
TCP P2P optimization #710
Conversation
shargon
commented
Apr 22, 2019
•
edited
Loading
edited
- VersionPayload now have a enum for services
- The command in header now is one byte instead of 12 byte string
- P2P have auto compression mechanism
- MagicBytes is sent in VersionPayload
- CRC was removed
Some compression samples: Block 1945085 (Biggest):
Block 1318368 (Big one):
Block 4 (with only 1 tx):
|
Congratulations, @shargon! I need to focus on some other minor things during this week. |
@shargon any opinion on https://facebook.github.io/zstd/#small-data ? Would it help here ? |
@canesin, great to see you here, my friend. @shargon, I think that this is the link for the C# recommended implementation: https://github.com/bp74/Zstandard.Net |
@canesin maybe we can use different flags for different compression mechanisms, and allow more in the future. And maybe if zstandard is better for small data, we can change it on real time, and choose the best one for our packet |
The compression details goes in the header, @shargon? |
@vncoelho yes, now we have flags for each message, and we can use it for compression, encryption, or other things |
@shargon, these github |
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.
I am starting to check the code, @shargon.
It looks like to be a nice job, congratulations.
The connection is lost when we receive |
Now, is working well in my laptlop, could anyone more test it please? |
I think that we can add this improve too: shargon#11 We thought that GetBlocksPayload could be improved, what do you think? |
My problem was a configuration problem, so i think that we can merge it, but please, review this shargon#11 for incorporate to this pr or don't |
shargon#11 is good. But I can't modify it. |
Simplify GetBlocksPayload
I invited you to the repo, and I merged it, please, modify whatever you want. |
Follow neo-project/neo#710 changes.