Feedback from GH Review.

1. Fix README.md dynamic plugin example (needs keywords, abspath!)
   (pointed out by @carnhofdaki).
2. Define magic number we use (suggested by @FreePietje)
This commit is contained in:
Rusty Russell
2021-08-02 16:43:42 +09:30
parent 5d062830ba
commit c05c8bf300
2 changed files with 4 additions and 3 deletions

View File

@@ -48,7 +48,8 @@ def send_msg(plugin, peer_id, msgtype, idnum, contents):
def send_result(plugin, peer_id, idnum, res):
# We can only send 64k in a message.
# We can only send 64k in a message, but there is 10 byte overhead
# in the message header; 65000 is safe.
parts = textwrap.wrap(json.dumps(res), 65000)
for p in parts[:-1]:
send_msg(plugin, peer_id, COMMANDO_REPLY_CONTINUES, idnum, p)