mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +01:00
pylightning: make plugins use Millisatoshi-converting encoder.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user