You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add HTLC forward counters for client channel monitoring (#17)
Count success/failure for HTLC forwards that touch private (client)
channels. Public-to-public forwards are ignored.
Counters are plain AtomicU64s so ldk-node doesn't pull in prometheus.
The app layer reads snapshots via Node::forward_counters() and maps
them to whatever it wants.
Each forward is classified by direction (to_client vs from_client)
and outcome (success, downstream failure, local failure). A separate
counter tracks UnknownNextHop/InvalidForward hits, which point at
SCID alias tracking bugs.
Channel lookup uses is_announced on both sides. If a channel is gone
by the time the event fires, we assume private. Safe default for
an LSP.
0 commit comments