core-lightning/plugins/clnrest
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
..
.github/screenshots plugin: clnrest 2023-07-25 19:20:16 +09:30
utilities clnrest: don't convert *_msat fields to strings. 2023-11-16 09:07:07 +01:00
__init__.py plugin/clnrest: Updating package 2023-07-30 16:50:04 +09:30
clnrest.py clnrest: code refactoring for: 2023-10-31 10:21:22 -07:00
poetry.lock plugin/clnrest: Adjusting flask-cors install after rebase 2023-09-29 16:00:05 +09:30
pyproject.toml CHANGELOG.md: Update for 23.11rc1 2023-11-03 14:49:12 +01:00
requirements.txt plugin/clnrest: Adjusting flask-cors install after rebase 2023-09-29 16:00:05 +09:30