projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
17cbe5d
)
Fix C++ demo bindings build due to function signature mismatch
author
Matt Corallo
<git@bluematt.me>
Thu, 9 Mar 2023 19:49:19 +0000
(19:49 +0000)
committer
Matt Corallo
<git@bluematt.me>
Thu, 9 Mar 2023 19:49:19 +0000
(19:49 +0000)
lightning-c-bindings/demo.cpp
patch
|
blob
|
history
diff --git
a/lightning-c-bindings/demo.cpp
b/lightning-c-bindings/demo.cpp
index 96bccd3c891bb42f45a73007dc0b6cdfd3cb6d94..252bae5e294205e2085df4b6c373db33270165db 100644
(file)
--- 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;
}
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]));
const LDK::DefaultRouter *router = (LDK::DefaultRouter *)this_arg;
assert(first_hops->datalen == 1);
assert(ChannelDetails_get_is_usable(&first_hops->data[0]));