Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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",
]
4 changes: 1 addition & 3 deletions libs/gl-client/src/lsps/lsps2/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
}

Expand Down
5 changes: 3 additions & 2 deletions libs/gl-plugin/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions libs/gl-plugin/src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Arc<tokio::net::unix::SocketAddr>>,
pub peer_cred: Option<tokio::net::unix::UCred>,
Expand Down
6 changes: 6 additions & 0 deletions libs/gl-testing/tests/test_grpc_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ requires-python = ">=3.9"
dependencies = []

[tool.uv]
package = false
dev-dependencies = [
"pytest-timeout>=2.3.1",
]

[tool.uv.workspace]
members = [
Expand Down
Loading