-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat(network): start network impl and rpc handling #462
Conversation
794ea76
to
d796f44
Compare
Next up:
|
} | ||
} | ||
} | ||
} |
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.
TODO: tests
Codecov Report
... and 1 file with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
d796f44
to
0eb3059
Compare
|
||
let transport = tcp::tokio::Transport::default() | ||
.upgrade(upgrade::Version::V1Lazy) | ||
.authenticate(noise::Config::new(&local_key).unwrap()) |
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.
TODO: remove these unwraps
let mplex_config = libp2p_mplex::MplexConfig::new(); | ||
let yamux_config = libp2p::yamux::Config::default(); |
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.
TODO: pass these in through config
use rundler_network::{Config as NetworkConfig, ConnectionConfig, Network}; | ||
use tokio::sync::mpsc; | ||
|
||
const PRIVATE_KEY: &str = "b0ddfec7d365b4599ff8367e960f8c4890364f99e2151beac352338cc0cfe1bc"; |
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.
move this to a .env
#248
Proposed Changes
Network
implementation with the RPC behavior (sorry about the behaviour spelling, thats what libp2p uses to I was consistent).