mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
libplugin: quick fix for bad JSON produced by plugins on bad paramters.
Internally libplugin turns ' into ", which causes these messages to produce bad JSON. The real fix is to remove the '->" convenience substitution and port the JSON creation APIs into common/ from lightningd/ Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
28699f0eca
commit
ba8a9d1fde
@@ -116,3 +116,6 @@ def test_pay_plugin(node_factory):
|
||||
|
||||
res = l1.rpc.pay(bolt11=inv['bolt11'])
|
||||
assert res['status'] == 'complete'
|
||||
|
||||
with pytest.raises(RpcError, match=r'missing required parameter'):
|
||||
l1.rpc.call('pay')
|
||||
|
||||
Reference in New Issue
Block a user