lightningj-org/lightningj

Missing field in ListChannels API response

Opened this issue · 0 comments

Subject of the issue
channel>>> peer_alias field returning null data when API is called from Java

Your environment

  • SpringBoot dependency: implementation 'org.lightningj:lightningj:0.17.0-Beta'
  • LnD node : running on v0.17.0

Response from the LND node:
{ "active": false, "remote_pubkey": "021713d5331898c206b57c4f7d40635079de9a97d97782646f31dac18a53f2d979", "channel_point": "359907eb0bafa82b0bb412e970f8d75e11dbbc03071f733c649357c73ae62d00:0", "chan_id": "2835551427611721728", "capacity": "16777060", "local_balance": "958", "remote_balance": "16775158", "commit_fee": "284", "commit_weight": "1116", "fee_per_kw": "253", "unsettled_balance": "0", "total_satoshis_sent": "0", "total_satoshis_received": "958", "num_updates": "6", "pending_htlcs": [], "csv_delay": 2015, "private": false, "initiator": false, "chan_status_flags": "ChanStatusDefault", "local_chan_reserve_sat": "167770", "remote_chan_reserve_sat": "167770", "static_remote_key": false, "commitment_type": "ANCHORS", "lifetime": "40205", "uptime": "0", "close_address": "", "push_amount_sat": "0", "thaw_height": 0, "local_constraints": { "csv_delay": 2015, "chan_reserve_sat": "167770", "dust_limit_sat": "354", "max_pending_amt_msat": "16609290000", "min_htlc_msat": "1", "max_accepted_htlcs": 483 }, "remote_constraints": { "csv_delay": 2015, "chan_reserve_sat": "167770", "dust_limit_sat": "354", "max_pending_amt_msat": "16609290000", "min_htlc_msat": "1", "max_accepted_htlcs": 483 }, "alias_scids": [], "zero_conf": false, "zero_conf_confirmed_scid": "0", "peer_alias": "eNuts Lightning ☇", "peer_scid_alias": "0", "memo": "" }

Response from API using lightningJ library:
{ "active": false, "remotePubkey": "021713d5331898c206b57c4f7d40635079de9a97d97782646f31dac18a53f2d979", "channelPoint": "359907eb0bafa82b0bb412e970f8d75e11dbbc03071f733c649357c73ae62d00:0", "chanId": 2835551427611721728, "capacity": 16777060, "localBalance": 958, "remoteBalance": 16775158, "commitFee": 284, "commitWeight": 1116, "feePerKw": 253, "unsettledBalance": 0, "totalSatoshisSent": 0, "totalSatoshisReceived": 958, "numUpdates": 6, "pendingHtlcs": [ ], "csvDelay": 2015, "private": false, "initiator": false, "chanStatusFlags": "ChanStatusDefault", "localChanReserveSat": 167770, "remoteChanReserveSat": 167770, "staticRemoteKey": false, "commitmentType": "ANCHORS", "lifetime": 40762, "uptime": 0, "closeAddress": "", "pushAmountSat": 0, "thawHeight": 0, "localConstraints": { "csvDelay": 2015, "chanReserveSat": 167770, "dustLimitSat": 354, "maxPendingAmtMsat": 16609290000, "minHtlcMsat": 1, "maxAcceptedHtlcs": 483 }, "remoteConstraints": { "csvDelay": 2015, "chanReserveSat": 167770, "dustLimitSat": 354, "maxPendingAmtMsat": 16609290000, "minHtlcMsat": 1, "maxAcceptedHtlcs": 483 }, "aliasScids": [ ], "zeroConf": false, "zeroConfConfirmedScid": 0, "peerAlias": "", "peerScidAlias": 0, "memo": "" }

@herrvendil @pvendil @theborakompanioni Kindly look into the issue on priority.