Skip to content

Commit

Permalink
channel status in output
Browse files Browse the repository at this point in the history
  • Loading branch information
accumulator committed Sep 1, 2021
1 parent 531cfe6 commit e395b93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charge_lnd/charge_lnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ def main():
if is_changed or chan_status_changed or arguments.verbose:
print(" policy: %s" % fmt.col_hi(policy.name) )
print(" strategy: %s" % fmt.col_hi(policy.get('strategy')) )
if chan_status_changed or arguments.verbose:
s = 'disabled' if my_policy.disabled else 'enabled'
if chan_status_changed:
s = s + ' ➜ '
s = s + 'disabled' if disable else 'enabled'
print(" channel status: %s" % fmt.col_hi(s))
if new_base_fee_msat is not None or arguments.verbose:
s = ''
if base_fee_changed:
Expand Down

0 comments on commit e395b93

Please sign in to comment.