Skip to content

Commit 6ace13b

Browse files
committed
pylightning: make plugins use Millisatoshi-converting encoder.
Signed-off-by: Rusty Russell <[email protected]>
1 parent 5a7d038 commit 6ace13b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pylightning/lightning/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def _dispatch_notification(self, request):
371371
self.log(traceback.format_exc())
372372

373373
def _write_locked(self, obj):
374-
s = json.dumps(obj) + "\n\n"
374+
s = json.dumps(obj, cls=LightningRpc.LightningJSONEncoder) + "\n\n"
375375
with self.write_lock:
376376
self.stdout.write(s)
377377
self.stdout.flush()

0 commit comments

Comments
 (0)