Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
accumulator committed Sep 1, 2021
1 parent 889b2df commit 531cfe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charge_lnd/lnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def update_chan_status(self, chanid, disable):
output_index=int(chan_info.chan_point.split(':')[1])
)
my_policy = chan_info.node1_policy if chan_info.node1_pub == self.get_own_pubkey() else chan_info.node2_policy
# ugly code, retry with 'AUTO' if channel turns out not to be active.
# ugly code, retries with 'AUTO' if channel turns out not to be active.
# Alternative is to iterate or index the channel list, just to get active status
try:
action = 'DISABLE' if disable else 'ENABLE'
Expand Down

0 comments on commit 531cfe6

Please sign in to comment.