core-lightning/contrib/pyln-testing/pyln/testing
Rusty Russell 09c1cfde39 pyln-client: don't automatically turn JSON into Millisatoshi class.
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).
2023-12-16 10:22:01 +01:00
..
__init__.py CHANGELOG.md: Update for 23.11rc1 2023-11-03 14:49:12 +01:00
btcproxy.py Skip following import and skip flask type to mypy code analysis. 2021-08-30 12:12:32 +09:30
db.py test-db-provider: if postgres in tests, startup a bookkeeper db 2022-07-28 12:08:18 +09:30
fixtures.py pyln-client: don't automatically turn JSON into Millisatoshi class. 2023-12-16 10:22:01 +01:00
gossip.py common: assume htlc_maximum_msat, don't check bit any more. 2022-09-24 15:22:27 +09:30
grpc.py pyln: Create a dedicated pyln-grpc-proto package 2023-07-10 13:47:38 +09:30
grpc2py.py listpeerchannels: show gossip updates. 2023-12-14 09:16:56 +10:30
utils.py pyln-client: don't automatically turn JSON into Millisatoshi class. 2023-12-16 10:22:01 +01:00