projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1d19255
)
Update demo.cpp to 0.0.109 API
author
Matt Corallo
<git@bluematt.me>
Fri, 1 Jul 2022 20:28:48 +0000
(20:28 +0000)
committer
Matt Corallo
<git@bluematt.me>
Fri, 1 Jul 2022 20:28:48 +0000
(20:28 +0000)
lightning-c-bindings/demo.cpp
patch
|
blob
|
history
diff --git
a/lightning-c-bindings/demo.cpp
b/lightning-c-bindings/demo.cpp
index 5b9b7137cb4ef7e32999837e055bbb5528afbd63..e1e1b6080ddd8c817775bc2a786f46bc430688de 100644
(file)
--- a/
lightning-c-bindings/demo.cpp
+++ b/
lightning-c-bindings/demo.cpp
@@
-555,7
+555,7
@@
int main() {
LDK::ChannelHandshakeConfig handshake_config2 = ChannelHandshakeConfig_default();
ChannelHandshakeConfig_set_minimum_depth(&handshake_config2, 2);
LDK::UserConfig config2 = UserConfig_default();
LDK::ChannelHandshakeConfig handshake_config2 = ChannelHandshakeConfig_default();
ChannelHandshakeConfig_set_minimum_depth(&handshake_config2, 2);
LDK::UserConfig config2 = UserConfig_default();
- UserConfig_set_
own_channel
_config(&config2, std::move(handshake_config2));
+ UserConfig_set_
channel_handshake
_config(&config2, std::move(handshake_config2));
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)));
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)));
@@
-711,7
+711,7
@@
int main() {
LDK::RouteParameters route_params = RouteParameters_new(PaymentParameters_new(
ChannelManager_get_our_node_id(&cm2), LDKInvoiceFeatures {
.inner = NULL, .is_owned = false
LDK::RouteParameters route_params = RouteParameters_new(PaymentParameters_new(
ChannelManager_get_our_node_id(&cm2), LDKInvoiceFeatures {
.inner = NULL, .is_owned = false
- }, Invoice_route_hints(invoice->contents.result), COption_u64Z_none(), 0xffffffff),
+ }, Invoice_route_hints(invoice->contents.result), COption_u64Z_none(), 0xffffffff
, 1
),
5000, Invoice_min_final_cltv_expiry(invoice->contents.result));
random_bytes = keys_source1->get_secure_random_bytes(keys_source1->this_arg);
5000, Invoice_min_final_cltv_expiry(invoice->contents.result));
random_bytes = keys_source1->get_secure_random_bytes(keys_source1->this_arg);