mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-24 07:07:46 +01:00
Now _msat fields are all integers (last conversion 23.08) we can simply leave them alone, rather than trying to convert them. And for turning Millisatoshi into JSON, we simply globally replace the default encoding function to try ".to_json()" on items, which allows anything to be marshalled. The global replacement was interfering with other uses of JSON, such as the clnrest plugin. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Changed: pyln-client: no longer autoconverts _msat field to Millisatoshi class (leaves as ints). |
||
---|---|---|
.. | ||
testing |