@@ -167,7 +167,7 @@ LDKCResult_NoneChannelMonitorUpdateErrZ update_channel_monitor(const void *this_
167
167
LDKBroadcasterInterface broadcaster = {
168
168
.broadcast_transaction = broadcast_tx,
169
169
};
170
- LDK::CResult_NoneNoneZ res = ChannelMonitor_update_monitor (&mon.second , &update, &broadcaster, & fee_est, arg->logger );
170
+ LDK::CResult_NoneNoneZ res = ChannelMonitor_update_monitor (&mon.second , &update, &broadcaster, fee_est, arg->logger );
171
171
assert (res->result_ok );
172
172
}
173
173
}
@@ -176,12 +176,12 @@ LDKCResult_NoneChannelMonitorUpdateErrZ update_channel_monitor(const void *this_
176
176
mons_updated += 1 ;
177
177
return CResult_NoneChannelMonitorUpdateErrZ_ok ();
178
178
}
179
- LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ monitors_pending_monitor_events (const void *this_arg) {
179
+ LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ monitors_pending_monitor_events (const void *this_arg) {
180
180
NodeMonitors* arg = (NodeMonitors*) this_arg;
181
181
std::unique_lock<std::mutex> l (arg->mut );
182
182
183
183
if (arg->mons .size () == 0 ) {
184
- return LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ {
184
+ return LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ {
185
185
.data = NULL ,
186
186
.datalen = 0 ,
187
187
};
@@ -192,12 +192,13 @@ LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ monitors_pending_monitor_events(con
192
192
LDK::CVec_MonitorEventZ events = ChannelMonitor_get_and_clear_pending_monitor_events (&arg->mons [0 ].second );
193
193
LDK::C2Tuple_OutPointScriptZ funding_info = ChannelMonitor_get_funding_txo (&arg->mons [0 ].second );
194
194
LDK::OutPoint outpoint = std::move (funding_info->a );
195
- LDK::C2Tuple_OutPointCVec_MonitorEventZZ pair = C2Tuple_OutPointCVec_MonitorEventZZ_new (std::move (outpoint), std::move (events));
196
- auto vec = LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ {
197
- .data = (LDKC2Tuple_OutPointCVec_MonitorEventZZ*)malloc (sizeof (LDKC2Tuple_OutPointCVec_MonitorEventZZ)),
195
+ LDKPublicKey counterparty_node_id = ChannelMonitor_get_counterparty_node_id (&arg->mons [0 ].second );
196
+ LDK::C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ tuple = C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new (std::move (outpoint), std::move (events), std::move (counterparty_node_id));
197
+ auto vec = LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ {
198
+ .data = (LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ*)malloc (sizeof (LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ)),
198
199
.datalen = 1 ,
199
200
};
200
- vec.data [0 ] = std::move (pair );
201
+ vec.data [0 ] = std::move (tuple );
201
202
return vec;
202
203
}
203
204
}
@@ -711,7 +712,8 @@ int main() {
711
712
LDK::RouteParameters route_params = RouteParameters_new (PaymentParameters_new (
712
713
ChannelManager_get_our_node_id (&cm2), LDKInvoiceFeatures {
713
714
.inner = NULL , .is_owned = false
714
- }, Invoice_route_hints (invoice->contents .result ), COption_u64Z_none (), 0xffffffff , 1 ),
715
+ }, Invoice_route_hints (invoice->contents .result ), COption_u64Z_none (), 0xffffffff ,
716
+ 1 , 2 , LDKCVec_u64Z { .data = NULL , .datalen = 0 }),
715
717
5000 , Invoice_min_final_cltv_expiry (invoice->contents .result ));
716
718
random_bytes = keys_source1->get_secure_random_bytes (keys_source1->this_arg );
717
719
0 commit comments