Skip to content

Commit 2dc63fa

Browse files
committed
fixup! plugin: Implement LSP selection for lsp_invoice
1 parent d417cd3 commit 2dc63fa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

libs/gl-client-py/tests/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,4 @@ def test_lsps_plugin_calls(clients, bitcoind, node_factory, lsps_server):
234234
# Only one routehint, with only one hop, the LSP to the destination
235235
assert len(inv.route_hints.route_hints) == 1
236236
rh = inv.route_hints.route_hints[0]
237-
assert rh["pubkey"] == bytes.fromhex(lsp_id)
237+
assert rh.pubkey == bytes.fromhex(lsp_id)

libs/gl-client/src/signer/resolve.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ impl Resolver {
8181
// TODO: Add `close_to` to allowlist for the close
8282
// later on
8383
}
84+
(Message::SignInvoice(_l), Request::LspInvoice(_r)) => {
85+
// TODO: This could also need some
86+
// strengthening. See below.
87+
true
88+
}
8489
(Message::SignInvoice(_l), Request::Invoice(_r)) => {
8590
// TODO: This could be strengthened by parsing the
8691
// invoice from `l.u5bytes` and verify the

0 commit comments

Comments
 (0)