-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Sync stand-alone binary and feature-gated dependencies refactoring #1637
Conversation
|
||
run_service("ipc:///tmp/parity-sync.ipc", stop.clone(), &(sync.clone() as Arc<SyncProvider>)); | ||
run_service("ipc:///tmp/parity-manage-net.ipc", stop.clone(), &(sync.clone() as Arc<ManageNetwork>)); | ||
run_service("ipc:///tmp/parity-sync-notify.ipc", stop.clone(), &(sync.clone() as Arc<ChainNotify>)); |
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.
why pass by reference here at all? you are cloning just so you can pass by-ref just so run_service
can clone again?
use nanoipc::*; | ||
use ethsync::{SyncProvider, SyncConfig, EthSync, ManageNetwork, NetworkConfiguration}; | ||
use std::thread; | ||
use util::numbers::*; |
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.
seems like just U256
is used here? prefer without glob import. atomic is only used for AtomicBool
and Ordering
.
nanoipc is used for Worker
, but that's referenced explicitly from nanoipc
@rphmeier |
--public-address IP Public address. | ||
--boot-nodes LIST List of boot nodes. | ||
--reserved-nodes LIST List of reserved peers, | ||
--secret HEX Use node key hash |
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.
if this is passed on the CLI, won't it be visible to anyone able to run ps
? maybe better to pass via stdin/out.
@gavofyork i moved hashing of secret to the sync side, so ps-runner won't get any new information |
@@ -38,6 +38,7 @@ use std::thread; | |||
use util::numbers::{U256, H256}; | |||
use std::str::FromStr; | |||
use nanoipc::IpcInterface; | |||
use util::sha3::*; |
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.
only used for Hashable
trait?
@rphmeier updated |
lgtm, although I don't like the idea of passing network config on the command line. It should be serialized much as other type so we don't have to worry about IPC when adding a new config option. |
No description provided.