X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=blobdiff_plain;f=lightning-c-bindings%2Fdemo.cpp;h=08bf66edfb72fefb669fc53dc452ef0de269774e;hp=3b0c437392e4b77da6f7490ab15654dc85663064;hb=843e6d5a58f16292bccbd43b02b2dc57ea1f201f;hpb=cab2cade9d05757b5297905aab111cdf29390b68 diff --git a/lightning-c-bindings/demo.cpp b/lightning-c-bindings/demo.cpp index 3b0c437..08bf66e 100644 --- a/lightning-c-bindings/demo.cpp +++ b/lightning-c-bindings/demo.cpp @@ -864,8 +864,8 @@ int main() { .find_route = custom_find_route, .free = NULL, }; - LDK::Scorer scorer = Scorer_default(); - LDK::MultiThreadedLockableScore scorer_mtx = MultiThreadedLockableScore_new(Scorer_as_Score(&scorer)); + LDK::ProbabilisticScorer scorer = ProbabilisticScorer_new(ProbabilisticScoringParameters_default(), &net_graph1); + LDK::MultiThreadedLockableScore scorer_mtx = MultiThreadedLockableScore_new(ProbabilisticScorer_as_Score(&scorer)); EventQueue queue1; LDKEventHandler handler1 = { .this_arg = &queue1, .handle_event = handle_event, .free = NULL }; LDK::InvoicePayer payer = InvoicePayer_new(ChannelManager_as_Payer(&cm1), sending_router, &scorer_mtx, logger1, handler1, RetryAttempts_new(0));