tests: add dev-query-scids

And write the test for it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-06-04 13:53:25 +09:30
parent 4d8b29089b
commit c633cbe2ee
3 changed files with 154 additions and 0 deletions

View File

@@ -249,6 +249,16 @@ class LightningRpc(UnixDomainSocketRpc):
"""
return self.call("dev-crash")
def dev_query_scids(self, id, scids):
"""
Ask peer for a particular set of scids
"""
payload = {
"id": id,
"scids": scids
}
return self.call("dev-query-scids", payload)
def getinfo(self):
"""
Show information about this node