]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Update C++ bindings demo to new upstream API
authorMatt Corallo <git@bluematt.me>
Wed, 21 Apr 2021 22:31:54 +0000 (22:31 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 21 Apr 2021 22:31:54 +0000 (22:31 +0000)
lightning-c-bindings/demo.cpp

index e0827f6c726cb04ffa2fe3d04ae83e9c39835792..cee3054f4a90555a2ec7aba50e221fb5961df3bc 100644 (file)
@@ -510,7 +510,7 @@ int main() {
                        LDK::NetworkGraph graph_2_ref = LockedNetworkGraph_graph(&graph_2_locked);
                        LDK::CResult_RouteLightningErrorZ route = get_route(ChannelManager_get_our_node_id(&cm1), &graph_2_ref, ChannelManager_get_our_node_id(&cm2), LDKInvoiceFeatures {
                                        .inner = NULL, .is_owned = false
-                               }, &outbound_channels, LDKCVec_RouteHintZ {
+                               }, &outbound_channels, LDKCVec_RouteHintHopZ {
                                        .data = NULL, .datalen = 0
                                }, 5000, 10, logger1);
                        assert(route->result_ok);