Skip to content

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented Jan 23, 2026

When scoring peers, we don't really care about individual channels but rather about the peer itself, who is identified by its node_id. We update payment events to include the node_id of our channel peer, to make it easier to compute statistics about each of our peers.

We also rework the events in PaymentEvents.scala to be more consistent now that we've added support for trampoline, splicing, liquidity ads and on-the-fly funding, which are all the features we had planned that can impact peer scoring.

Note that we don't yet update the schema of the AuditDb, which means that some of the data isn't stored and is currently filled with a dummy value. We will include all updates to the DB schema in a future PR and will fix this.

Reviewers should start with PaymentEvents.scala: the event should now be more consistent and cleaner. Then all changes are only there to ensure that we correctly provide remote_node_ids and correctly create the updated events with the right data.

When scoring peers, we don't really care about individual channels but
rather about the peer itself, who is identified by its `node_id`. We
update payment events to include the `node_id` of our channel peer, to
make it easier to compute statistics about each of our peers.

We also rework the events in `PaymentEvents.scala` to be more consistent
now that we've added support for trampoline, splicing, liquidity ads and
on-the-fly funding, which are all the features we had planned that can
impact peer scoring.

Note that we don't yet update the schema of the `AuditDb`, which means
that some of the data isn't stored and is currently filled with a dummy
value. We will include *all* updates to the DB schema in a future PR and
will fix this.
@t-bast t-bast requested a review from pm47 January 23, 2026 15:06
This removes the confusion that the payment could be incomplete.
@t-bast t-bast merged commit ff7a24c into master Jan 23, 2026
1 check passed
@t-bast t-bast deleted the channel-relay-events-rework branch January 23, 2026 16:33
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.

3 participants