Skip to content

fix(cln): map getinfo counters - #187

Open
thgO-O wants to merge 1 commit into
btcpayserver:masterfrom
thgO-O:fix/cln-getinfo-counters
Open

fix(cln): map getinfo counters#187
thgO-O wants to merge 1 commit into
btcpayserver:masterfrom
thgO-O:fix/cln-getinfo-counters

Conversation

@thgO-O

@thgO-O thgO-O commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Core Lightning returns its getinfo counters using snake_case names, while the adapter deserializes the response with Newtonsoft.Json’s default resolver.

Because fields such as num_peers did not match NumPeers, they were silently left at 0. This adds explicit JSON mappings for:

  • num_peers
  • num_pending_channels
  • num_active_channels
  • num_inactive_channels

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

Successfully merging this pull request may close these issues.

1 participant