Commit c9deb066 authored by Stavros Korokithakis's avatar Stavros Korokithakis

Connect the IPFS node to Eternum as a peer on startup

parent 1b5f74aa
......@@ -171,6 +171,13 @@ fn start_ipfs() {
if conn.is_ok() {
info!("Daemon is up, continuing...");
thread::sleep(Duration::from_secs(1));
// Connect this node to Eternum directly.
Command::new(IPFS_EXECUTABLE)
.env("IPFS_PATH", &*IPFS_PATH)
.args(&["swarm", "connect", "/ip4/195.201.40.251/tcp/4001/ipfs/QmXRxDBWU7zA6yBDtLNM3HMU2W8BRVjRhew42bKHE63yfe"])
.output();
notify_ipfs(true);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment