Merge pull request #112 from feelancer21/inbound_fees_update

update protos to current lnd master
This commit is contained in:
accumulator 2024-05-28 13:11:12 +02:00 committed by GitHub
commit 676f92272a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 126 additions and 112 deletions

File diff suppressed because one or more lines are too long

View file

@ -163,9 +163,10 @@ class Lnd:
min_htlc_msat_specified=chp.min_htlc_msat is not None,
max_htlc_msat=(chp.max_htlc_msat if chp.max_htlc_msat is not None else my_policy.max_htlc_msat),
time_lock_delta=(chp.time_lock_delta if chp.time_lock_delta is not None else my_policy.time_lock_delta),
inbound_base_fee_msat=(chp.inbound_base_fee_msat if chp.inbound_base_fee_msat is not None else my_policy.inbound_fee_base_msat),
inbound_fee_rate_ppm=(chp.inbound_fee_ppm if chp.inbound_fee_ppm is not None else my_policy.inbound_fee_rate_milli_msat)
))
inbound_fee=ln.InboundFee(
base_fee_msat=(chp.inbound_base_fee_msat if chp.inbound_base_fee_msat is not None else my_policy.inbound_fee_base_msat),
fee_rate_ppm=(chp.inbound_fee_ppm if chp.inbound_fee_ppm is not None else my_policy.inbound_fee_rate_milli_msat)
)))
def get_txns(self, start_height = None, end_height = None):
return self.lnstub.GetTransactions(ln.GetTransactionsRequest(

View file

@ -4369,6 +4369,16 @@ message FeeReportResponse {
uint64 month_fee_sum = 4;
}
message InboundFee {
// The inbound base fee charged regardless of the number of milli-satoshis
// received in the channel. By default, only negative values are accepted.
int32 base_fee_msat = 1;
// The effective inbound fee rate in micro-satoshis (parts per million).
// By default, only negative values are accepted.
int32 fee_rate_ppm = 2;
}
message PolicyUpdateRequest {
oneof scope {
// If set, then this update applies to all currently active channels.
@ -4402,8 +4412,9 @@ message PolicyUpdateRequest {
// If true, min_htlc_msat is applied.
bool min_htlc_msat_specified = 8;
int32 inbound_base_fee_msat = 10;
int32 inbound_fee_rate_ppm = 11;
// Optional inbound fee. If unset, the previously set value will be
// retained [EXPERIMENTAL].
InboundFee inbound_fee = 10;
}
enum UpdateFailure {