From: Matt Corallo Date: Fri, 11 Jun 2021 17:36:26 +0000 (+0000) Subject: Update bindings C++ demo to latest upstream (0.0.98) API X-Git-Tag: v0.0.98^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a2e720e6ebf584e4687b824d3acd1b24c4702634;p=ldk-c-bindings Update bindings C++ demo to latest upstream (0.0.98) API --- diff --git a/lightning-c-bindings/demo.cpp b/lightning-c-bindings/demo.cpp index 1d83b21..b908de5 100644 --- a/lightning-c-bindings/demo.cpp +++ b/lightning-c-bindings/demo.cpp @@ -524,9 +524,8 @@ 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_RouteHintHopZ { - .data = NULL, .datalen = 0 - }, 5000, Invoice_min_final_cltv_expiry(invoice->contents.result), logger1); + }, &outbound_channels, Invoice_route_hints(invoice->contents.result), + 5000, Invoice_min_final_cltv_expiry(invoice->contents.result), logger1); assert(route->result_ok); LDK::CResult_NonePaymentSendFailureZ send_res = ChannelManager_send_payment(&cm1, route->contents.result, payment_hash, Invoice_payment_secret(invoice->contents.result)); assert(send_res->result_ok);