mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
pylightning: Rename peer_id to node_id in getroute
Technically this is a node, not a direct peer, so this is correct. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
571fb44d20
commit
d9c3f5ec4b
@@ -293,7 +293,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("listnodes", payload)
|
||||
|
||||
def getroute(self, peer_id, msatoshi, riskfactor, cltv=9, fromid=None, fuzzpercent=None, seed=None, exclude=[]):
|
||||
def getroute(self, node_id, msatoshi, riskfactor, cltv=9, fromid=None, fuzzpercent=None, seed=None, exclude=[]):
|
||||
"""
|
||||
Show route to {id} for {msatoshi}, using {riskfactor} and optional
|
||||
{cltv} (default 9). If specified search from {fromid} otherwise use
|
||||
@@ -302,7 +302,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
seed. {exclude} is an optional array of scid/direction to exclude.
|
||||
"""
|
||||
payload = {
|
||||
"id": peer_id,
|
||||
"id": node_id,
|
||||
"msatoshi": msatoshi,
|
||||
"riskfactor": riskfactor,
|
||||
"cltv": cltv,
|
||||
|
||||
Reference in New Issue
Block a user