feat: extend host load factors
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-24 15:18:18 +00:00
parent af36d4e586
commit ec7fa92010
13 changed files with 138 additions and 46 deletions

View File

@ -68,11 +68,10 @@ impl LightningNode for BitvoraNode {
}
let r_body = r.body.as_slice();
info!("Received webhook {}", String::from_utf8_lossy(r_body));
let body: BitvoraWebhook =
match serde_json::from_slice(r_body) {
Ok(b) => b,
Err(e) => return InvoiceUpdate::Error(e.to_string()),
};
let body: BitvoraWebhook = match serde_json::from_slice(r_body) {
Ok(b) => b,
Err(e) => return InvoiceUpdate::Error(e.to_string()),
};
if let Err(e) = verify_webhook(&secret, &r) {
return InvoiceUpdate::Error(e.to_string());