mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
pylightning: make plugins use Millisatoshi-converting encoder.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
5a7d038e6e
commit
6ace13ba22
@ -371,7 +371,7 @@ class Plugin(object):
|
||||
self.log(traceback.format_exc())
|
||||
|
||||
def _write_locked(self, obj):
|
||||
s = json.dumps(obj) + "\n\n"
|
||||
s = json.dumps(obj, cls=LightningRpc.LightningJSONEncoder) + "\n\n"
|
||||
with self.write_lock:
|
||||
self.stdout.write(s)
|
||||
self.stdout.flush()
|
||||
|
Loading…
Reference in New Issue
Block a user