Skip to content

Commit 469a3af

Browse files
committed
Update demo.cpp to 0.0.109 API
1 parent 1d19255 commit 469a3af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning-c-bindings/demo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ int main() {
555555
LDK::ChannelHandshakeConfig handshake_config2 = ChannelHandshakeConfig_default();
556556
ChannelHandshakeConfig_set_minimum_depth(&handshake_config2, 2);
557557
LDK::UserConfig config2 = UserConfig_default();
558-
UserConfig_set_own_channel_config(&config2, std::move(handshake_config2));
558+
UserConfig_set_channel_handshake_config(&config2, std::move(handshake_config2));
559559

560560
LDK::ChannelManager cm2 = ChannelManager_new(fee_est, mon2, broadcast, logger2, KeysManager_as_KeysInterface(&keys2), std::move(config2), ChainParameters_new(network, BestBlock_new(chain_tip, 0)));
561561

@@ -711,7 +711,7 @@ int main() {
711711
LDK::RouteParameters route_params = RouteParameters_new(PaymentParameters_new(
712712
ChannelManager_get_our_node_id(&cm2), LDKInvoiceFeatures {
713713
.inner = NULL, .is_owned = false
714-
}, Invoice_route_hints(invoice->contents.result), COption_u64Z_none(), 0xffffffff),
714+
}, Invoice_route_hints(invoice->contents.result), COption_u64Z_none(), 0xffffffff, 1),
715715
5000, Invoice_min_final_cltv_expiry(invoice->contents.result));
716716
random_bytes = keys_source1->get_secure_random_bytes(keys_source1->this_arg);
717717

0 commit comments

Comments
 (0)