From: Matt Corallo <649246+TheBlueMatt@users.noreply.github.com> Date: Thu, 9 Mar 2023 19:50:04 +0000 (+0000) Subject: Merge pull request #102 from TheBlueMatt/main X-Git-Tag: v0.0.114.1^0 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=5905577f2a354003f5ed9423b6824db27a2bdf4b;hp=17cbe5d4f3b35f5f04b5c3e1e39c73d794249937;p=ldk-c-bindings Merge pull request #102 from TheBlueMatt/main Fix C++ demo bindings build due to function signature mismatch --- diff --git a/lightning-c-bindings/demo.cpp b/lightning-c-bindings/demo.cpp index 96bccd3..252bae5 100644 --- a/lightning-c-bindings/demo.cpp +++ b/lightning-c-bindings/demo.cpp @@ -482,7 +482,7 @@ uint64_t get_chan_score(const void *this_arg, uint64_t scid, const LDKNodeId *sr return 42; } -struct LDKCResult_RouteLightningErrorZ custom_find_route(const void *this_arg, struct LDKPublicKey payer, const struct LDKRouteParameters *NONNULL_PTR route_params, struct LDKCVec_ChannelDetailsZ *first_hops, const struct LDKInFlightHtlcs *in_flights) { +struct LDKCResult_RouteLightningErrorZ custom_find_route(const void *this_arg, struct LDKPublicKey payer, const struct LDKRouteParameters *NONNULL_PTR route_params, struct LDKCVec_ChannelDetailsZ *first_hops, const struct LDKInFlightHtlcs *in_flights, LDKThirtyTwoBytes payment_id, LDKThirtyTwoBytes payment_hash) { const LDK::DefaultRouter *router = (LDK::DefaultRouter *)this_arg; assert(first_hops->datalen == 1); assert(ChannelDetails_get_is_usable(&first_hops->data[0]));