@@ -262,7 +262,7 @@ impl_writeable_tlv_based!(HolderSignedTx, {
262262 ( 8 , delayed_payment_key, required) ,
263263 ( 10 , per_commitment_point, required) ,
264264 ( 12 , feerate_per_kw, required) ,
265- ( 14 , htlc_outputs, vec_type )
265+ ( 14 , htlc_outputs, required_vec )
266266} ) ;
267267
268268impl HolderSignedTx {
@@ -538,15 +538,15 @@ impl ChannelMonitorUpdateStep {
538538impl_writeable_tlv_based_enum_upgradable ! ( ChannelMonitorUpdateStep ,
539539 ( 0 , LatestHolderCommitmentTXInfo ) => {
540540 ( 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 ) ,
543543 ( 4 , nondust_htlc_sources, optional_vec) ,
544544 } ,
545545 ( 1 , LatestCounterpartyCommitmentTXInfo ) => {
546546 ( 0 , commitment_txid, required) ,
547547 ( 2 , commitment_number, required) ,
548548 ( 4 , their_per_commitment_point, required) ,
549- ( 6 , htlc_outputs, vec_type ) ,
549+ ( 6 , htlc_outputs, required_vec ) ,
550550 } ,
551551 ( 2 , PaymentPreimage ) => {
552552 ( 0 , payment_preimage, required) ,
@@ -1075,12 +1075,12 @@ impl<Signer: WriteableEcdsaChannelSigner> Writeable for ChannelMonitorImpl<Signe
10751075
10761076 write_tlv_fields ! ( writer, {
10771077 ( 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 ) ,
10801080 ( 7 , self . funding_spend_seen, required) ,
10811081 ( 9 , self . counterparty_node_id, option) ,
10821082 ( 11 , self . confirmed_commitment_tx_counterparty_output, option) ,
1083- ( 13 , self . spendable_txids_confirmed, vec_type ) ,
1083+ ( 13 , self . spendable_txids_confirmed, required_vec ) ,
10841084 ( 15 , self . counterparty_fulfilled_htlcs, required) ,
10851085 } ) ;
10861086
@@ -4051,12 +4051,12 @@ impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP
40514051 let mut counterparty_fulfilled_htlcs = Some ( HashMap :: new ( ) ) ;
40524052 read_tlv_fields ! ( reader, {
40534053 ( 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 ) ,
40564056 ( 7 , funding_spend_seen, option) ,
40574057 ( 9 , counterparty_node_id, option) ,
40584058 ( 11 , confirmed_commitment_tx_counterparty_output, option) ,
4059- ( 13 , spendable_txids_confirmed, vec_type ) ,
4059+ ( 13 , spendable_txids_confirmed, optional_vec ) ,
40604060 ( 15 , counterparty_fulfilled_htlcs, option) ,
40614061 } ) ;
40624062
0 commit comments