Browse Source

lnchannelverifier: (minor) use named fields of namedtuple

regtest_lnd
SomberNight 6 years ago
parent
commit
d960b4cc2d
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/lnchannelverifier.py

4
electrum/lnchannelverifier.py

@ -127,10 +127,10 @@ class LNChannelVerifier(ThreadJob):
actual_output = tx.outputs()[output_idx]
except IndexError:
return
if expected_address != actual_output[1]:
if expected_address != actual_output.address:
return
# put channel into channel DB
channel_info.set_capacity(actual_output[2])
channel_info.set_capacity(actual_output.value)
self.channel_db.add_verified_channel_info(short_channel_id, channel_info)
# remove channel from unverified
with self.lock:

Loading…
Cancel
Save