mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
dual-funding: update fee_step to be a feerate
Using a 'feestep' is more restrictive than you'd want, instead we enforce that the next feerate must be at least 1/64th more than the last, but put no upper limit on it Includes update to lnprototest changes Contributed-By: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> Changelog-EXPERIMENTAL: Protocol: Replaces init_rbf's `fee_step` for RBF of v2 opens with `funding_feerate_perkw`, breaking change
This commit is contained in:
@@ -1039,12 +1039,13 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("openchannel_update", payload)
|
||||
|
||||
def openchannel_bump(self, channel_id, amount, initialpsbt):
|
||||
def openchannel_bump(self, channel_id, amount, initialpsbt, funding_feerate=None):
|
||||
""" Initiate an RBF for an in-progress open """
|
||||
payload = {
|
||||
"channel_id": channel_id,
|
||||
"amount": amount,
|
||||
"initialpsbt": initialpsbt,
|
||||
"funding_feerate": funding_feerate,
|
||||
}
|
||||
return self.call("openchannel_bump", payload)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user