mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 06:44:24 +01:00
lightningd: remove setchannelfee.
Replaced by `setchannel`. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changlog-Removed: JSON-RPC: `setchannelfee` (deprecated in v0.11.0)
This commit is contained in:
@@ -1259,20 +1259,6 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("sendonion", payload)
|
||||
|
||||
def setchannelfee(self, id, base=None, ppm=None, enforcedelay=None):
|
||||
"""
|
||||
Set routing fees for a channel/peer {id} (or 'all'). {base} is a value in millisatoshi
|
||||
that is added as base fee to any routed payment. {ppm} is a value added proportionally
|
||||
per-millionths to any routed payment volume in satoshi. {enforcedelay} is the number of seconds before enforcing this change.
|
||||
"""
|
||||
payload = {
|
||||
"id": id,
|
||||
"base": base,
|
||||
"ppm": ppm,
|
||||
"enforcedelay": enforcedelay,
|
||||
}
|
||||
return self.call("setchannelfee", payload)
|
||||
|
||||
def setchannel(self, id, feebase=None, feeppm=None, htlcmin=None, htlcmax=None, enforcedelay=None):
|
||||
"""Set configuration a channel/peer {id} (or 'all').
|
||||
|
||||
|
||||
Reference in New Issue
Block a user