Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the feature support in the channels info #38

Open
vincenzopalazzo opened this issue Sep 7, 2021 · 0 comments
Open

Adding the feature support in the channels info #38

vincenzopalazzo opened this issue Sep 7, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request format_change Require a change in a JSON format of the payload metric_one Refering to the metric_one of the ln-metrics-rfc

Comments

@vincenzopalazzo
Copy link
Member

With the listeners we can have information about all the node, and this mean that we could use better the listpers and void stupid pinging around the code.

A json example can be

  {
         "id": "0242a4ae0c5bef18048fbecf995094b74bfb0f7391418d71ed394784373f41e4f3",
         "connected": true,
         "netaddr": [
            "3.124.63.44:9735"
         ],
         "features": "0252a1",
         "channels": [
            {
               "state": "CHANNELD_NORMAL",
               "scratch_txid": "eb5d7ba111d58a7296e83a873e743ec9e9d105b02d9f370490fa0a0862f0411a",
               "last_tx_fee_msat": "184000msat",
               "feerate": {
                  "perkw": 253,
                  "perkb": 1012
               },
               "owner": "channeld",
               "short_channel_id": "697850x2450x0",
               "direction": 1,
               "channel_id": "903a0a085bb5e0d94f64517d21cdcc5564cbde882e38d62c5af88dfb8eedeb6b",
               "funding_txid": "6bebed8efb8df85a2cd6382e88decb6455cccd217d51644fd9e0b55b080a3a90",
               "close_to_addr": "bc1qgmt7mrjpeqrn4f67chfyxtsvgtsxrpjeh7f326",
               "close_to": "001446d7ed8e41c8073aa75ec5d2432e0c42e0618659",
               "private": false,
               "opener": "local",
               "features": [
                  "option_static_remotekey"
               ],
               "funding": {
                  "local_msat": "234857000msat",
                  "remote_msat": "0msat"
               },
               "msatoshi_to_us": 184849898,
               "to_us_msat": "184849898msat",
               "msatoshi_to_us_min": 184849898,
               "min_to_us_msat": "184849898msat",
               "msatoshi_to_us_max": 234857000,
               "max_to_us_msat": "234857000msat",
               "msatoshi_total": 234857000,
               "total_msat": "234857000msat",
               "fee_base_msat": "0msat",
               "fee_proportional_millionths": 2000,
               "dust_limit_satoshis": 546,
               "dust_limit_msat": "546000msat",
               "max_htlc_value_in_flight_msat": 18446744073709551615,
               "max_total_htlc_in_msat": "18446744073709551615msat",
               "their_channel_reserve_satoshis": 2348,
               "their_reserve_msat": "2348000msat",
               "our_channel_reserve_satoshis": 2348,
               "our_reserve_msat": "2348000msat",
               "spendable_msatoshi": 181961898,
               "spendable_msat": "181961898msat",
               "receivable_msatoshi": 47659102,
               "receivable_msat": "47659102msat",
               "htlc_minimum_msat": 0,
               "minimum_htlc_in_msat": "0msat",
               "their_to_self_delay": 144,
               "our_to_self_delay": 144,
               "max_accepted_htlcs": 30,
               "state_changes": [
                  {
                     "timestamp": "2021-08-27T16:15:58.497Z",
                     "old_state": "CHANNELD_AWAITING_LOCKIN",
                     "new_state": "CHANNELD_NORMAL",
                     "cause": "user",
                     "message": "Lockin complete"
                  }
               ],
               "status": [
                  "CHANNELD_NORMAL:Reconnected, and reestablished.",
                  "CHANNELD_NORMAL:Funding transaction locked. Channel announced."
               ],
               "in_payments_offered": 0,
               "in_msatoshi_offered": 0,
               "in_offered_msat": "0msat",
               "in_payments_fulfilled": 0,
               "in_msatoshi_fulfilled": 0,
               "in_fulfilled_msat": "0msat",
               "out_payments_offered": 1,
               "out_msatoshi_offered": 50007102,
               "out_offered_msat": "50007102msat",
               "out_payments_fulfilled": 1,
               "out_msatoshi_fulfilled": 50007102,
               "out_fulfilled_msat": "50007102msat",
               "htlcs": []
            }
         ]
      },
@vincenzopalazzo vincenzopalazzo added enhancement New feature or request format_change Require a change in a JSON format of the payload metric_one Refering to the metric_one of the ln-metrics-rfc labels Sep 7, 2021
@vincenzopalazzo vincenzopalazzo added this to the v0.0.4 milestone Oct 19, 2021
@vincenzopalazzo vincenzopalazzo self-assigned this Oct 19, 2021
@vincenzopalazzo vincenzopalazzo removed this from the v0.0.4 milestone Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request format_change Require a change in a JSON format of the payload metric_one Refering to the metric_one of the ln-metrics-rfc
Projects
Status: No status
Development

No branches or pull requests

1 participant