From: Matt Corallo Date: Wed, 23 Mar 2022 00:54:19 +0000 (+0000) Subject: Switch to using the Prob. Scorer in the C++ demo X-Git-Tag: v0.0.105.2~1^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=commitdiff_plain;h=843e6d5a58f16292bccbd43b02b2dc57ea1f201f Switch to using the Prob. Scorer in the C++ demo --- 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));