|
@ -366,7 +366,10 @@ class LightningRpc(UnixDomainSocketRpc): |
|
|
""" |
|
|
""" |
|
|
Crash lightningd by calling fatal() |
|
|
Crash lightningd by calling fatal() |
|
|
""" |
|
|
""" |
|
|
return self.call("dev-crash") |
|
|
payload = { |
|
|
|
|
|
"subcommand": "crash" |
|
|
|
|
|
} |
|
|
|
|
|
return self.call("dev", payload) |
|
|
|
|
|
|
|
|
def dev_fail(self, peer_id): |
|
|
def dev_fail(self, peer_id): |
|
|
""" |
|
|
""" |
|
@ -427,9 +430,10 @@ class LightningRpc(UnixDomainSocketRpc): |
|
|
Show SHA256 of {secret} |
|
|
Show SHA256 of {secret} |
|
|
""" |
|
|
""" |
|
|
payload = { |
|
|
payload = { |
|
|
|
|
|
"subcommand": "rhash", |
|
|
"secret": secret |
|
|
"secret": secret |
|
|
} |
|
|
} |
|
|
return self.call("dev-rhash", payload) |
|
|
return self.call("dev", payload) |
|
|
|
|
|
|
|
|
def dev_sign_last_tx(self, peer_id): |
|
|
def dev_sign_last_tx(self, peer_id): |
|
|
""" |
|
|
""" |
|
@ -440,6 +444,16 @@ class LightningRpc(UnixDomainSocketRpc): |
|
|
} |
|
|
} |
|
|
return self.call("dev-sign-last-tx", payload) |
|
|
return self.call("dev-sign-last-tx", payload) |
|
|
|
|
|
|
|
|
|
|
|
def dev_slowcmd(self, msec=None): |
|
|
|
|
|
""" |
|
|
|
|
|
Torture test for slow commands, optional {msec} |
|
|
|
|
|
""" |
|
|
|
|
|
payload = { |
|
|
|
|
|
"subcommand": "slowcmd", |
|
|
|
|
|
"msec": msec |
|
|
|
|
|
} |
|
|
|
|
|
return self.call("dev", payload) |
|
|
|
|
|
|
|
|
def disconnect(self, peer_id, force=False): |
|
|
def disconnect(self, peer_id, force=False): |
|
|
""" |
|
|
""" |
|
|
Disconnect from peer with {peer_id}, optional {force} even if has active channel |
|
|
Disconnect from peer with {peer_id}, optional {force} even if has active channel |
|
|