Skip to content

Commit

Permalink
Fix peerd args for selecting bifrost or bolt subnetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jun 13, 2022
1 parent 1fae4c9 commit 9e52aeb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ lnpbp = "0.7.0"
lnp-core = "0.7.0-beta.1"
lnp_rpc = { version = "0.7.0-beta.1", path = "./rpc" }
internet2 = { version = "0.7.0-rc.1", features = ["keygen", "url"] }
microservices = { version = "0.7.0-rc.1", default-features = false, features = ["node", "peer"] }
microservices = { version = "0.7.0-rc.3", default-features = false, features = ["node", "peer"] }
# Bitcoin
bitcoin = { version = "0.28.1", features = ["rand"] }
miniscript = "7.0.0"
Expand Down
4 changes: 2 additions & 2 deletions src/lnpd/daemons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ impl Runtime {
let socket_addr = SocketAddr::try_from(*inet).expect("invalid connection address");
let ip = socket_addr.ip();
let port = socket_addr.port();
cmd.args(&["--listen", &ip.to_string(), "--port", &port.to_string()]);
cmd.args(&["--bolt", "--listen", &ip.to_string(), "--port", &port.to_string()]);
}
Daemon::PeerdBolt(PeerSocket::Connect(node_addr), _) => {
cmd.args(&["--connect", &node_addr.to_string()]);
cmd.args(&["--bolt", "--connect", &node_addr.to_string()]);
}
Daemon::PeerdBolt(PeerSocket::Listen(_), _) => {
// Lightning do not support non-TCP sockets
Expand Down

0 comments on commit 9e52aeb

Please sign in to comment.