diff --git a/docs/pyproject.toml b/docs/pyproject.toml new file mode 100644 index 000000000..7c8caec90 --- /dev/null +++ b/docs/pyproject.toml @@ -0,0 +1,17 @@ +[project] +name = "gl-docs" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.10" +dependencies = [ + "mkdocs>=1.6.1", + "mkdocs-material>=9.5.49", + "mkdocs-redirects>=1.2.2", + "mkdocs-material-extensions>=1.3.1", + "pymdown-extensions>=10.13", + "ghp-import>=2.1.0", + "pdoc>=15.0.1", + "cairosvg>=2.7.1", + "pillow>=11.0.0", +] diff --git a/libs/gl-client/src/lsps/lsps2/schema.rs b/libs/gl-client/src/lsps/lsps2/schema.rs index f79e4bf61..09918b086 100644 --- a/libs/gl-client/src/lsps/lsps2/schema.rs +++ b/libs/gl-client/src/lsps/lsps2/schema.rs @@ -39,9 +39,7 @@ impl<'de> Deserialize<'de> for Promise { D: serde::Deserializer<'de>, { let str_repr = String::deserialize(deserializer)?; - let promise = Promise::new(str_repr.clone()); - Promise::new(str_repr.clone()) - .map_err(|_| D::Error::custom("promise exceeds max length")) + Promise::new(str_repr.clone()).map_err(|_| D::Error::custom("promise exceeds max length")) } } diff --git a/libs/gl-plugin/src/node/mod.rs b/libs/gl-plugin/src/node/mod.rs index ac43fd51d..ca0f68b84 100644 --- a/libs/gl-plugin/src/node/mod.rs +++ b/libs/gl-plugin/src/node/mod.rs @@ -7,7 +7,6 @@ use crate::{stager, tramp}; use anyhow::{Context, Error, Result}; use base64::{engine::general_purpose, Engine as _}; use bytes::BufMut; -use gl_client::bitcoin::hashes::hex::ToHex; use gl_client::persist::State; use governor::{ clock::MonotonicClock, state::direct::NotKeyed, state::InMemoryState, Quota, RateLimiter, @@ -230,7 +229,9 @@ impl Node for PluginNodeServer { // log entries are produced while we're streaming the // backlog out, but do we care? use tokio::io::{AsyncBufReadExt, BufReader}; - let file = tokio::fs::File::open("/tmp/log").await?; + // The nodelet uses its CWD, but CLN creates a network + // subdirectory + let file = tokio::fs::File::open("../log").await?; let mut file = BufReader::new(file).lines(); tokio::spawn(async move { diff --git a/libs/gl-plugin/src/unix.rs b/libs/gl-plugin/src/unix.rs index a163b833f..f00df4fce 100644 --- a/libs/gl-plugin/src/unix.rs +++ b/libs/gl-plugin/src/unix.rs @@ -22,6 +22,7 @@ impl Connected for UnixStream { } #[derive(Clone, Debug)] +#[allow(dead_code)] // TODO: Check if this is really needed. pub struct UdsConnectInfo { pub peer_addr: Option>, pub peer_cred: Option, diff --git a/libs/gl-testing/tests/test_grpc_web.py b/libs/gl-testing/tests/test_grpc_web.py index be37a3550..ce9c1e936 100644 --- a/libs/gl-testing/tests/test_grpc_web.py +++ b/libs/gl-testing/tests/test_grpc_web.py @@ -47,6 +47,7 @@ def test_node_grpc_web(scheduler, node_grpc_web_proxy, clients): c = clients.new() c.register(configure=True) n = c.node() + _s = c.signer().run_in_thread() info = n.get_info() # Now extract the TLS certificates, so we can sign the payload. @@ -62,3 +63,8 @@ def test_node_grpc_web(scheduler, node_grpc_web_proxy, clients): req = clnpb.GetinfoRequest() info = web_client.call("Getinfo", req) print(info) + + # Ask for a new address + req = clnpb.NewaddrRequest() + addr = web_client.call("NewAddr", req) + print(addr) diff --git a/pyproject.toml b/pyproject.toml index fb189dbb6..66624e20e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,9 @@ requires-python = ">=3.9" dependencies = [] [tool.uv] -package = false +dev-dependencies = [ + "pytest-timeout>=2.3.1", +] [tool.uv.workspace] members = [