From: Matt Corallo Date: Thu, 9 Mar 2023 19:49:19 +0000 (+0000) Subject: Fix C++ demo bindings build due to function signature mismatch X-Git-Tag: v0.0.114.1^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=f266cd740879d4eacc01982db677bde532a6cf06;p=ldk-c-bindings 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]));