Skip to content

Commit

Permalink
jobs: update_channels: handle inbound fees on getchaninfo failures (#398
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cryptosharks131 authored Oct 27, 2024
2 parents 1491342 + b9d9a14 commit c70d263
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ def update_channels(stub):
db_channel.remote_disabled = False if db_channel.remote_disabled is None else db_channel.remote_disabled
db_channel.remote_min_htlc_msat = -1 if db_channel.remote_min_htlc_msat is None else db_channel.remote_min_htlc_msat
db_channel.remote_max_htlc_msat = -1 if db_channel.remote_max_htlc_msat is None else db_channel.remote_max_htlc_msat
db_channel.local_inbound_base_fee = -1 if db_channel.local_inbound_base_fee is None else db_channel.local_inbound_base_fee
db_channel.local_inbound_fee_rate = -1 if db_channel.local_inbound_fee_rate is None else db_channel.local_inbound_fee_rate
db_channel.remote_inbound_base_fee = -1 if db_channel.remote_inbound_base_fee is None else db_channel.remote_inbound_base_fee
db_channel.remote_inbound_fee_rate = -1 if db_channel.remote_inbound_fee_rate is None else db_channel.remote_inbound_fee_rate
# Check for pending settings to be applied
if pending_channel:
if pending_channel.local_base_fee or pending_channel.local_fee_rate or pending_channel.local_cltv:
Expand Down

0 comments on commit c70d263

Please sign in to comment.