]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Fix C++ demo bindings build due to function signature mismatch
authorMatt Corallo <git@bluematt.me>
Thu, 9 Mar 2023 19:49:19 +0000 (19:49 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 9 Mar 2023 19:49:19 +0000 (19:49 +0000)
lightning-c-bindings/demo.cpp

index 96bccd3c891bb42f45a73007dc0b6cdfd3cb6d94..252bae5e294205e2085df4b6c373db33270165db 100644 (file)
@@ -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]));