Skip to content

Commit 7bea339

Browse files
tonyaldonvincenzopalazzo
authored andcommitted
cln-grpc: do not generate cerficates when no autostart.
Changelog-None
1 parent 340a731 commit 7bea339

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/grpc-plugin/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ async fn main() -> Result<()> {
2020
let path = Path::new("lightning-rpc");
2121

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

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

50+
let (identity, ca_cert) = tls::init(&directory)?;
51+
5152
let state = PluginState {
5253
rpc_path: path.into(),
5354
identity,

0 commit comments

Comments
 (0)