Skip to content

Commit 32b0c06

Browse files
committed
Update to use find_route_with_id to match upstream changes
1 parent db5b769 commit 32b0c06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning-c-bindings/demo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ int main() {
553553
LDKRouter panic_router = {
554554
.this_arg = NULL,
555555
.find_route = NULL, // Segfault if we ever try to find a route
556+
.find_route_with_id = NULL, // Segfault if we ever try to find a route
556557
.free = NULL,
557558
};
558559

@@ -898,7 +899,8 @@ int main() {
898899
const LDK::DefaultRouter default_router_1 = DefaultRouter_new(&net_graph1, logger1, entropy_source1.get_secure_random_bytes(), std::move(scorer_mtx_trait1));
899900
LDKRouter router1 = {
900901
.this_arg = (void*)&default_router_1,
901-
.find_route = custom_find_route,
902+
.find_route = NULL, // LDK currently doesn't use this, its just a default-impl
903+
.find_route_with_id = custom_find_route,
902904
.free = NULL,
903905
};
904906

0 commit comments

Comments
 (0)