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> |
||
|---|---|---|
| .. | ||
| models | ||
| routers | ||
| __init__.py | ||
| test_app_manage_lock.py | ||
| test_apps_uninstall_keep_data.py | ||
| test_bitcoin_rpc_success.py | ||
| test_bitcoin_rpc_warmup.py | ||
| test_change_password.py | ||
| test_channel_cleanup.py | ||
| test_cln_list_all_tx.py | ||
| test_cln_shell_safety.py | ||
| test_decode_pay_request_errors.py | ||
| test_electrs_advanced_status.py | ||
| test_error_handlers.py | ||
| test_error_response.py | ||
| test_exec_bash_timeout.py | ||
| test_hardware_info_vm.py | ||
| test_hw_gatherer_resilience.py | ||
| test_jwt.py | ||
| test_lnd_transient_errors.py | ||
| test_native_python_errors.py | ||
| test_send_coins_input.py | ||
| test_startup_status.py | ||
| test_system_health.py | ||
| test_warmup_events.py | ||
| test_ws_endpoint.py | ||
| test_ws_manager.py | ||
| utils.py | ||