bitcoin-dev-project / bitcoin-dev-project/sim-ln

Feature Request: Introduce Custom Pathfinding in SimNode

Open
#256 11 comments 0 reactions 1 assignee Claimed by @sangbida View on GitHub
feature
Dominant language
Rust
Stars
80
Forks
40
Avg merge
18h 49m
Merged PRs (30d)
2

Description

**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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.