Check durable file payments against their actual payment method

This commit is contained in:
archipelago
2026-10-06 07:03:11 -04:00
parent cb33fe26e4
commit b984b2a698
3 changed files with 111 additions and 6 deletions
+2 -1
View File
@@ -470,11 +470,12 @@ impl ApiHandler {
match self.rpc_handler.new_onchain_address().await {
Ok(address) if !address.is_empty() => {
crate::content_invoice::record_pending(
crate::content_invoice::record_pending_method(
&self.config.data_dir,
&address,
content_id,
price_sats,
crate::content_invoice::PaymentMethod::Onchain,
)
.await?;
let body = serde_json::json!({