@@ -2563,6 +2563,13 @@ struct PendingFunding {
2563
2563
received_funding_txid: Option<Txid>,
2564
2564
}
2565
2565
2566
+ impl_writeable_tlv_based!(PendingFunding, {
2567
+ (1, funding_negotiation, upgradable_option),
2568
+ (3, negotiated_candidates, required_vec),
2569
+ (5, sent_funding_txid, option),
2570
+ (7, received_funding_txid, option),
2571
+ });
2572
+
2566
2573
enum FundingNegotiation {
2567
2574
AwaitingAck {
2568
2575
context: FundingNegotiationContext,
@@ -2576,6 +2583,13 @@ enum FundingNegotiation {
2576
2583
},
2577
2584
}
2578
2585
2586
+ impl_writeable_tlv_based_enum_upgradable!(FundingNegotiation,
2587
+ (0, AwaitingSignatures) => {
2588
+ (1, funding, required),
2589
+ },
2590
+ unread_variants: AwaitingAck, ConstructingTransaction
2591
+ );
2592
+
2579
2593
impl FundingNegotiation {
2580
2594
fn as_funding(&self) -> Option<&FundingScope> {
2581
2595
match self {
@@ -14294,6 +14308,7 @@ where
14294
14308
(60, self.context.historical_scids, optional_vec), // Added in 0.2
14295
14309
(61, fulfill_attribution_data, optional_vec), // Added in 0.2
14296
14310
(63, holder_commitment_point_current, option), // Added in 0.2
14311
+ (64, self.pending_splice, option), // Added in 0.2
14297
14312
(65, self.quiescent_action, option), // Added in 0.2
14298
14313
});
14299
14314
@@ -14655,6 +14670,7 @@ where
14655
14670
14656
14671
let mut minimum_depth_override: Option<u32> = None;
14657
14672
14673
+ let mut pending_splice: Option<PendingFunding> = None;
14658
14674
let mut quiescent_action = None;
14659
14675
14660
14676
read_tlv_fields!(reader, {
@@ -14699,6 +14715,7 @@ where
14699
14715
(60, historical_scids, optional_vec), // Added in 0.2
14700
14716
(61, fulfill_attribution_data, optional_vec), // Added in 0.2
14701
14717
(63, holder_commitment_point_current_opt, option), // Added in 0.2
14718
+ (64, pending_splice, option), // Added in 0.2
14702
14719
(65, quiescent_action, upgradable_option), // Added in 0.2
14703
14720
});
14704
14721
@@ -15059,7 +15076,7 @@ where
15059
15076
},
15060
15077
interactive_tx_signing_session,
15061
15078
holder_commitment_point,
15062
- pending_splice: None ,
15079
+ pending_splice,
15063
15080
quiescent_action,
15064
15081
})
15065
15082
}
0 commit comments