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

gRPC getinfo returns our_features=None, yet lightning-cli getinfo returns some features #6635

Closed
sr-gi opened this issue Aug 29, 2023 · 2 comments

Comments

@sr-gi
Copy link
Contributor

sr-gi commented Aug 29, 2023

Issue and Steps to Reproduce

Trying to call getinfo through grpc is returning None for our_features, yet, if called via lightning-cli getinfo for the same node the field contains some data.

getinfo output

{
   "id": "03f5438cd223f194e1a91b8cbde5acc3609ba28f950c230bdae87131e69b02f6b9",
   "alias": "bob",
   "color": "03f543",
   "num_peers": 3,
   "num_pending_channels": 0,
   "num_active_channels": 2,
   "num_inactive_channels": 1,
   "address": [],
   "binding": [
      {
         "type": "ipv4",
         "address": "172.19.0.3",
         "port": 19846
      }
   ],
   "version": "v0.12.0",
   "blockheight": 1021,
   "network": "regtest",
   "msatoshi_fees_collected": 0,
   "fees_collected_msat": "0msat",
   "lightning-dir": "/home/clightning/.lightning/regtest",
   "our_features": {
      "init": "08a000080269a2",
      "node": "88a000080269a2",
      "channel": "",
      "invoice": "02000000024100"
   }
}
@sr-gi
Copy link
Contributor Author

sr-gi commented Oct 16, 2023

For more context, here are the return of both side by side:

> lightning-cli getinfo
{
   "id": "031756dff8da2ce1e449f2b0095cdbff8b34351fea557e40e67acc8e1cb7eb5374",
   "alias": "WRONGMONKEY-v0.12.1",
   "color": "031756",
   "num_peers": 1,
   "num_pending_channels": 0,
   "num_active_channels": 1,
   "num_inactive_channels": 0,
   "address": [],
   "binding": [
      {
         "type": "ipv6",
         "address": "::",
         "port": 19846
      }
   ],
   "version": "v0.12.1",
   "blockheight": 0,
   "network": "regtest",
   "msatoshi_fees_collected": 0,
   "fees_collected_msat": "0msat",
   "lightning-dir": "/Users/sergi/.lightning/regtest",
   "warning_bitcoind_sync": "Bitcoind is not up-to-date with network.",
   "our_features": {
      "init": "08a000080269a2",
      "node": "88a000080269a2",
      "channel": "",
      "invoice": "02000000024100"
   }
}
GetinfoResponse 
{ 
    id: [3, 23, 86, 223, 248, 218, 44, 225, 228, 73, 242, 176, 9, 92, 219, 255, 139, 52, 53, 31, 234, 85, 126, 64, 230, 122, 204, 142, 28, 183, 235, 83, 116], 
    alias: Some("WRONGMONKEY-v0.12.1"), 
    color: [3, 23, 86], 
    num_peers: 1, 
    num_pending_channels: 0, 
    num_active_channels: 1, 
    num_inactive_channels: 0, 
    version: "v0.12.1", 
    lightning_dir: "/Users/sergi/.lightning/regtest", 
    our_features: None, 
    blockheight: 0,
    network: "regtest", 
    fees_collected_msat: Some(Amount { msat: 0 }), 
    address: [], 
    binding: [
        GetinfoBinding { item_type: Ipv6, address: Some("::"), port: Some(19846), socket: None }
    ], 
    warning_bitcoind_sync: Some("Bitcoind is not up-to-date with network."), 
    warning_lightningd_sync: None 
}

@sr-gi
Copy link
Contributor Author

sr-gi commented Oct 16, 2023

Looks like this was an issue with the testing instance and not with the current version of cln-grpc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant