From a52401d9d03910c8721c72142b07caf54199ebb3 Mon Sep 17 00:00:00 2001 From: decentclock Date: Fri, 12 Aug 2022 09:34:17 -0600 Subject: [PATCH] Nits Remove libc explicit dependency after 0.2.131 was published with the needed fix Specify correct feature dependencies for signer lightning-signer-core crate Log when the signer's handle call returned --- signer/Cargo.toml | 2 +- signer/src/lib.rs | 3 +++ sphinx-key/Cargo.toml | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/signer/Cargo.toml b/signer/Cargo.toml index f39fb81..d426956 100644 --- a/signer/Cargo.toml +++ b/signer/Cargo.toml @@ -9,7 +9,7 @@ sphinx-key-parser = { path = "../parser" } sphinx-key-persister = { path = "../persister" } # vls-protocol-signer = { path = "../../../evanf/validating-lightning-signer/vls-protocol-signer", default-features = false, features = ["std", "secp-lowmemory"] } # vls-protocol-signer = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer", default-features = false, features = ["secp-lowmemory"] } -lightning-signer-core = { git = "https://gitlab.com/Evanfeenstra/validating-lightning-signer", branch = "sphinx-key-1.2" } +lightning-signer-core = { git = "https://gitlab.com/Evanfeenstra/validating-lightning-signer", branch = "sphinx-key-1.2", default-features = false, features = ["std", "secp-lowmemory"] } vls-protocol-signer = { git = "https://gitlab.com/Evanfeenstra/validating-lightning-signer", branch = "sphinx-key-1.2", default-features = false, features = ["std", "secp-lowmemory"] } anyhow = {version = "1", features = ["backtrace"]} log = "0.4" diff --git a/signer/src/lib.rs b/signer/src/lib.rs index 87748db..9df9bdb 100644 --- a/signer/src/lib.rs +++ b/signer/src/lib.rs @@ -89,6 +89,9 @@ pub fn handle( } else { root_handler.handle(message).expect("handle") }; + if do_log { + log::info!("VLS msg handled"); + } let mut out_md = MsgDriver::new_empty(); write_serial_response_header(&mut out_md, sequence).expect("write reply header"); msgs::write_vec(&mut out_md, reply.as_vec()).expect("write reply"); diff --git a/sphinx-key/Cargo.toml b/sphinx-key/Cargo.toml index fdfe769..15882d6 100644 --- a/sphinx-key/Cargo.toml +++ b/sphinx-key/Cargo.toml @@ -20,7 +20,6 @@ pingpong = [] no_persist = [] [dependencies] -libc = "=0.2.127" bitflags = "1.3.2" esp-idf-sys = { version = "0.31.6", features = ["binstart"] } sphinx-key-signer = { path = "../signer", optional = true }