mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
pylightning: add missing arguments to getroute
This commit is contained in:
committed by
Christian Decker
parent
14c6310a4f
commit
1220a4eb1d
@@ -128,16 +128,22 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("listnodes", payload)
|
||||
|
||||
def getroute(self, peer_id, msatoshi, riskfactor, cltv=9):
|
||||
def getroute(self, peer_id, msatoshi, riskfactor, cltv=9, fromid=None, fuzzpercent=None, seed=None):
|
||||
"""
|
||||
Show route to {id} for {msatoshi}, using {riskfactor} and optional
|
||||
{cltv} (default 9)
|
||||
{cltv} (default 9). If specified search from {fromid} otherwise use
|
||||
this node as source. Randomize the route with up to {fuzzpercent}
|
||||
(0.0 -> 100.0, default 5.0) using {seed} as an arbitrary-size string
|
||||
seed.
|
||||
"""
|
||||
payload = {
|
||||
"id": peer_id,
|
||||
"msatoshi": msatoshi,
|
||||
"riskfactor": riskfactor,
|
||||
"cltv": cltv
|
||||
"cltv": cltv,
|
||||
"fromid": fromid,
|
||||
"fuzzpercent": fuzzpercent,
|
||||
"seed": seed
|
||||
}
|
||||
return self.call("getroute", payload)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user