mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-18 12:27:50 +02:00
CLN deprecated decodepay in favor of decode in v24.11, now rejects it by default (observed on v25.12.1: JSON-RPC -32601 "Command decodepay is deprecated") and removes it entirely in v26.04. Both CLN implementations still called decodepay in decode_pay_request(), so on current CLN every call fails, list_all_tx() propagates the failure, and the /lightning/list-all-tx endpoint returns HTTP 500 — permanently breaking the Transactions view in the web UI. Switch both cln_jrpc.py and cln_grpc.py to decode (the CLI fallback keyword changes from bolt11= to string=). For bolt11 invoices decode returns a superset of decodepay fields, so PaymentRequest.from_cln_json is unchanged. decode reports recognized-but-invalid strings as a normal result with valid=false + warning_* fields instead of an RPC error, so both backends now map that case to a clear 400 rather than crashing in from_cln_json the way #307 did. Reproduced on RaspiBlitz v1.12.1 with Core Lightning v25.12.1; verified on the same node that decode returns every field the parser consumes and that the Transactions view loads after the patch. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| apps | ||
| auth | ||
| bitcoind | ||
| external | ||
| lightning | ||
| setup | ||
| system | ||
| __init__.py | ||
| celery_app.py | ||
| logging.py | ||
| main.py | ||
| server.py | ||