You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lightning-liquidity/README.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,15 @@ inbound Lightning liquidity for which they are willing and able to pay in bitcoi
14
14
on-boarding of clients as the channel opening fees are deducted from the
15
15
incoming payment, i.e., no funds are required client-side to initiate this
16
16
flow.
17
+
-[bLIP-55 / LSPS5] lets a client register HTTPS webhooks with its LSP so the LSP can send signed push
18
+
notifications (for example "payment incoming") that wake the app when it is offline, which is essential
19
+
for mobile wallets that get suspended in the background.
17
20
18
-
To get started, you'll want to setup a `LiquidityManager` and configure it to be the `CustomMessageHandler` of your LDK node. You can then call `LiquidityManager::lsps1_client_handler` / `LiquidityManager::lsps2_client_handler`, or `LiquidityManager::lsps2_service_handler`, to access the respective client-side or service-side handlers.
21
+
To get started, you'll want to setup a `LiquidityManager` and configure it to be the `CustomMessageHandler` of your LDK node. You can then call `LiquidityManager::lsps1_client_handler` / `LiquidityManager::lsps2_client_handler`, `LiquidityManager::lsps2_service_handler`,`LiquidityManager::lsps5_service_handler` or `LiquidityManager::lsps5_client_handler` to access the respective client-side or service-side handlers.
19
22
20
23
`LiquidityManager` uses an eventing system to notify the user about important updates to the protocol flow. To this end, you will need to handle events emitted via one of the event handling methods provided by `LiquidityManager`, e.g., `LiquidityManager::next_event`.
Copy file name to clipboardExpand all lines: lightning-liquidity/src/lsps2/client.rs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,7 @@ where
206
206
"Received get_info response for an unknown request: {:?}",
207
207
request_id
208
208
),
209
-
action:ErrorAction::IgnoreAndLog(Level::Info),
209
+
action:ErrorAction::IgnoreAndLog(Level::Debug),
210
210
});
211
211
}
212
212
@@ -222,7 +222,7 @@ where
222
222
"Received get_info response from unknown peer: {:?}",
223
223
counterparty_node_id
224
224
),
225
-
action:ErrorAction::IgnoreAndLog(Level::Info),
225
+
action:ErrorAction::IgnoreAndLog(Level::Debug),
226
226
})
227
227
},
228
228
}
@@ -246,7 +246,7 @@ where
246
246
"Received get_info error for an unknown request: {:?}",
247
247
request_id
248
248
),
249
-
action:ErrorAction::IgnoreAndLog(Level::Info),
249
+
action:ErrorAction::IgnoreAndLog(Level::Debug),
250
250
});
251
251
}
252
252
@@ -267,7 +267,7 @@ where
267
267
Err(lightning_error)
268
268
},
269
269
None => {
270
-
returnErr(LightningError{err:format!("Received error response for a get_info request from an unknown counterparty ({:?})",counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)});
270
+
returnErr(LightningError{err:format!("Received error response for a get_info request from an unknown counterparty ({:?})",counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
271
271
},
272
272
}
273
273
}
@@ -289,7 +289,7 @@ where
289
289
"Received buy response for an unknown request: {:?}",
err:format!("Received buy error for an unknown request: {:?}", request_id),
338
-
action:ErrorAction::IgnoreAndLog(Level::Info),
338
+
action:ErrorAction::IgnoreAndLog(Level::Debug),
339
339
})?;
340
340
341
341
let lightning_error = LightningError{
@@ -355,7 +355,7 @@ where
355
355
Err(lightning_error)
356
356
},
357
357
None => {
358
-
returnErr(LightningError{err:format!("Received error response for a buy request from an unknown counterparty ({:?})", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)});
358
+
returnErr(LightningError{err:format!("Received error response for a buy request from an unknown counterparty ({:?})", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
returnErr(LightningError{err:format!("Received LSPS0 request message without LSPS0 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)});
503
+
returnErr(LightningError{err:format!("Received LSPS0 request message without LSPS0 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
returnErr(LightningError{err:format!("Received LSPS1 request message without LSPS1 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)});
524
+
returnErr(LightningError{err:format!("Received LSPS1 request message without LSPS1 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
525
525
},
526
526
}
527
527
#[cfg(not(lsps1_service))]
528
-
returnErr(LightningError{err:format!("Received LSPS1 request message without LSPS1 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)});
528
+
returnErr(LightningError{err:format!("Received LSPS1 request message without LSPS1 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
returnErr(LightningError{err:format!("Received LSPS2 request message without LSPS2 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)});
546
+
returnErr(LightningError{err:format!("Received LSPS2 request message without LSPS2 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
returnErr(LightningError{err:format!("Received LSPS5 request message without LSPS5 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)});
566
+
returnErr(LightningError{err:format!("Received LSPS5 request message without LSPS5 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
0 commit comments