tlnchannelverifier: (minor) use named fields of namedtuple - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b18a17ef79ef0272eae0c66d3e4af039037e8d91 DIR parent c430b39b7d32cbf37a7735c2d94d1c04cebc74ed HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 3 Oct 2018 20:15:22 +0200 lnchannelverifier: (minor) use named fields of namedtuple Diffstat: M electrum/lnchannelverifier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/lnchannelverifier.py b/electrum/lnchannelverifier.py t@@ -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: