Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

fix(channels): closing channels link to closing_txid #720

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

JimmyMow
Copy link
Member

We currently hard code our channel explorer links to the channel point (funding transaction). For closing channels this isn't really relevant and bad UX. This PR updates the logic for the explorer link: if the channel has a closing tx (it's in the process of being closed) then let's link to that, otherwise the funding tx is fine 👍

@JimmyMow JimmyMow requested a review from mrfelton August 27, 2018 16:46
@coveralls
Copy link

coveralls commented Aug 27, 2018

Pull Request Test Coverage Report for Build 3889

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.006%) to 15.467%

Totals Coverage Status
Change from base Build 3886: -0.006%
Covered Lines: 608
Relevant Lines: 3516

💛 - Coveralls

@mrfelton
Copy link
Member

@JimmyMow I closed out a channel, but the closing channel didn't seem to have a closing_txid property and the link to the transaction remained the same whilst the channel was closing as it was when the channel was open which was a link to https://testnet.smartbit.com.au/tx/3f5d3daa8546ab97c5413ccb7cef711c207470327714ecc98a3cd04811ce66d1 (the funding transaction)

screenshot 2018-08-27 22 50 14

Below is the full state tree from whist the channel was still marked as closing in the UI. There is no closing_txid property in the entire tree so I'm a little confused as to where that should be coming from and why it wasn't set anywhere.

{
  router: {
    location: {
      pathname: '/',
      search: '',
      hash: ''
    }
  },
  onboarding: {
    onboarding: false,
    onboarded: true,
    step: 3,
    connectionType: 'local',
    connectionString: '',
    connectionHost: '',
    connectionCert: '',
    connectionMacaroon: '',
    alias: 'tomthebomb',
    autopilot: true,
    password: 'password',
    startingLnd: false,
    fetchingSeed: false,
    hasSeed: true,
    seed: [],
    createWalletPassword: '',
    createWalletPasswordConfirmation: '',
    creatingNewWallet: false,
    recoveringOldWallet: false,
    existingWalletDir: '/Users/tom/Library/Application Support/Electron/lnd/bitcoin/testnet/wallet-1',
    unlockingWallet: false,
    unlockWalletError: {
      isError: false,
      message: ''
    },
    seedIndexesArr: [],
    reEnterSeedInput: {},
    recoverSeedInput: [],
    signupForm: {
      create: true,
      'import': false
    },
    previousStep: 2
  },
  lnd: {
    syncStatus: 'complete',
    lightningGrpcActive: true,
    blockHeight: 1410255,
    lndBlockHeight: 1410255,
    lndCfilterHeight: 0
  },
  ticker: {
    tickerLoading: false,
    currency: 'btc',
    fromCurrency: 'btc',
    crypto: 'btc',
    btcTicker: {
      USD: {
        '15m': 6733.53,
        last: 6733.53,
        buy: 6733.53,
        sell: 6733.53,
        symbol: '$'
      },
      AUD: {
        '15m': 9164.07,
        last: 9164.07,
        buy: 9164.07,
        sell: 9164.07,
        symbol: '$'
      },
      BRL: {
        '15m': 27499.63,
        last: 27499.63,
        buy: 27499.63,
        sell: 27499.63,
        symbol: 'R$'
      },
      CAD: {
        '15m': 8729.11,
        last: 8729.11,
        buy: 8729.11,
        sell: 8729.11,
        symbol: '$'
      },
      CHF: {
        '15m': 6596.01,
        last: 6596.01,
        buy: 6596.01,
        sell: 6596.01,
        symbol: 'CHF'
      },
      CLP: {
        '15m': 4438743.91,
        last: 4438743.91,
        buy: 4438743.91,
        sell: 4438743.91,
        symbol: '$'
      },
      CNY: {
        '15m': 45890.36,
        last: 45890.36,
        buy: 45890.36,
        sell: 45890.36,
        symbol: '¥'
      },
      DKK: {
        '15m': 43000.02,
        last: 43000.02,
        buy: 43000.02,
        sell: 43000.02,
        symbol: 'kr'
      },
      EUR: {
        '15m': 5769.34,
        last: 5769.34,
        buy: 5769.34,
        sell: 5769.34,
        symbol: '€'
      },
      GBP: {
        '15m': 5222.82,
        last: 5222.82,
        buy: 5222.82,
        sell: 5222.82,
        symbol: '£'
      },
      HKD: {
        '15m': 52859.23,
        last: 52859.23,
        buy: 52859.23,
        sell: 52859.23,
        symbol: '$'
      },
      INR: {
        '15m': 471077.86,
        last: 471077.86,
        buy: 471077.86,
        sell: 471077.86,
        symbol: '₹'
      },
      ISK: {
        '15m': 718333.23,
        last: 718333.23,
        buy: 718333.23,
        sell: 718333.23,
        symbol: 'kr'
      },
      JPY: {
        '15m': 746419.82,
        last: 746419.82,
        buy: 746419.82,
        sell: 746419.82,
        symbol: '¥'
      },
      KRW: {
        '15m': 7467149.66,
        last: 7467149.66,
        buy: 7467149.66,
        sell: 7467149.66,
        symbol: '₩'
      },
      NZD: {
        '15m': 10055.75,
        last: 10055.75,
        buy: 10055.75,
        sell: 10055.75,
        symbol: '$'
      },
      PLN: {
        '15m': 24623.99,
        last: 24623.99,
        buy: 24623.99,
        sell: 24623.99,
        symbol: 'zł'
      },
      RUB: {
        '15m': 454421.12,
        last: 454421.12,
        buy: 454421.12,
        sell: 454421.12,
        symbol: 'RUB'
      },
      SEK: {
        '15m': 61285.12,
        last: 61285.12,
        buy: 61285.12,
        sell: 61285.12,
        symbol: 'kr'
      },
      SGD: {
        '15m': 9175.12,
        last: 9175.12,
        buy: 9175.12,
        sell: 9175.12,
        symbol: '$'
      },
      THB: {
        '15m': 218994.64,
        last: 218994.64,
        buy: 218994.64,
        sell: 218994.64,
        symbol: '฿'
      },
      TWD: {
        '15m': 206620.44,
        last: 206620.44,
        buy: 206620.44,
        sell: 206620.44,
        symbol: 'NT$'
      }
    },
    fiatTicker: 'USD',
    fiatTickers: [
      'USD',
      'EUR',
      'JPY',
      'GBP',
      'CAD',
      'KRW',
      'AUD',
      'BRL',
      'CHF',
      'CLP',
      'CNY',
      'DKK',
      'HKD',
      'INR',
      'ISK',
      'NZD',
      'PLN',
      'RUB',
      'SEK',
      'SGD',
      'THB',
      'TWB'
    ],
    currencyFilters: [
      {
        key: 'btc',
        name: 'BTC'
      },
      {
        key: 'bits',
        name: 'bits'
      },
      {
        key: 'sats',
        name: 'satoshis'
      }
    ]
  },
  info: {
    infoLoading: false,
    hasSynced: true,
    network: {
      name: 'Testnet',
      explorerUrl: 'https://testnet.smartbit.com.au',
      bitcoinJsNetwork: {
        messagePrefix: '\u0018Bitcoin Signed Message:\n',
        bech32: 'tb',
        bip32: {
          'public': 70617039,
          'private': 70615956
        },
        pubKeyHash: 111,
        scriptHash: 196,
        wif: 239
      },
      unitPrefix: 't'
    },
    data: {
      alias: 'tomthebomb',
      best_header_timestamp: '1535402340',
      block_hash: '0000000000000059c833d92496e5e70d4b42ceb63b3951ea111e8c7ddb024234',
      block_height: 1410255,
      chains: [
        'bitcoin'
      ],
      identity_pubkey: '02fcab6e34a2ad21be2a752ab96d13f5f1a14990ed88d2f5fedf8f8f0780c281a9',
      num_active_channels: 0,
      num_peers: 0,
      num_pending_channels: 3,
      synced_to_chain: true,
      testnet: true,
      uris: [],
      version: '0.4.2-beta commit=26f68da5'
    },
    showWalletCurrencyFilters: false
  },
  balance: {
    balanceLoading: false,
    walletBalance: '23681449',
    channelBalance: '22931956'
  },
  payment: {
    sendingPayment: false,
    paymentLoading: false,
    payments: [
      {
        creation_date: '1535401149',
        fee: '0',
        path: [
          '03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8'
        ],
        payment_hash: '4e8edb66fb4302093fe123d9ae9486b707a6c7d9c184801c9671d383e3dc5741',
        payment_preimage: 'adb7d4104c0667b46e8d5e38da017a77cb6880672e6c884c590e515d2a10f725',
        value: '1000'
      },
      {
        creation_date: '1535401182',
        fee: '0',
        path: [
          '03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8'
        ],
        payment_hash: '497f3a54ca3fa1df622d3ff24688fe1cf6f8d0432f349036e539db07817a16a5',
        payment_preimage: 'ad08d446fbe18898fd9b307789f4f67642185e66773c4f766abc6b2e9a2d07fd',
        value: '1000'
      },
      {
        creation_date: '1535401340',
        fee: '0',
        path: [
          '03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8'
        ],
        payment_hash: 'de60ba55b7492441741e93d53933359bfd9e7a3458d44b28dcaab6b4ff4e6fd7',
        payment_preimage: 'a58f877efbddd74a83297581088e5d91dd2994b0dd440640a4b587975fde6fe4',
        value: '10'
      },
      {
        creation_date: '1535401343',
        fee: '0',
        path: [
          '03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8'
        ],
        payment_hash: '3caa1816308a9c4bb90590fe01e35a67e77c668b1628cb0cf88cd53b91430b62',
        payment_preimage: '6a2602cc8841dd3f98f19597105659fa5f520dd517a89ab6dc5f24f193c24389',
        value: '20'
      },
      {
        creation_date: '1535401370',
        fee: '0',
        path: [
          '03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8'
        ],
        payment_hash: '29892588b12d52353c9571776e4c5ed30171cbfbe2af6c68c11faedff2a988b5',
        payment_preimage: '131b662bde9b24bb5de990765cd46e976c891b3b670072cdd278391575a85bca',
        value: '100'
      },
      {
        creation_date: '1535401373',
        fee: '0',
        path: [
          '03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8'
        ],
        payment_hash: '802ca1c19caa9b9693d29309295df4a68e905d48d971f70ee40c69911ced9c6d',
        payment_preimage: '063ab027b2442ba58fa233476db4039567c011608fa34c6081d370fab3a2598b',
        value: '200'
      }
    ],
    payment: null,
    showSuccessPayScreen: false
  },
  peers: {
    peersLoading: false,
    peers: [],
    peer: null,
    peerForm: {
      isOpen: false,
      pubkey: '',
      host: ''
    },
    searchQuery: '',
    connecting: false,
    disconnecting: false
  },
  channels: {
    channelsLoading: false,
    channels: [
      {
        active: true,
        capacity: '12952386',
        chan_id: '1550585173664333824',
        channel_point: '0cdd95f2d1274734653f850ff1fbb455f6aa1d854030055940fb0433d503f8ec:0',
        commit_fee: '9050',
        commit_weight: '600',
        csv_delay: 1556,
        fee_per_kw: '12500',
        local_balance: '12943336',
        num_updates: '0',
        pending_htlcs: [],
        'private': true,
        remote_balance: '0',
        remote_pubkey: '023cc7219a6acf2f51b2f10656615c385ef334ad409f9c9fb4d681b7f6cdd23566',
        total_satoshis_received: '0',
        total_satoshis_sent: '0',
        unsettled_balance: '0'
      },
      {
        active: true,
        capacity: '10000000',
        chan_id: '1550563183530409985',
        channel_point: '1075719dc1574a2455575105beefd5115679440da45d2cf4e00e0747bcf736a3:1',
        commit_fee: '9050',
        commit_weight: '724',
        csv_delay: 1201,
        fee_per_kw: '12500',
        local_balance: '9988620',
        num_updates: '12',
        pending_htlcs: [],
        'private': true,
        remote_balance: '2330',
        remote_pubkey: '03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8',
        total_satoshis_received: '0',
        total_satoshis_sent: '2330',
        unsettled_balance: '0'
      }
    ],
    pendingChannels: {
      pending_closing_channels: [],
      pending_force_closing_channels: [],
      pending_open_channels: [
        {
          channel: {
            capacity: '16777215',
            channel_point: '6c6a346c8fd11a4c72bfeb4262c8c6a9ce632826226f557688efe9044535fe7d:1',
            local_balance: '16768165',
            remote_balance: '0',
            remote_node_pub: '02b0791f19959bdc5ce81ae1bfe337801208acfc9b77c7edaba5ba971557615c1c'
          },
          commit_fee: '9050',
          commit_weight: '600',
          confirmation_height: 0,
          fee_per_kw: '12500'
        },
        {
          channel: {
            capacity: '16777215',
            channel_point: '8c8dffcaafd4fda1fa48cfcf7f99b61f32af9c6e81e9d56256e5315c08dbd637:1',
            local_balance: '16768165',
            remote_balance: '0',
            remote_node_pub: '031a3478d481b92e3c28810228252898c5f0d82fc4d07f5210c4f34d4aba56b769'
          },
          commit_fee: '9050',
          commit_weight: '600',
          confirmation_height: 0,
          fee_per_kw: '12500'
        },
        {
          channel: {
            capacity: '1000000',
            channel_point: '9bba23a98367269da2fb6227da39c6ebc2b16f1f9bd1e535315a2c01f6b5013b:0',
            local_balance: '990950',
            remote_balance: '0',
            remote_node_pub: '035b8626ba9fc3f3bd1050767fa4010f3d73a1a6607d14cbf620917692741d7289'
          },
          commit_fee: '9050',
          commit_weight: '600',
          confirmation_height: 0,
          fee_per_kw: '12500'
        }
      ],
      total_limbo_balance: '4990950',
      waiting_close_channels: [
        {
          channel: {
            capacity: '5000000',
            channel_point: '3f5d3daa8546ab97c5413ccb7cef711c207470327714ecc98a3cd04811ce66d1:0',
            local_balance: '4990950',
            remote_balance: '0',
            remote_node_pub: '0270685ca81a8e4d4d01beec5781f4cc924684072ae52c507f8ebe9daf0caaab7b'
          },
          limbo_balance: '4990950'
        }
      ]
    },
    channel: null,
    channelForm: {
      isOpen: false,
      node_key: '',
      local_amt: '',
      push_amt: ''
    },
    openingChannel: false,
    closingChannel: true,
    searchQuery: '',
    viewType: 0,
    filterPulldown: false,
    filter: {
      key: 'ALL_CHANNELS',
      name: 'All'
    },
    filters: [
      {
        key: 'ALL_CHANNELS',
        name: 'All'
      },
      {
        key: 'ACTIVE_CHANNELS',
        name: 'Online'
      },
      {
        key: 'NON_ACTIVE_CHANNELS',
        name: 'Offline'
      },
      {
        key: 'OPEN_PENDING_CHANNELS',
        name: 'Pending'
      },
      {
        key: 'CLOSING_PENDING_CHANNELS',
        name: 'Closing'
      }
    ],
    loadingChannelPubkeys: [],
    closingChannelIds: [
      '1550520302562312192'
    ],
    contactModal: {
      isOpen: false,
      channel: null
    },
    selectedChannel: null,
    suggestedNodes: {
      mainnet: [],
      testnet: [
        {
          pubkey: '02212d3ec887188b284dbb7b2e6eb40629a6e14fb049673f22d2a0aa05f902090e',
          host: 'testnet-lnd.yalls.org',
          nickname: 'Yalls',
          description: 'Top up prepaid mobile phones with bitcoin and altcoins in USA and around the world'
        },
        {
          pubkey: '024a2e265cd66066b78a788ae615acdc84b5b0dec9efac36d7ac87513015eaf6ed',
          host: 'lnd.bitrefill.com',
          nickname: 'Bitrefill',
          description: 'Blogging site powered by micropayments'
        },
        {
          pubkey: '0270685ca81a8e4d4d01beec5781f4cc924684072ae52c507f8ebe9daf0caaab7b',
          host: '159.203.125.125',
          nickname: 'Lightning Faucet',
          description: 'Lightning Network Faucet'
        }
      ]
    },
    suggestedNodesLoading: false
  },
  contactsform: {
    isOpen: false,
    formType: null,
    searchQuery: '',
    manualSearchQuery: '',
    contactCapacity: 0,
    node: {},
    showErrors: {
      manualInput: false
    },
    manualFormOpen: false,
    submitChannelFormOpen: false,
    showCurrencyFilters: false
  },
  form: {
    formType: null
  },
  payform: {
    amount: '',
    payInput: '',
    invoice: {
      payreq: '',
      r_hash: '',
      amount: '0',
      description: '',
      destination: ''
    },
    showCurrencyFilters: false,
    showErrors: {
      amount: false,
      payInput: false
    }
  },
  requestform: {
    amount: '',
    memo: '',
    showCurrencyFilters: false
  },
  invoice: {
    invoiceLoading: false,
    invoices: [
      {
        add_index: '1',
        amt_paid: '0',
        cltv_expiry: '144',
        creation_date: '1535384918',
        description_hash: {
          type: 'Buffer',
          data: []
        },
        expiry: '3600',
        fallback_addr: '',
        memo: 'just a test',
        payment_request: 'lntb1m1pdcg82kpp5w9cumedxly0949828n5hstjxyj44ngclzytjzwjfqdlqtwt2nhzsdqjdf6hxapqvys8getnwscqzysmzewu6ky455kwmff0fw9uhpwsmdt2lnxx87qn6j5de9ftpv6a983rtahl885uv8yvgfjf34ce7cwuy0q9yd8lk7fp5t6y0spwnt542cqyxku2y',
        'private': false,
        r_hash: {
          type: 'Buffer',
          data: [
            113,
            113,
            205,
            229,
            166,
            249,
            30,
            90,
            148,
            234,
            60,
            233,
            120,
            46,
            70,
            36,
            171,
            89,
            163,
            31,
            17,
            23,
            33,
            58,
            73,
            3,
            126,
            5,
            185,
            106,
            157,
            197
          ]
        },
        r_preimage: {
          type: 'Buffer',
          data: [
            130,
            113,
            187,
            112,
            33,
            11,
            249,
            168,
            43,
            16,
            107,
            139,
            114,
            168,
            8,
            187,
            103,
            42,
            49,
            97,
            104,
            72,
            219,
            122,
            15,
            160,
            114,
            34,
            124,
            54,
            220,
            187
          ]
        },
        receipt: {
          type: 'Buffer',
          data: []
        },
        route_hints: [],
        settle_date: '0',
        settle_index: '0',
        settled: false,
        value: '100000',
        finalAmount: 0
      },
      {
        add_index: '2',
        amt_paid: '0',
        cltv_expiry: '144',
        creation_date: '1535393483',
        description_hash: {
          type: 'Buffer',
          data: []
        },
        expiry: '3600',
        fallback_addr: '',
        memo: 'test htlc',
        payment_request: 'lntb20m1pdcg0ktpp5ulnuuxey3acvmh0rhg4x2evs74w07j7m245wuzwqt62d2kx2xjzqdq0w3jhxapqdp6xccccqzyslt3ad2d4ctjtk4uudq2mwdhl52vtsxjdfj8kg9wmzy4007wz307r33w6zt79pv95jr4g7q6kxjjhgzl6kqjk6rjhyrr4y3pl32m4rtcq2nt8sj',
        'private': false,
        r_hash: {
          type: 'Buffer',
          data: [
            231,
            231,
            206,
            27,
            36,
            143,
            112,
            205,
            221,
            227,
            186,
            42,
            101,
            101,
            144,
            245,
            92,
            255,
            75,
            219,
            85,
            104,
            238,
            9,
            192,
            94,
            148,
            213,
            88,
            202,
            52,
            132
          ]
        },
        r_preimage: {
          type: 'Buffer',
          data: [
            184,
            1,
            91,
            43,
            243,
            206,
            198,
            31,
            143,
            140,
            231,
            0,
            42,
            120,
            235,
            179,
            174,
            196,
            166,
            114,
            2,
            217,
            39,
            13,
            113,
            42,
            181,
            215,
            134,
            119,
            237,
            109
          ]
        },
        receipt: {
          type: 'Buffer',
          data: []
        },
        route_hints: [],
        settle_date: '0',
        settle_index: '0',
        settled: false,
        value: '2000000',
        finalAmount: 0
      },
      {
        add_index: '3',
        amt_paid: '0',
        cltv_expiry: '144',
        creation_date: '1535400797',
        description_hash: {
          type: 'Buffer',
          data: []
        },
        expiry: '3600',
        fallback_addr: '',
        memo: 'test',
        payment_request: 'lntb10m1pdcgk6app5903hm3tezesu6pylgvjfjddt9hjgs2dvm3u7e3lmv3ge45knnaasdq8w3jhxaqcqzys3w2m20lwwqlcgnsu4rut60mz8ps2hrkq2wutnh3k3evvcw3q4n8q6yekxazp32f9kpx59mj2j4gm3lcj0dqcmmz7jtj9u8fvx9qhzggpuqdkpq',
        'private': false,
        r_hash: {
          type: 'Buffer',
          data: [
            43,
            227,
            125,
            197,
            121,
            22,
            97,
            205,
            4,
            159,
            67,
            36,
            153,
            53,
            171,
            45,
            228,
            136,
            41,
            172,
            220,
            121,
            236,
            199,
            251,
            100,
            81,
            154,
            210,
            211,
            159,
            123
          ]
        },
        r_preimage: {
          type: 'Buffer',
          data: [
            78,
            99,
            192,
            188,
            11,
            77,
            219,
            70,
            231,
            241,
            72,
            126,
            212,
            246,
            197,
            221,
            135,
            94,
            7,
            243,
            180,
            47,
            136,
            195,
            243,
            250,
            57,
            165,
            191,
            38,
            27,
            252
          ]
        },
        receipt: {
          type: 'Buffer',
          data: []
        },
        route_hints: [],
        settle_date: '0',
        settle_index: '0',
        settled: false,
        value: '1000000',
        finalAmount: 0
      }
    ],
    invoice: null,
    invoicesSearchText: '',
    data: {},
    formInvoice: {
      payreq: '',
      r_hash: '',
      amount: '0'
    }
  },
  address: {
    addressLoading: false,
    address: '2N6ihzRK7nTq7i9nrM4EZXkVeo8b8bNA5W8',
    walletModal: false
  },
  transaction: {
    sendingTransaction: false,
    transactionLoading: false,
    transactions: [
      {
        amount: '4990950',
        block_hash: '',
        block_height: 0,
        dest_addresses: [],
        num_confirmations: 0,
        time_stamp: '1535402487',
        total_fees: '0',
        tx_hash: '485d972bf93eb43ad7d4e2c2c50d0b5f35db25b4207019f4988a6c231d8716ec',
        received: true
      },
      {
        amount: '-16786002',
        block_hash: '',
        block_height: 0,
        dest_addresses: [],
        num_confirmations: 0,
        time_stamp: '1535400964',
        total_fees: '8787',
        tx_hash: '8c8dffcaafd4fda1fa48cfcf7f99b61f32af9c6e81e9d56256e5315c08dbd637',
        received: false
      },
      {
        amount: '-16784852',
        block_hash: '',
        block_height: 0,
        dest_addresses: [],
        num_confirmations: 0,
        time_stamp: '1535400958',
        total_fees: '7637',
        tx_hash: '6c6a346c8fd11a4c72bfeb4262c8c6a9ce632826226f557688efe9044535fe7d',
        received: false
      },
      {
        amount: '32500000',
        block_hash: '00000000000000981cf335dff95ae18c48cc59d5dfcff36fb84172d30cfc5842',
        block_height: 1410180,
        dest_addresses: [
          '2MvFT7PcGYPq6bu3sm1YPyN6JFtZHZTCew6',
          'mtS8Wqtpz2tz1okRcZPLvPJ2wqGnkVMG51'
        ],
        num_confirmations: 76,
        time_stamp: '1535383608',
        total_fees: '0',
        tx_hash: '7ec8c3cbfa8a043a31eac67c3138c56676170e02a92ab41142bd8e2ae5942f45',
        received: true
      },
      {
        amount: '-5008787',
        block_hash: '00000000000000c8ceb545e49f5752f62ade076c68c459cda006d87578d9960d',
        block_height: 1410190,
        dest_addresses: [
          'tb1q8j6xy9snxdzde0jhpmksg4djespw4k39lpzaxymjfhfseqzqvgeszyfshz',
          'tb1qwug2hmecrhglpvzdmunwtxdwlalmzzf63cvvyf'
        ],
        num_confirmations: 66,
        time_stamp: '1535386046',
        total_fees: '8787',
        tx_hash: '3f5d3daa8546ab97c5413ccb7cef711c207470327714ecc98a3cd04811ce66d1',
        received: false
      },
      {
        amount: '16250000',
        block_hash: '0000000000000033f85bdfe4e34bf0661068381047723d841b023b8b013780d5',
        block_height: 1410193,
        dest_addresses: [
          '2N2wyJzLRS13MdFYVBc5zCwJ1PBqqS8pJpQ',
          'mqmLc488rbvr4vmqd4aFtSx4mWJqTWo5xw'
        ],
        num_confirmations: 63,
        time_stamp: '1535386480',
        total_fees: '0',
        tx_hash: 'd0f4f351ec1cb1b7d7e6693727056ab80c9f27b0ec20b256dd89081d98b8ebe0',
        received: true
      },
      {
        amount: '-1008787',
        block_hash: '00000000000000b08c934e16f39a856bee8ae5521d385583d059e90d97806f1b',
        block_height: 1410200,
        dest_addresses: [
          'tb1q8n6wqel590et3qxjpm7j6quyp4mse6q9dsudrzxnchwwndxwhs9slvuz3a',
          'tb1q9exswvr8uaxjlcydzszggl6gn86suem7rclpzh'
        ],
        num_confirmations: 56,
        time_stamp: '1535387936',
        total_fees: '8787',
        tx_hash: '9bba23a98367269da2fb6227da39c6ebc2b16f1f9bd1e535315a2c01f6b5013b',
        received: false
      },
      {
        amount: '-10007637',
        block_hash: '000000000000001334b0729c21523cc1e3334d8bb0b556e78b5f9095e40375a4',
        block_height: 1410229,
        dest_addresses: [
          'tb1qc779uge0jkw8v9c659fs2zu4rkfa3upscfulzf',
          'tb1qcq9he535cp28mrrw2dj2tur0775wvdxgedqq5477z0vt26sjlcus40sfvu'
        ],
        num_confirmations: 27,
        time_stamp: '1535395451',
        total_fees: '7637',
        tx_hash: '1075719dc1574a2455575105beefd5115679440da45d2cf4e00e0747bcf736a3',
        received: false
      },
      {
        amount: '32500000',
        block_hash: '00000000000000453710b10cc9bc58595788ab2d285b42d0763faa932b521fa0',
        block_height: 1410248,
        dest_addresses: [
          '2N6AhJZYNtA1qYUhXQnK7RqsRmhHqPt2SN8',
          'mrpWbGYqQENsNAkJYPvZydRo1ieY3ktCoM'
        ],
        num_confirmations: 8,
        time_stamp: '1535399794',
        total_fees: '0',
        tx_hash: 'b73ae9ee70b836daff1929fb6ac772ab1b724977213b20c8ec68f5131128dabe',
        received: true
      },
      {
        amount: '-12963436',
        block_hash: '000000000000004ee38aeb9ad308f3c8c7d0b32aa81beb35c37feced188fc698',
        block_height: 1410249,
        dest_addresses: [
          'tb1q3xd9rvxysws2kk2t5ms5303dds5q0sehyxfnf36jw0n53ejhsj8ssfyuq6',
          'tb1q284ermjl8l29dxhalkjhwmvefydn2m738y9n6e'
        ],
        num_confirmations: 7,
        time_stamp: '1535399922',
        total_fees: '11050',
        tx_hash: '0cdd95f2d1274734653f850ff1fbb455f6aa1d854030055940fb0433d503f8ec',
        received: false
      }
    ],
    successTransactionScreen: {
      show: false,
      txid: ''
    }
  },
  activity: {
    filterPulldown: false,
    filter: {
      key: 'ALL_ACTIVITY',
      name: 'All Activity'
    },
    filters: [
      {
        key: 'ALL_ACTIVITY',
        name: 'All'
      },
      {
        key: 'SENT_ACTIVITY',
        name: 'Sent'
      },
      {
        key: 'REQUESTED_ACTIVITY',
        name: 'Requested'
      },
      {
        key: 'PENDING_ACTIVITY',
        name: 'Pending'
      }
    ],
    modal: {
      modalType: null,
      modalProps: {},
      showCurrencyFilters: false
    },
    searchActive: false,
    searchText: ''
  },
  network: {
    networkLoading: false,
    nodes: [
      {
        addresses: [
          {
            addr: '46.101.43.237:9735',
            network: 'tcp'
          }
        ],
        alias: 'VegardsNode',
        color: '#3399ff',
        last_update: 1535386809,
        pub_key: '020f0fc08e5ca751f5fbd803b06236cde8e87035cb651893950d91c69e6a079957'
      },
      {
        addresses: [
          {
            addr: '174.138.5.208:29735',
            network: 'tcp'
          }
        ],
        alias: 'Jason_BTC',
        color: '#3399ff',
        last_update: 1535382210,
        pub_key: '022016e353c5f025d2ac03925d87722499c3675b315be6452e7f108de7c8073dc1'
      },
      {
        addresses: [
          {
            addr: '54.236.55.50:9735',
            network: 'tcp'
          }
        ],
        alias: 'testnet.yalls.org',
        color: '#f8e71c',
        last_update: 1535400443,
        pub_key: '02212d3ec887188b284dbb7b2e6eb40629a6e14fb049673f22d2a0aa05f902090e'
      },
      {
        addresses: [
          {
            addr: '0.0.0.0:9736',
            network: 'tcp'
          }
        ],
        alias: '022e377a640ccba052b0',
        color: '#3399ff',
        last_update: 1535369196,
        pub_key: '022e377a640ccba052b006a55e5975c7503b37991309972138dd330631c005cc87'
      },
      {
        addresses: [
          {
            addr: '176.9.89.217:2000',
            network: 'tcp'
          }
        ],
        alias: '0230d84c21cb2be5a00e',
        color: '#3399ff',
        last_update: 1535395562,
        pub_key: '0230d84c21cb2be5a00e64d2704ebe2ff80602523480d8625d9532ba78302debe2'
      },
      {
        addresses: [
          {
            addr: '92.53.89.123:19735',
            network: 'tcp'
          }
        ],
        alias: 'lndhub.ru',
        color: '#3399ff',
        last_update: 1535386809,
        pub_key: '023a8dfe081c6bbd0504e599f33d39d17687de63023a8b20afcb59147d9d77c19d'
      },
      {
        addresses: [
          {
            addr: '139.59.68.121:9735',
            network: 'tcp'
          }
        ],
        alias: 'Bitcoin-lnd',
        color: '#3399ff',
        last_update: 1535391900,
        pub_key: '023cc7219a6acf2f51b2f10656615c385ef334ad409f9c9fb4d681b7f6cdd23566'
      },
      {
        addresses: [
          {
            addr: '160.16.233.215:9735',
            network: 'tcp'
          }
        ],
        alias: 'btctest.lnetwork.tokyo',
        color: '#db245b',
        last_update: 1535398943,
        pub_key: '023ea0a53af875580899da0ab0a21455d9c19160c4ea1b7774c9d4be6810b02d2c'
      },
      {
        addresses: [],
        alias: '',
        color: '#000000',
        last_update: 0,
        pub_key: '024af1697fc904b267e53b8ed307a542b5d1e6fd55aca6ee0efc4650644884266e'
      },
      {
        addresses: [
          {
            addr: '203.150.176.118:9734',
            network: 'tcp'
          }
        ],
        alias: 'lncm-all-2',
        color: '#ffffff',
        last_update: 1535382592,
        pub_key: '024c408c3e64ce9fccf964ad28cd2bb9a0987d3555c65747cade0690c6bb74e5e1'
      },
      {
        addresses: [
          {
            addr: '91.156.211.85:9735',
            network: 'tcp'
          }
        ],
        alias: 'YOUR_NAME [LND]',
        color: '#68f442',
        last_update: 1535372652,
        pub_key: '024fb43bbdf5ae7cd1825999bbf164da58cee81d29ac62883582f5dc356163354e'
      },
      {
        addresses: [
          {
            addr: '69.181.249.230:9736',
            network: 'tcp'
          }
        ],
        alias: '02627c1061453756d4c1',
        color: '#3399ff',
        last_update: 1535375036,
        pub_key: '02627c1061453756d4c12a622d4fe6cbf3553343516452cadbe7dfff87017ffd5c'
      },
      {
        addresses: [
          {
            addr: '159.203.125.125:9735',
            network: 'tcp'
          }
        ],
        alias: '0270685ca81a8e4d4d01',
        color: '#3399ff',
        last_update: 1535400469,
        pub_key: '0270685ca81a8e4d4d01beec5781f4cc924684072ae52c507f8ebe9daf0caaab7b'
      },
      {
        addresses: [
          {
            addr: '138.68.61.172:9735',
            network: 'tcp'
          }
        ],
        alias: 'testnet.8dec.io',
        color: '#008000',
        last_update: 1535400471,
        pub_key: '0279914bfe9fad7f80a45e368aa111d412e47fd65ad35323b61c99924208941518'
      },
      {
        addresses: [
          {
            addr: '85.144.83.16:19735',
            network: 'tcp'
          }
        ],
        alias: 'Mediastad Testnet',
        color: '#68f442',
        last_update: 1535386811,
        pub_key: '029e9c5b8ebfce08289ae5548fe31dc5ddc97779cab731def4f2c0c126cd880abc'
      },
      {
        addresses: [
          {
            addr: '197.155.6.37:9735',
            network: 'tcp'
          }
        ],
        alias: 'lnd.vanilla.co.za',
        color: '#00ff00',
        last_update: 1535379943,
        pub_key: '02ae2f22b02375e3e9b4b4a2db4f12e1b50752b4062dbefd6e01332acdaf680379'
      },
      {
        addresses: [
          {
            addr: '18.207.34.106:9735',
            network: 'tcp'
          }
        ],
        alias: 'Arcade.Money 👾',
        color: '#805db2',
        last_update: 1535368818,
        pub_key: '02b0791f19959bdc5ce81ae1bfe337801208acfc9b77c7edaba5ba971557615c1c'
      },
      {
        addresses: [],
        alias: '02b1f96ed3c2d0a20146',
        color: '#3399ff',
        last_update: 1535377451,
        pub_key: '02b1f96ed3c2d0a201469df17a14b65799fcdc198063908ef87fc95b7282a75cf0'
      },
      {
        addresses: [
          {
            addr: '46.101.75.242:9735',
            network: 'tcp'
          }
        ],
        alias: 'minimunch4',
        color: '#3399ff',
        last_update: 1535390607,
        pub_key: '02b7c4cf1c06686a49a2a95b15819bf67007850c8dad858691e332caead055aaa4'
      },
      {
        addresses: [
          {
            addr: '80.57.221.143:9735',
            network: 'tcp'
          }
        ],
        alias: 'END_THE_FED [LND]',
        color: '#68f442',
        last_update: 1535395661,
        pub_key: '02bcb551f3f2cd42cc423fff9ec07eadd5cf0c97845ebdfe796f0c76037a594365'
      },
      {
        addresses: [],
        alias: 'lindi',
        color: '#68f442',
        last_update: 1535382515,
        pub_key: '02c238384f46cc463bd0d27e633469d5d99b9d19db5fdb0bfea4533245dac3593a'
      },
      {
        addresses: [
          {
            addr: '52.166.88.225:9735',
            network: 'tcp'
          }
        ],
        alias: 'test2.btcpayserver',
        color: '#02da1a',
        last_update: 1535382530,
        pub_key: '02da1a4fe9b0188ea755142af430ffbf4fca26ee8b2d735d6a1c83f1a8ad47b8e7'
      },
      {
        addresses: [
          {
            addr: '54.175.230.115:9735',
            network: 'tcp'
          }
        ],
        alias: 'shango9e8beddc-eb37-4',
        color: '#e20f00',
        last_update: 1535380701,
        pub_key: '02fc3229226ad6cb1bbd4960a2553c90e0ca44fddc8e5e436d1198073baa2ec5b9'
      },
      {
        addresses: [],
        alias: 'tomthebomb',
        color: '#3399ff',
        last_update: 1535402410,
        pub_key: '02fcab6e34a2ad21be2a752ab96d13f5f1a14990ed88d2f5fedf8f8f0780c281a9'
      },
      {
        addresses: [
          {
            addr: '163.172.94.64:9735',
            network: 'tcp'
          }
        ],
        alias: 'lightning.glop.org',
        color: '#008080',
        last_update: 1535383994,
        pub_key: '030f0bf260acdbd3edcad84d7588ec7c5df4711e87e6a23016f989b8d3a4147230'
      },
      {
        addresses: [
          {
            addr: '104.156.229.101:9735',
            network: 'tcp'
          }
        ],
        alias: 'htlc.me',
        color: '#854cc5',
        last_update: 1535398942,
        pub_key: '03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8'
      },
      {
        addresses: [
          {
            addr: '165.227.30.200:9735',
            network: 'tcp'
          },
          {
            addr: '[2604:a880:2:d0::2065:5001]:9735',
            network: 'tcp'
          }
        ],
        alias: 'SLICKERMASTER-',
        color: '#031a34',
        last_update: 1535372678,
        pub_key: '031a3478d481b92e3c28810228252898c5f0d82fc4d07f5210c4f34d4aba56b769'
      },
      {
        addresses: [
          {
            addr: '5.102.147.62:9736',
            network: 'tcp'
          }
        ],
        alias: 'energy-kitchen.net',
        color: '#6cb02c',
        last_update: 1535392867,
        pub_key: '0322d81c93f0ffe593bae6102e2a0fd38cfcaea809e8061d9ac66b04429f258d14'
      },
      {
        addresses: [
          {
            addr: '50.116.3.223:9735',
            network: 'tcp'
          }
        ],
        alias: 'dead.cash',
        color: '#3399ff',
        last_update: 1535379939,
        pub_key: '03236a685d30096b26692dce0cf0fa7c8528bdf61dbf5363a3ef6d5c92733a3016'
      },
      {
        addresses: [
          {
            addr: '46.181.199.169:19735',
            network: 'tcp'
          }
        ],
        alias: 'zarianu [LND]',
        color: '#68f442',
        last_update: 1535386809,
        pub_key: '032c15a9545b8e4a4602509128fb5bec8cfb74ca56586923de17c7370fbc13c0c4'
      },
      {
        addresses: [],
        alias: 'eclair',
        color: '#49daaa',
        last_update: 1535317398,
        pub_key: '0338f57e4e20abf4d5c86b71b59e995ce4378e373b021a7b6f41dabb42d3aad069'
      },
      {
        addresses: [],
        alias: 'PumpaPandacountry',
        color: '#ffa500',
        last_update: 1535399170,
        pub_key: '033c21943b11996f19570b1d03e5fd145d9546bf6de2746abd5419f78f411648b1'
      },
      {
        addresses: [],
        alias: '',
        color: '#000000',
        last_update: 0,
        pub_key: '0357a006096fbefe536e76d56a2f7170c5cb352b7b434899e84b58e50130e35bc0'
      },
      {
        addresses: [
          {
            addr: '18.191.57.14:9735',
            network: 'tcp'
          }
        ],
        alias: 'lordofdarkness',
        color: '#666000',
        last_update: 1535371457,
        pub_key: '035b8626ba9fc3f3bd1050767fa4010f3d73a1a6607d14cbf620917692741d7289'
      },
      {
        addresses: [
          {
            addr: '195.201.225.226:9735',
            network: 'tcp'
          }
        ],
        alias: '',
        color: '#035cb6',
        last_update: 1535380661,
        pub_key: '035cb6ce197a4672ae7ecfeeca95601a5db5b0db8f4f46f872ae4baf3bdb0c8f75'
      },
      {
        addresses: [
          {
            addr: '186.19.136.144:19735',
            network: 'tcp'
          }
        ],
        alias: 'microbet.fun',
        color: '#2c5f85',
        last_update: 1535372654,
        pub_key: '03819ddbe246214d4c57b7ea4d28bfe5c09c03bb4308b40c26f1468532131e0cc0'
      },
      {
        addresses: [
          {
            addr: '180.181.208.42:9735',
            network: 'tcp'
          }
        ],
        alias: 'aranguren.org',
        color: '#3399ff',
        last_update: 1535379376,
        pub_key: '038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9'
      },
      {
        addresses: [
          {
            addr: '52.29.144.78:9735',
            network: 'tcp'
          }
        ],
        alias: '0389a4d10d30e6176ea7',
        color: '#3399ff',
        last_update: 1535378328,
        pub_key: '0389a4d10d30e6176ea7cd0a7060344108061fc9ca88b02fa52dacea4b0114b316'
      },
      {
        addresses: [
          {
            addr: '46.101.224.13:9735',
            network: 'tcp'
          }
        ],
        alias: 'DeutscheTestnetBank',
        color: '#0000ff',
        last_update: 1535382566,
        pub_key: '03a0df42e93655311fee911f857a5cf1c6415f395f6396bb5ac756cbc6f3532601'
      },
      {
        addresses: [
          {
            addr: '5.102.147.62:9735',
            network: 'tcp'
          }
        ],
        alias: 'PuzzleITC',
        color: '#3974b2',
        last_update: 1535397116,
        pub_key: '03a13a469bae4785e27fae24e7664e648cfdb976b97f95c694dea5e55e7d302846'
      },
      {
        addresses: [
          {
            addr: '109.235.70.143:9737',
            network: 'tcp'
          }
        ],
        alias: 'PuffTheMagicDragon',
        color: '#000000',
        last_update: 1535386828,
        pub_key: '03ac30186e1568957d98ba4aa459a7455c415c7e88b0ab8cb57dddbea839f970d1'
      },
      {
        addresses: [
          {
            addr: '85.216.75.225:19735',
            network: 'tcp'
          }
        ],
        alias: 'HP Testnet',
        color: '#11f411',
        last_update: 1535373679,
        pub_key: '03adf1a17ab83438f23bc6c3b87ed8664757923988d5907c469840ddba1a7d1415'
      },
      {
        addresses: [],
        alias: 'Truman',
        color: '#3399ff',
        last_update: 1535372873,
        pub_key: '03b672aae341afeb3034a78128901d3332e966aad8ddee88e7a83d44ed22fcc11b'
      },
      {
        addresses: [
          {
            addr: '173.71.149.66:19735',
            network: 'tcp'
          }
        ],
        alias: '03b9b978c625c4640df4',
        color: '#ff9900',
        last_update: 1535378514,
        pub_key: '03b9b978c625c4640df48b21d10ce55dcdb49f78fa780da7548cbf2f12e1447043'
      },
      {
        addresses: [],
        alias: '03bca658440d86632d86',
        color: '#3399ff',
        last_update: 1535387548,
        pub_key: '03bca658440d86632d865e5b409af68a8684ae716ad3b7425e7ca0e4b17b0880d6'
      },
      {
        addresses: [],
        alias: '',
        color: '#000000',
        last_update: 0,
        pub_key: '03d4dfab31df432c93aafb4b1aef1472bb610760650555334ca1cdb74a15aa4f70'
      },
      {
        addresses: [
          {
            addr: '178.128.224.168:9735',
            network: 'tcp'
          }
        ],
        alias: '03dcce05ceace02e9cc3',
        color: '#3399ff',
        last_update: 1535385796,
        pub_key: '03dcce05ceace02e9cc305326fb721f33f05e73fa27417146bfac34e59259c4074'
      },
      {
        addresses: [
          {
            addr: '188.193.138.178:9737',
            network: 'tcp'
          }
        ],
        alias: 'LiteStrikeBTClnd',
        color: '#3399ff',
        last_update: 1535395376,
        pub_key: '03e72af793b15f8e74f8c2668a9bc251c07bed3ba21d99ca0119ea05fbab1aa75a'
      },
      {
        addresses: [
          {
            addr: '207.154.224.115:9735',
            network: 'tcp'
          }
        ],
        alias: 'testnet.zigzag.io',
        color: '#3399ff',
        last_update: 1535382551,
        pub_key: '03f44acc1df8639efbe5099da403f213a4ce5bbe6f9bdac7bfa26dcc338761e9de'
      },
      {
        addresses: [],
        alias: '',
        color: '#000000',
        last_update: 0,
        pub_key: '03f5ecb876e25251c2def88e7dc74e9f221fe18c517b8e22873d451ba550189fb1'
      },
      {
        addresses: [
          {
            addr: '99.62.184.68:9735',
            network: 'tcp'
          }
        ],
        alias: 'JEMJAB [LND]',
        color: '#68f442',
        last_update: 1535382551,
        pub_key: '03fd07545f575b851741b238e1f043a697f295a78b363a8db70558cee8f63001f2'
      }
    ],
    edges: [
      {
        capacity: '10000000',
        chan_point: 'c9e632f376e5b06d30ea9c6d695ae296513b9adf972940d46d2977fa24952267:0',
        channel_id: '1521037997606895616',
        last_update: 0,
        node1_policy: null,
        node1_pub: '024af1697fc904b267e53b8ed307a542b5d1e6fd55aca6ee0efc4650644884266e',
        node2_policy: null,
        node2_pub: '024fb43bbdf5ae7cd1825999bbf164da58cee81d29ac62883582f5dc356163354e'
      },
      {
        capacity: '1000000',
        chan_point: '9eaa51ddcb0c8a6fc5cb25dff7cf2cb2d2664747e1939dd95d156f25dca86346:0',
        channel_id: '1522254057607987200',
        last_update: 0,
        node1_policy: null,
        node1_pub: '0270685ca81a8e4d4d01beec5781f4cc924684072ae52c507f8ebe9daf0caaab7b',
        node2_policy: null,
        node2_pub: '03d4dfab31df432c93aafb4b1aef1472bb610760650555334ca1cdb74a15aa4f70'
      },
      {
        capacity: '1000000',
        chan_point: 'bc3f6fa9803dab225bb5d02145a16ac0802388fef8a201c67b6537b9e6b62582:0',
        channel_id: '1522354113110671360',
        last_update: 0,
        node1_policy: null,
        node1_pub: '023ea0a53af875580899da0ab0a21455d9c19160c4ea1b7774c9d4be6810b02d2c',
        node2_policy: null,
        node2_pub: '03ac30186e1568957d98ba4aa459a7455c415c7e88b0ab8cb57dddbea839f970d1'
      },
      {
        capacity: '2000000',
        chan_point: '090873bfa19805044bcb7ef0eaa2b7a54c053d63c4ca3854f869f32febc9f236:0',
        channel_id: '1522789519733489664',
        last_update: 0,
        node1_policy: null,
        node1_pub: '0357a006096fbefe536e76d56a2f7170c5cb352b7b434899e84b58e50130e35bc0',
        node2_policy: null,
        node2_pub: '03f5ecb876e25251c2def88e7dc74e9f221fe18c517b8e22873d451ba550189fb1'
      },
      {
        capacity: '16777215',
        chan_point: '617e6765230f5c11e5ebc658520c27cb33fa42b13a9c0ce745a8ce5a31cba69f:0',
        channel_id: '1550429043044712448',
        last_update: 1535368818,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02b0791f19959bdc5ce81ae1bfe337801208acfc9b77c7edaba5ba971557615c1c',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03b672aae341afeb3034a78128901d3332e966aad8ddee88e7a83d44ed22fcc11b'
      },
      {
        capacity: '15722785',
        chan_point: '7ee4e561388eb5c64187d96b190e91be27a5ff3e8d70d29155dad3e5978e0c8a:0',
        channel_id: '1550431242058989568',
        last_update: 1535370383,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '022e377a640ccba052b006a55e5975c7503b37991309972138dd330631c005cc87',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '6660',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '035b8626ba9fc3f3bd1050767fa4010f3d73a1a6607d14cbf620917692741d7289'
      },
      {
        capacity: '16777215',
        chan_point: 'bb01842ba8432df192e7640f75c6b077097df72c2af4e3591d61f3047810212f:0',
        channel_id: '1550442237132144640',
        last_update: 1535371455,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '6660',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '035b8626ba9fc3f3bd1050767fa4010f3d73a1a6607d14cbf620917692741d7289',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03e72af793b15f8e74f8c2668a9bc251c07bed3ba21d99ca0119ea05fbab1aa75a'
      },
      {
        capacity: '8338313',
        chan_point: 'dd0947a0787c08fa0b01c3dc9e65a6b2c9d75e93991b4b79a687d0b26d249547:0',
        channel_id: '1550442237132210176',
        last_update: 1535369920,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '023ea0a53af875580899da0ab0a21455d9c19160c4ea1b7774c9d4be6810b02d2c',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03e72af793b15f8e74f8c2668a9bc251c07bed3ba21d99ca0119ea05fbab1aa75a'
      },
      {
        capacity: '1000000',
        chan_point: '3dac8917263cd803bad1442d8f49898ec9ec3c593a3d6f44d862149414952334:0',
        channel_id: '1550447734830727168',
        last_update: 1535399508,
        node1_policy: {
          disabled: true,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '9999',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02212d3ec887188b284dbb7b2e6eb40629a6e14fb049673f22d2a0aa05f902090e',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03bca658440d86632d865e5b409af68a8684ae716ad3b7425e7ca0e4b17b0880d6'
      },
      {
        capacity: '300000',
        chan_point: 'd447cff8814dc18886549a2ad511cd5e4a614193a421ab44266f4eb2a9de8c0a:0',
        channel_id: '1550448834273935360',
        last_update: 1535390412,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '023cc7219a6acf2f51b2f10656615c385ef334ad409f9c9fb4d681b7f6cdd23566',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '024fb43bbdf5ae7cd1825999bbf164da58cee81d29ac62883582f5dc356163354e'
      },
      {
        capacity: '2000001',
        chan_point: '454d15137d7a979d8ad80caa8bbd96c8bcd60a8d83c1d972b7c2aa627928e559:0',
        channel_id: '1550448834274000896',
        last_update: 1535372678,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1000',
          time_lock_delta: 6
        },
        node1_pub: '031a3478d481b92e3c28810228252898c5f0d82fc4d07f5210c4f34d4aba56b769',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03819ddbe246214d4c57b7ea4d28bfe5c09c03bb4308b40c26f1468532131e0cc0'
      },
      {
        capacity: '752345',
        chan_point: '312d4263a7686a564640abcf16c5f8b6b8d26a41aefeeac8071cf90107aa60a9:0',
        channel_id: '1550449933669105664',
        last_update: 1535371961,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '03adf1a17ab83438f23bc6c3b87ed8664757923988d5907c469840ddba1a7d1415',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03e72af793b15f8e74f8c2668a9bc251c07bed3ba21d99ca0119ea05fbab1aa75a'
      },
      {
        capacity: '16777215',
        chan_point: '301cc83203464ddedb8f85e96b98039bb59d4df1a49d4daeab8095207b8a749d:0',
        channel_id: '1550457630422859776',
        last_update: 1535397385,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '023cc7219a6acf2f51b2f10656615c385ef334ad409f9c9fb4d681b7f6cdd23566',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '0270685ca81a8e4d4d01beec5781f4cc924684072ae52c507f8ebe9daf0caaab7b'
      },
      {
        capacity: '16777215',
        chan_point: '3fbf3b4329e22c29b615f91aff8db81ae13188327907116e3de3e197ee91da78:1',
        channel_id: '1550457630423187457',
        last_update: 1535391906,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '023cc7219a6acf2f51b2f10656615c385ef334ad409f9c9fb4d681b7f6cdd23566',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '02627c1061453756d4c12a622d4fe6cbf3553343516452cadbe7dfff87017ffd5c'
      },
      {
        capacity: '100000',
        chan_point: '1adc97363172d2c3cba4013d64ffe0647d239904bb63d1f2a588f209b735f49b:1',
        channel_id: '1550468625435918337',
        last_update: 1535376426,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '0389a4d10d30e6176ea7cd0a7060344108061fc9ca88b02fa52dacea4b0114b316',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03bca658440d86632d865e5b409af68a8684ae716ad3b7425e7ca0e4b17b0880d6'
      },
      {
        capacity: '2500000',
        chan_point: '69762ad7faa7ce9d0955dac8f981108da7e23b0342060aa7af98b6b74ed4f197:1',
        channel_id: '1550470824421752833',
        last_update: 1535376929,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02b1f96ed3c2d0a201469df17a14b65799fcdc198063908ef87fc95b7282a75cf0',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '0389a4d10d30e6176ea7cd0a7060344108061fc9ca88b02fa52dacea4b0114b316'
      },
      {
        capacity: '100000',
        chan_point: '6bf5c0a7a399f5ce961208597dff7f9dbed25650d5393e33223929ff7ee47566:1',
        channel_id: '1550475222479667201',
        last_update: 1535377730,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '0389a4d10d30e6176ea7cd0a7060344108061fc9ca88b02fa52dacea4b0114b316',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03bca658440d86632d865e5b409af68a8684ae716ad3b7425e7ca0e4b17b0880d6'
      },
      {
        capacity: '2475000',
        chan_point: 'afebf3317264ccc1eb2bcb57edce9bd04f2f133b04d465ccb19e5636b8f23c26:0',
        channel_id: '1550476322011676672',
        last_update: 1535377867,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02fc3229226ad6cb1bbd4960a2553c90e0ca44fddc8e5e436d1198073baa2ec5b9',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03b9b978c625c4640df48b21d10ce55dcdb49f78fa780da7548cbf2f12e1447043'
      },
      {
        capacity: '5000000',
        chan_point: 'ce46e4e2639e6d20f5a34976ddea61d21902b0afa7b5aeb02ee17872ffe59307:0',
        channel_id: '1550478521024643072',
        last_update: 1535378332,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02fc3229226ad6cb1bbd4960a2553c90e0ca44fddc8e5e436d1198073baa2ec5b9',
        node2_policy: {
          disabled: true,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9'
      },
      {
        capacity: '4192494',
        chan_point: 'b26f8eaa60d1090af5245ef5074e8fb7a314ea5b0e8119363478225a9a9bcdfe:0',
        channel_id: '1550479620582539264',
        last_update: 1535382895,
        node1_policy: {
          disabled: true,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02ae2f22b02375e3e9b4b4a2db4f12e1b50752b4062dbefd6e01332acdaf680379',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '02fc3229226ad6cb1bbd4960a2553c90e0ca44fddc8e5e436d1198073baa2ec5b9'
      },
      {
        capacity: '16777215',
        chan_point: '3e68570b81e24276ebf5c8ca0a79ba3089dafb59e83884180dac700e6c5365cc:0',
        channel_id: '1550479620594728960',
        last_update: 1535390661,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02b7c4cf1c06686a49a2a95b15819bf67007850c8dad858691e332caead055aaa4',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '030f0bf260acdbd3edcad84d7588ec7c5df4711e87e6a23016f989b8d3a4147230'
      },
      {
        capacity: '50385',
        chan_point: '33ef378066c1437347134a2f1fd0fb7b695f95bceb617e94ec8c1ab92d2dfed5:0',
        channel_id: '1550479620594794496',
        last_update: 1535399181,
        node1_policy: {
          disabled: true,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '0270685ca81a8e4d4d01beec5781f4cc924684072ae52c507f8ebe9daf0caaab7b',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '02b7c4cf1c06686a49a2a95b15819bf67007850c8dad858691e332caead055aaa4'
      },
      {
        capacity: '10280012',
        chan_point: '4f1e457802fc0cde13028c222944af82f8bfa3c92ab4867ed30c9ad148ad03cd:0',
        channel_id: '1550480720059564032',
        last_update: 1535380795,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02ae2f22b02375e3e9b4b4a2db4f12e1b50752b4062dbefd6e01332acdaf680379',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '02bcb551f3f2cd42cc423fff9ec07eadd5cf0c97845ebdfe796f0c76037a594365'
      },
      {
        capacity: '6000000',
        chan_point: '40da3aa85b104161b3f74d79595f011b3f1cd84a4be37a896ff92d92acc20f42:0',
        channel_id: '1550480720101834752',
        last_update: 1535378332,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02fc3229226ad6cb1bbd4960a2553c90e0ca44fddc8e5e436d1198073baa2ec5b9',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03236a685d30096b26692dce0cf0fa7c8528bdf61dbf5363a3ef6d5c92733a3016'
      },
      {
        capacity: '16662196',
        chan_point: 'c3b7cc9ced825cb4eee2549b17144b7e7d37b39ffbb1abe7cec623e8d1ac4b0a:1',
        channel_id: '1550484018719031297',
        last_update: 1535379378,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02bcb551f3f2cd42cc423fff9ec07eadd5cf0c97845ebdfe796f0c76037a594365',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1000',
          time_lock_delta: 6
        },
        node2_pub: '035cb6ce197a4672ae7ecfeeca95601a5db5b0db8f4f46f872ae4baf3bdb0c8f75'
      },
      {
        capacity: '16777215',
        chan_point: 'd71b1d8fb4e5b78748fb2bc9e7f8c53e5fec2dec1262414f0e14dc63f59c8c34:0',
        channel_id: '1550485118232035328',
        last_update: 1535399181,
        node1_policy: {
          disabled: true,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '0270685ca81a8e4d4d01beec5781f4cc924684072ae52c507f8ebe9daf0caaab7b',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '02fc3229226ad6cb1bbd4960a2553c90e0ca44fddc8e5e436d1198073baa2ec5b9'
      },
      {
        capacity: '3600000',
        chan_point: '3477aa7bec590bbff47a80c59cc38d274fe34e9cd1529baee9ba9836a639aaa0:0',
        channel_id: '1550492814638972928',
        last_update: 1535381376,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '022016e353c5f025d2ac03925d87722499c3675b315be6452e7f108de7c8073dc1',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1000',
          time_lock_delta: 6
        },
        node2_pub: '03a0df42e93655311fee911f857a5cf1c6415f395f6396bb5ac756cbc6f3532601'
      },
      {
        capacity: '3600000',
        chan_point: 'aba2df37499c583b2041c5cb36982bd1be63cade47c7a3a8a114d40a7949e105:0',
        channel_id: '1550495013685886976',
        last_update: 1535382172,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02bcb551f3f2cd42cc423fff9ec07eadd5cf0c97845ebdfe796f0c76037a594365',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1000',
          time_lock_delta: 6
        },
        node2_pub: '03a0df42e93655311fee911f857a5cf1c6415f395f6396bb5ac756cbc6f3532601'
      },
      {
        capacity: '3600000',
        chan_point: '935ed1aa38260670507f0ffb567c7cceb8d722e0dbecf8564b7cd8ad8c71bb3c:0',
        channel_id: '1550495013685952512',
        last_update: 1535391906,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '0',
          time_lock_delta: 144
        },
        node1_pub: '023cc7219a6acf2f51b2f10656615c385ef334ad409f9c9fb4d681b7f6cdd23566',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1000',
          time_lock_delta: 6
        },
        node2_pub: '03a0df42e93655311fee911f857a5cf1c6415f395f6396bb5ac756cbc6f3532601'
      },
      {
        capacity: '3600000',
        chan_point: 'bab4ed736a8a20437a02f35be9ceae996fd5a5203acbdaac7bed2a513cbf97ec:0',
        channel_id: '1550495013686018048',
        last_update: 1535382596,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '024c408c3e64ce9fccf964ad28cd2bb9a0987d3555c65747cade0690c6bb74e5e1',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1000',
          time_lock_delta: 6
        },
        node2_pub: '03a0df42e93655311fee911f857a5cf1c6415f395f6396bb5ac756cbc6f3532601'
      },
      {
        capacity: '6890128',
        chan_point: 'a99add622dbf60739bd59a3164dc23bc6991795130ae72b77e1d3661395b52cc:0',
        channel_id: '1550497212841066496',
        last_update: 1535382175,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02c238384f46cc463bd0d27e633469d5d99b9d19db5fdb0bfea4533245dac3593a',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1000',
          time_lock_delta: 6
        },
        node2_pub: '02da1a4fe9b0188ea755142af430ffbf4fca26ee8b2d735d6a1c83f1a8ad47b8e7'
      },
      {
        capacity: '3600000',
        chan_point: 'ac9050aa0c1b5b5d3e4aa3701ebb29bbcc6e8b526002cd58341cccfc98e2a503:1',
        channel_id: '1550498312226144257',
        last_update: 1535382564,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1000',
          time_lock_delta: 6
        },
        node1_pub: '03a0df42e93655311fee911f857a5cf1c6415f395f6396bb5ac756cbc6f3532601',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03fd07545f575b851741b238e1f043a697f295a78b363a8db70558cee8f63001f2'
      },
      {
        capacity: '3600000',
        chan_point: '131092d94f207c18f8643aed27986169121a9873d5099e57a7e17c8d47816414:1',
        channel_id: '1550498312226209793',
        last_update: 1535382564,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1000',
          time_lock_delta: 6
        },
        node1_pub: '03a0df42e93655311fee911f857a5cf1c6415f395f6396bb5ac756cbc6f3532601',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '0',
          time_lock_delta: 144
        },
        node2_pub: '03f44acc1df8639efbe5099da403f213a4ce5bbe6f9bdac7bfa26dcc338761e9de'
      },
      {
        capacity: '16777215',
        chan_point: 'b8b8bf75cf1acdca15b2b14b3a962e50f65d12112da0596b6b5b916ff9933d4a:0',
        channel_id: '1550513705390833664',
        last_update: 1535390646,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02b7c4cf1c06686a49a2a95b15819bf67007850c8dad858691e332caead055aaa4',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03dcce05ceace02e9cc305326fb721f33f05e73fa27417146bfac34e59259c4074'
      },
      {
        capacity: '16777215',
        chan_point: 'a549a61971a48d09b6138f472851074a395b6993ba42a36bec9c2dcc7a0232db:0',
        channel_id: '1550520302560215040',
        last_update: 1535386448,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '100',
          min_htlc: '0',
          time_lock_delta: 144
        },
        node1_pub: '0338f57e4e20abf4d5c86b71b59e995ce4378e373b021a7b6f41dabb42d3aad069',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1',
          time_lock_delta: 6
        },
        node2_pub: '03ac30186e1568957d98ba4aa459a7455c415c7e88b0ab8cb57dddbea839f970d1'
      },
      {
        capacity: '16777215',
        chan_point: '3049c19829ebea85e7cc9c9e3dac59bf0b3414b96d611b669e19a5b38ca99c6d:0',
        channel_id: '1550520302562115584',
        last_update: 1535393973,
        node1_policy: {
          disabled: true,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '020f0fc08e5ca751f5fbd803b06236cde8e87035cb651893950d91c69e6a079957',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1',
          time_lock_delta: 144
        },
        node2_pub: '02b7c4cf1c06686a49a2a95b15819bf67007850c8dad858691e332caead055aaa4'
      },
      {
        capacity: '4186022',
        chan_point: 'caf1b9fb0150a4e3a554cf39fa07c4d866eb3f1734985e66bcdfc1d5efdc296f:1',
        channel_id: '1550520302562181121',
        last_update: 1535390646,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02b7c4cf1c06686a49a2a95b15819bf67007850c8dad858691e332caead055aaa4',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '032c15a9545b8e4a4602509128fb5bec8cfb74ca56586923de17c7370fbc13c0c4'
      },
      {
        capacity: '16777215',
        chan_point: '6f2c384f695edad838f2f5235be8a44eb82b0dbc1be998fc72644bbf34d79b54:0',
        channel_id: '1550520302562246656',
        last_update: 1535386810,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '029e9c5b8ebfce08289ae5548fe31dc5ddc97779cab731def4f2c0c126cd880abc',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '02b7c4cf1c06686a49a2a95b15819bf67007850c8dad858691e332caead055aaa4'
      },
      {
        capacity: '5000000',
        chan_point: '3f5d3daa8546ab97c5413ccb7cef711c207470327714ecc98a3cd04811ce66d1:0',
        channel_id: '1550520302562312192',
        last_update: 1535391153,
        node1_policy: null,
        node1_pub: '0270685ca81a8e4d4d01beec5781f4cc924684072ae52c507f8ebe9daf0caaab7b',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '02fcab6e34a2ad21be2a752ab96d13f5f1a14990ed88d2f5fedf8f8f0780c281a9'
      },
      {
        capacity: '16777215',
        chan_point: '5fac07c5dfbe2ef1f1f66d5fdc0d1f14b28f86e8b661fa8656d6b2a774476746:0',
        channel_id: '1550520302562377728',
        last_update: 1535386808,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '023a8dfe081c6bbd0504e599f33d39d17687de63023a8b20afcb59147d9d77c19d',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '02b7c4cf1c06686a49a2a95b15819bf67007850c8dad858691e332caead055aaa4'
      },
      {
        capacity: '16777215',
        chan_point: '441e1994315b73ff3c8959660d02bc5d79dd1b73e0d43b28c344d0d47e9a866f:0',
        channel_id: '1550521401961873408',
        last_update: 1535390639,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02b7c4cf1c06686a49a2a95b15819bf67007850c8dad858691e332caead055aaa4',
        node2_policy: {
          disabled: true,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '0322d81c93f0ffe593bae6102e2a0fd38cfcaea809e8061d9ac66b04429f258d14'
      },
      {
        capacity: '16777215',
        chan_point: 'b86e22dd502932299b94dc55685548c518c062846a5f133c9b434c808296641c:0',
        channel_id: '1550558785386184704',
        last_update: 1535395471,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '0230d84c21cb2be5a00e64d2704ebe2ff80602523480d8625d9532ba78302debe2',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '033c21943b11996f19570b1d03e5fd145d9546bf6de2746abd5419f78f411648b1'
      },
      {
        capacity: '10000000',
        chan_point: '1075719dc1574a2455575105beefd5115679440da45d2cf4e00e0747bcf736a3:1',
        channel_id: '1550563183530409985',
        last_update: 1535400957,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '02fcab6e34a2ad21be2a752ab96d13f5f1a14990ed88d2f5fedf8f8f0780c281a9',
        node2_policy: null,
        node2_pub: '03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8'
      },
      {
        capacity: '16777215',
        chan_point: '611f123121dfc392727e0e199113a863a5a76eedee5dd0c2cef949fb31ec2d14:1',
        channel_id: '1550564282867187713',
        last_update: 1535397128,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node1_pub: '033c21943b11996f19570b1d03e5fd145d9546bf6de2746abd5419f78f411648b1',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '1000',
          time_lock_delta: 144
        },
        node2_pub: '03a13a469bae4785e27fae24e7664e648cfdb976b97f95c694dea5e55e7d302846'
      },
      {
        capacity: '16777215',
        chan_point: '2a310e777df3a4a88cc0119318c7d646e8627828ec46f399bd1f8659d800636c:0',
        channel_id: '1550580775645872128',
        last_update: 1535399320,
        node1_policy: {
          disabled: false,
          fee_base_msat: '1000',
          fee_rate_milli_msat: '1',
          min_htlc: '0',
          time_lock_delta: 144
        },
        node1_pub: '0270685ca81a8e4d4d01beec5781f4cc924684072ae52c507f8ebe9daf0caaab7b',
        node2_policy: {
          disabled: false,
          fee_base_msat: '1',
          fee_rate_milli_msat: '10',
          min_htlc: '1000',
          time_lock_delta: 6
        },
        node2_pub: '0279914bfe9fad7f80a45e368aa111d412e47fd65ad35323b61c99924208941518'
      }
    ],
    selectedChannel: {},
    currentTab: 1,
    currentPeer: {},
    currentRoute: {},
    fetchingInvoiceAndQueryingRoutes: false,
    pay_req: '',
    payReqRoutes: [],
    selectedPeers: [],
    selectedChannels: []
  },
  error: {
    error: null
  },
  settings: {
    settingsOpen: false,
    activeSubMenu: null
  }
}

@JimmyMow
Copy link
Member Author

@mrfelton from the looks of the data above this is because your channel was in waiting_close_channels with no tx_id. as soon as the closing tx is broadcasted it will be put into pending_closing_channels with the tx_id returned. so this is expected behavior as the funding tx is the best tx we have to link to for the waiting_close_channels.

I do think the UX can be improved by differentiating between waiting_close_channels and pending_closing_channels though. Do you think that is in the scope of this PR? If so I will play with some ideas

@mrfelton
Copy link
Member

I'm not too sure what the difference is between waiting_close_channels and pending_closing_channels (my guess is waiting=not yet broadcast & pending=broadcast but not confirmed?!).

My guess is that most users of the wallet wouldn't know the difference based on that terminology either, so if you can think of a way to visually make it more clear what state the transaction is in without confusing users I think it would be beneficial, although can go in a separate PR.

In regards to my test - the channel has completely disappeared from the channels list now, and I never had a chance to see the link to the closing transaction at all. It must have shown for less than a minute as I was watching pretty closely! So... I'm not quite sure how I can test this. Any suggestions?

@mrfelton
Copy link
Member

mrfelton commented Aug 27, 2018

@jackmallers it seems to me that it's not moving things from waiting_close_channels to pending_close_channels at all. What I'm seeing is this:

  1. Click to close a channel
  2. Within a second or to I get a desktop notification saying a new on-chain transaction has been received
  3. I also see the new transaction in the activity list.
  4. I can click on that that transaction in the activity list and it links to the unconfirmed transaction on the block explorer.
  5. The channels list shows the channel as closing BUT still links to the funding transaction.
  6. In the state I can see that the channel is still in waiting_close_channels - it didn't move to pending_close_channels even though the closing transaction has been broadcast

Copy link
Member

@mrfelton mrfelton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 4eb140d

@mrfelton mrfelton added this to the v0.2.2-beta milestone Aug 30, 2018
@mrfelton
Copy link
Member

There is an issue in lnd where by the grpc stream gets an update with the TX id but it's not returned in the pendingchannels call, so we can't guarantee that we always have this information available. We could try to hack around it but the better thing to do would be to fix it directly in lnd.

I'm going to merge this PR as an initial step towards this improvement. This can be further improved down the line by addressing the underlaying issue with lnd to ensure that we can also get the closing tx when fetching pending channels.

@mrfelton mrfelton merged commit 22451bf into master Aug 30, 2018
@mrfelton mrfelton deleted the fix/closing-channel-link branch August 30, 2018 07:41
@mrfelton mrfelton added type: enhancement New feature or request and removed type: enhancement labels Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants