core-lightning/plugins/clnrest/utilities
Rusty Russell 8b84c8945b clnrest: don't convert *_msat fields to strings.
We have a global JSON encoder hack, which means that any field ending in msat gets special treatment (so we can safely talk to lightningd, even if a field expects satoshi amounts, we are explicit).  However, requests uses the JSON parser and DOES NOT want this conversion when sending it out as an HTTP response!

The simplest local fix we could find was Shahana's suggestion to iterate and covert away from Millisatoshi(): the reverse of what our JSON encoder does.

Fixes: https://github.com/ElementsProject/lightning/issues/6848
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-11-16 09:07:07 +01:00
..
__init__.py plugin: clnrest 2023-07-25 19:20:16 +09:30
generate_certs.py clnrest: code refactoring for: 2023-10-31 10:21:22 -07:00
rpc_plugin.py clnrest: code refactoring for: 2023-10-31 10:21:22 -07:00
rpc_routes.py clnrest: don't try to handle plugin.rpc.call results. 2023-11-16 09:07:07 +01:00
shared.py clnrest: don't convert *_msat fields to strings. 2023-11-16 09:07:07 +01:00