json-rpc: Rename getroutestats and move stats to getinfo

Signed-off-by: Christian Decker <@cdecker>
This commit is contained in:
Christian Decker
2018-10-18 14:06:29 +02:00
committed by Rusty Russell
parent 6d333f16cc
commit 6b7546b94d
4 changed files with 42 additions and 51 deletions

View File

@@ -428,14 +428,10 @@ class LightningRpc(UnixDomainSocketRpc):
"""
return self.call("listfunds")
def getroutestats(self, details=True):
"""Get statistics about routed payments.
If @details is True, this'll include the individual forwarded
payments.
def listforwards(self):
"""List all forwarded payments and their information
"""
return self.call("getroutestats", payload={'details': details})
return self.call("listforwards")
def dev_rescan_outputs(self):
"""