mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-13 12:32:55 +02:00
Add test to validate jsonrpc from lightning-cli requests in the case of numeric strings with leading zeroes. Changelog-None Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
12 lines
188 B
Python
Executable file
12 lines
188 B
Python
Executable file
#!/usr/bin/env python3
|
|
from pyln.client import Plugin
|
|
|
|
plugin = Plugin()
|
|
|
|
|
|
@plugin.method('validate-json-rpc')
|
|
def validate_json_rpc(plugin, *args, **kwargs):
|
|
return {}
|
|
|
|
|
|
plugin.run()
|