Feature Request: Introduce Custom Pathfinding in SimNode

Aperta
#256 11 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@sangbida ci sta già lavorando.

Dal 9/5/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

feature

Describe desired feature

Right now sim-node simply uses LDK's default pathfinding to find routes for payments that are dispatched in the mocked network.

To vastly expand the use of sim-ln as a library for pathfinding-related use cases, we should provide a way for calling code to provide custom routes instead.

This could be implemented a few ways:

  1. Add an interceptor similar to #255 that sends proposed route and gets back modified one
  2. Provide custom pathfinding in on creation of mocked nodes

Part of this issue will be to spend some time figuring out the best way to implement this.

Use case for feature

This opens up a lot of doors for A/B testing different pathfinding strategies.

Would you like to contribute code for this feature?

I'll review design proposal + code, unlikely to have time to do the code myself!

Lingua principale
Rust
Stelle
80
Fork
44
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bitcoin-dev-project/sim-ln

Tutte le issue di bitcoin-dev-project/sim-ln

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.