]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Update C++ demo to latest upstream changes
authorMatt Corallo <git@bluematt.me>
Wed, 10 Mar 2021 02:06:04 +0000 (21:06 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 10 Mar 2021 03:32:09 +0000 (22:32 -0500)
lightning-c-bindings/demo.cpp

index 230d0c0c92f762ad7a30a840108f72ab052461b3..c6dc4960ad8322c25bf9ed27321b71e24527ed6a 100644 (file)
@@ -508,7 +508,9 @@ int main() {
                {
                        LDK::LockedNetworkGraph graph_2_locked = NetGraphMsgHandler_read_locked_graph(&net_graph2);
                        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), &outbound_channels, LDKCVec_RouteHintZ {
+                       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 {
                                        .data = NULL, .datalen = 0
                                }, 5000, 10, logger1);
                        assert(route->result_ok);