Skip to content

Conversation

Lagrang3
Copy link
Collaborator

@Lagrang3 Lagrang3 commented Oct 15, 2025

Several changes to askrene, mainly to introduce penalties (biases) on nodes and channels that
can be used across payments.
It addresses issue #8600.

  • add timestamps to channel biases,
    - [ ] add expiration on biases,
    - [ ] add expiration on knowledge data,
  • add node biases,
  • penalize nodes on xpay that have failing channels,
  • tests,

We add two more fields to biases: "timestamp" and "expires".
When a bias is specified we save the timestamp and if expires is
specified then we attach an automatic expiration to it.

With the timestamp variable old biases can be removed with the
askrene-age command, while "expires" can be used to automatically
remove the data at some point in the future.

FIXME: we need to implement the actual decay mechanism for knowledge
with expiration time.

Changelog-None

Signed-off-by: Lagrang3 <[email protected]>
Changelog-None

Signed-off-by: Lagrang3 <[email protected]>
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