@@ -420,19 +420,19 @@ int main() {
420
420
}
421
421
422
422
LDKCVec_C2Tuple_usizeTransactionZZ txdata { .data = (LDKC2TupleTempl_usize__Transaction*)malloc (sizeof (LDKC2Tuple_usizeTransactionZ)), .datalen = 1 };
423
- *txdata.data = C2Tuple_usizeTransactionZ_new (0 , LDKTransaction { .data = channel_open_tx, .datalen = sizeof (channel_open_tx), .data_is_owned = false });
423
+ *txdata.data = C2Tuple_usizeTransactionZ_new (0 , LDKTransaction { .data = ( uint8_t *) channel_open_tx, .datalen = sizeof (channel_open_tx), .data_is_owned = false });
424
424
ChannelManager_block_connected (&cm1, &channel_open_header, txdata, 1 );
425
425
426
426
txdata = LDKCVec_C2Tuple_usizeTransactionZZ { .data = (LDKC2TupleTempl_usize__Transaction*)malloc (sizeof (LDKC2Tuple_usizeTransactionZ)), .datalen = 1 };
427
- *txdata.data = C2Tuple_usizeTransactionZ_new (0 , LDKTransaction { .data = channel_open_tx, .datalen = sizeof (channel_open_tx), .data_is_owned = false });
427
+ *txdata.data = C2Tuple_usizeTransactionZ_new (0 , LDKTransaction { .data = ( uint8_t *) channel_open_tx, .datalen = sizeof (channel_open_tx), .data_is_owned = false });
428
428
ChannelManager_block_connected (&cm2, &channel_open_header, txdata, 1 );
429
429
430
430
txdata = LDKCVec_C2Tuple_usizeTransactionZZ { .data = (LDKC2TupleTempl_usize__Transaction*)malloc (sizeof (LDKC2Tuple_usizeTransactionZ)), .datalen = 1 };
431
- *txdata.data = C2Tuple_usizeTransactionZ_new (0 , LDKTransaction { .data = channel_open_tx, .datalen = sizeof (channel_open_tx), .data_is_owned = false });
431
+ *txdata.data = C2Tuple_usizeTransactionZ_new (0 , LDKTransaction { .data = ( uint8_t *) channel_open_tx, .datalen = sizeof (channel_open_tx), .data_is_owned = false });
432
432
mons1.ConnectBlock (&channel_open_header, 1 , txdata, broadcast, fee_est);
433
433
434
434
txdata = LDKCVec_C2Tuple_usizeTransactionZZ { .data = (LDKC2TupleTempl_usize__Transaction*)malloc (sizeof (LDKC2Tuple_usizeTransactionZ)), .datalen = 1 };
435
- *txdata.data = C2Tuple_usizeTransactionZ_new (0 , LDKTransaction { .data = channel_open_tx, .datalen = sizeof (channel_open_tx), .data_is_owned = false });
435
+ *txdata.data = C2Tuple_usizeTransactionZ_new (0 , LDKTransaction { .data = ( uint8_t *) channel_open_tx, .datalen = sizeof (channel_open_tx), .data_is_owned = false });
436
436
mons2.ConnectBlock (&channel_open_header, 1 , txdata, broadcast, fee_est);
437
437
438
438
ChannelManager_block_connected (&cm1, &header_1, LDKCVec_C2Tuple_usizeTransactionZZ { .data = NULL , .datalen = 0 }, 2 );
0 commit comments