@@ -262,7 +262,7 @@ impl_writeable_tlv_based!(HolderSignedTx, {
262
262
( 8 , delayed_payment_key, required) ,
263
263
( 10 , per_commitment_point, required) ,
264
264
( 12 , feerate_per_kw, required) ,
265
- ( 14 , htlc_outputs, vec_type )
265
+ ( 14 , htlc_outputs, required_vec )
266
266
} ) ;
267
267
268
268
impl HolderSignedTx {
@@ -538,15 +538,15 @@ impl ChannelMonitorUpdateStep {
538
538
impl_writeable_tlv_based_enum_upgradable ! ( ChannelMonitorUpdateStep ,
539
539
( 0 , LatestHolderCommitmentTXInfo ) => {
540
540
( 0 , commitment_tx, required) ,
541
- ( 1 , claimed_htlcs, vec_type ) ,
542
- ( 2 , htlc_outputs, vec_type ) ,
541
+ ( 1 , claimed_htlcs, optional_vec ) ,
542
+ ( 2 , htlc_outputs, required_vec ) ,
543
543
( 4 , nondust_htlc_sources, optional_vec) ,
544
544
} ,
545
545
( 1 , LatestCounterpartyCommitmentTXInfo ) => {
546
546
( 0 , commitment_txid, required) ,
547
547
( 2 , commitment_number, required) ,
548
548
( 4 , their_per_commitment_point, required) ,
549
- ( 6 , htlc_outputs, vec_type ) ,
549
+ ( 6 , htlc_outputs, required_vec ) ,
550
550
} ,
551
551
( 2 , PaymentPreimage ) => {
552
552
( 0 , payment_preimage, required) ,
@@ -1075,12 +1075,12 @@ impl<Signer: WriteableEcdsaChannelSigner> Writeable for ChannelMonitorImpl<Signe
1075
1075
1076
1076
write_tlv_fields ! ( writer, {
1077
1077
( 1 , self . funding_spend_confirmed, option) ,
1078
- ( 3 , self . htlcs_resolved_on_chain, vec_type ) ,
1079
- ( 5 , self . pending_monitor_events, vec_type ) ,
1078
+ ( 3 , self . htlcs_resolved_on_chain, required_vec ) ,
1079
+ ( 5 , self . pending_monitor_events, required_vec ) ,
1080
1080
( 7 , self . funding_spend_seen, required) ,
1081
1081
( 9 , self . counterparty_node_id, option) ,
1082
1082
( 11 , self . confirmed_commitment_tx_counterparty_output, option) ,
1083
- ( 13 , self . spendable_txids_confirmed, vec_type ) ,
1083
+ ( 13 , self . spendable_txids_confirmed, required_vec ) ,
1084
1084
( 15 , self . counterparty_fulfilled_htlcs, required) ,
1085
1085
} ) ;
1086
1086
@@ -4051,12 +4051,12 @@ impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP
4051
4051
let mut counterparty_fulfilled_htlcs = Some ( HashMap :: new ( ) ) ;
4052
4052
read_tlv_fields ! ( reader, {
4053
4053
( 1 , funding_spend_confirmed, option) ,
4054
- ( 3 , htlcs_resolved_on_chain, vec_type ) ,
4055
- ( 5 , pending_monitor_events, vec_type ) ,
4054
+ ( 3 , htlcs_resolved_on_chain, optional_vec ) ,
4055
+ ( 5 , pending_monitor_events, optional_vec ) ,
4056
4056
( 7 , funding_spend_seen, option) ,
4057
4057
( 9 , counterparty_node_id, option) ,
4058
4058
( 11 , confirmed_commitment_tx_counterparty_output, option) ,
4059
- ( 13 , spendable_txids_confirmed, vec_type ) ,
4059
+ ( 13 , spendable_txids_confirmed, optional_vec ) ,
4060
4060
( 15 , counterparty_fulfilled_htlcs, option) ,
4061
4061
} ) ;
4062
4062
0 commit comments