mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
autoclean: new interface
In preparation for more things being autocleaned. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
41a52929f7
commit
bd76a196f5
@@ -531,6 +531,15 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("autocleaninvoice", payload)
|
||||
|
||||
def autoclean_status(self, subsystem=None):
|
||||
"""
|
||||
Print status of autocleaning (optionally, just for {subsystem}).
|
||||
"""
|
||||
payload = {
|
||||
"subsystem": subsystem,
|
||||
}
|
||||
return self.call("autoclean-status", payload)
|
||||
|
||||
def check(self, command_to_check, **kwargs):
|
||||
"""
|
||||
Checks if a command is valid without running it.
|
||||
|
||||
Reference in New Issue
Block a user