1
0

lnchannelverifier: (minor) use named fields of namedtuple

This commit is contained in:
SomberNight
2018-10-03 20:15:22 +02:00
committed by ThomasV
parent c430b39b7d
commit b18a17ef79

View File

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