feat: init keystore support VRF and P2P network#8
Open
carlhh369 wants to merge 11 commits into
Open
Conversation
hertarr
reviewed
Mar 16, 2024
Contributor
hertarr
left a comment
There was a problem hiding this comment.
I think it's bad to handle action events in p2p module.
| @@ -0,0 +1,182 @@ | |||
| use anyhow::Result; | |||
Collaborator
Author
There was a problem hiding this comment.
sure changed to this error
| pub struct Behaviour { | ||
| request_response: request_response::cbor::Behaviour<PeerRequest, PeerResponse>, | ||
| kademlia: kad::Behaviour<kad::store::MemoryStore>, | ||
| gossipsub: gossipsub::Behaviour, |
Contributor
There was a problem hiding this comment.
gossipsub doesn't meet requirements for extensibility.
Collaborator
Author
There was a problem hiding this comment.
should use simple request and response protocol for full node and light nodes messaging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Demo Peer Instruction
Build
Startup fullnode
This command start fullnode with p2p network listen port 5001 and web server listen port 3001.
Copy Fullnode multiaddress in log
Multiaddress: /ip4/127.0.0.1/tcp/6336/p2p/12D3KooWDALh1fbe7g8HP8pFJsrPCzoYtFV15gVyyRH7tTgMuinJ
Startup light nodes
startup lightnode A
startup lightnode B
...
Test Put/Get Data
Put Data
Copy the response CID
something like: 0b592ea6074ab5a4cc369e392475a613ce5858b6ef9340e9ef7e7e2ddf4d266c
Get Data
Test data chunks send and ack
full node send a 1MBytes data chunk to 100 light nodes each and wait for ack responses concurrently. Local test on 4c16g,request and response total takes 275ms.
Start 100 light nodes as above
Full node print log