Skip to content

Commit f659a1c

Browse files
committed
Update bindings demo for changes from lightningdevkit#681 and the Persister trait
1 parent 784581c commit f659a1c

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
@@ -126,7 +126,7 @@ struct NodeMonitors {
126126
void ConnectBlock(const uint8_t (*header)[80], uint32_t height, LDKCVec_C2Tuple_usizeTransactionZZ tx_data, LDKBroadcasterInterface broadcast, LDKFeeEstimator fee_est) {
127127
std::unique_lock<std::mutex> l(mut);
128128
for (auto& mon : mons) {
129-
LDK::CVec_C2Tuple_TxidCVec_TxOutZZZ res = ChannelMonitor_block_connected(&mon.second, &header_2, tx_data, height, broadcast, fee_est, *logger);
129+
LDK::CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ res = ChannelMonitor_block_connected(&mon.second, &header_2, tx_data, height, broadcast, fee_est, *logger);
130130
}
131131
}
132132
};
@@ -159,7 +159,7 @@ LDKCResult_NoneChannelMonitorUpdateErrZ update_channel_monitor(const void *this_
159159
LDKBroadcasterInterface broadcaster = {
160160
.broadcast_transaction = broadcast_tx,
161161
};
162-
LDK::CResult_NoneMonitorUpdateErrorZ res = ChannelMonitor_update_monitor(&mon.second, update, &broadcaster, arg->logger);
162+
LDK::CResult_NoneMonitorUpdateErrorZ res = ChannelMonitor_update_monitor(&mon.second, &update, &broadcaster, arg->logger);
163163
assert(res->result_ok);
164164
}
165165
}

0 commit comments

Comments
 (0)