feat: complete bitvora webhook
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-03-18 21:54:41 +00:00
parent 5c57abb9c1
commit 6c7ae6ac89
13 changed files with 134 additions and 21 deletions

View File

@ -40,6 +40,7 @@ impl LightningNode for LndNode {
Ok(AddInvoiceResult {
pr: inner.payment_request,
payment_hash: hex::encode(inner.r_hash),
external_id: None,
})
}
@ -78,7 +79,8 @@ impl LightningNode for LndNode {
Ok(m) => {
if m.state == InvoiceState::Settled as i32 {
InvoiceUpdate::Settled {
payment_hash: hex::encode(m.r_hash),
payment_hash: Some(hex::encode(m.r_hash)),
external_id: None,
}
} else {
InvoiceUpdate::Unknown