Skip to content

Commit

Permalink
cln-grpc: do not generate cerficates when no autostart.
Browse files Browse the repository at this point in the history
Changelog-None
  • Loading branch information
tonyaldon committed Oct 13, 2023
1 parent 3d8d0c5 commit 00a60a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/grpc-plugin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ async fn main() -> Result<()> {
let path = Path::new("lightning-rpc");

let directory = std::env::current_dir()?;
let (identity, ca_cert) = tls::init(&directory)?;

let plugin = match Builder::new(tokio::io::stdin(), tokio::io::stdout())
.option(options::ConfigOption::new(
Expand Down Expand Up @@ -48,6 +47,8 @@ async fn main() -> Result<()> {
Some(o) => return Err(anyhow!("grpc-port is not a valid integer: {:?}", o)),
};

let (identity, ca_cert) = tls::init(&directory)?;

let state = PluginState {
rpc_path: path.into(),
identity,
Expand Down

0 comments on commit 00a60a3

Please sign in to comment.