@@ -2431,7 +2431,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2431
2431
let commitment_package = PackageTemplate :: build_package (
2432
2432
self . funding_info . 0 . txid . clone ( ) , self . funding_info . 0 . index as u32 ,
2433
2433
PackageSolvingData :: HolderFundingOutput ( funding_output) ,
2434
- best_block_height, false , best_block_height,
2434
+ best_block_height, best_block_height
2435
2435
) ;
2436
2436
self . onchain_tx_handler . update_claims_view_from_requests (
2437
2437
vec ! [ commitment_package] , best_block_height, best_block_height,
@@ -2614,8 +2614,8 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2614
2614
// First, process non-htlc outputs (to_holder & to_counterparty)
2615
2615
for ( idx, outp) in tx. output . iter ( ) . enumerate ( ) {
2616
2616
if outp. script_pubkey == revokeable_p2wsh {
2617
- let revk_outp = RevokedOutput :: build ( per_commitment_point, self . counterparty_commitment_params . counterparty_delayed_payment_base_key , self . counterparty_commitment_params . counterparty_htlc_base_key , per_commitment_key, outp. value , self . counterparty_commitment_params . on_counterparty_tx_csv ) ;
2618
- let justice_package = PackageTemplate :: build_package ( commitment_txid, idx as u32 , PackageSolvingData :: RevokedOutput ( revk_outp) , height + self . counterparty_commitment_params . on_counterparty_tx_csv as u32 , true , height) ;
2617
+ let revk_outp = RevokedOutput :: build ( per_commitment_point, self . counterparty_commitment_params . counterparty_delayed_payment_base_key , self . counterparty_commitment_params . counterparty_htlc_base_key , per_commitment_key, outp. value , self . counterparty_commitment_params . on_counterparty_tx_csv , self . onchain_tx_handler . opt_anchors ( ) ) ;
2618
+ let justice_package = PackageTemplate :: build_package ( commitment_txid, idx as u32 , PackageSolvingData :: RevokedOutput ( revk_outp) , height + self . counterparty_commitment_params . on_counterparty_tx_csv as u32 , height) ;
2619
2619
claimable_outpoints. push ( justice_package) ;
2620
2620
to_counterparty_output_info =
2621
2621
Some ( ( idx. try_into ( ) . expect ( "Txn can't have more than 2^32 outputs" ) , outp. value ) ) ;
@@ -2633,7 +2633,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2633
2633
to_counterparty_output_info) ;
2634
2634
}
2635
2635
let revk_htlc_outp = RevokedHTLCOutput :: build ( per_commitment_point, self . counterparty_commitment_params . counterparty_delayed_payment_base_key , self . counterparty_commitment_params . counterparty_htlc_base_key , per_commitment_key, htlc. amount_msat / 1000 , htlc. clone ( ) , self . onchain_tx_handler . channel_transaction_parameters . opt_anchors . is_some ( ) ) ;
2636
- let justice_package = PackageTemplate :: build_package ( commitment_txid, transaction_output_index, PackageSolvingData :: RevokedHTLCOutput ( revk_htlc_outp) , htlc. cltv_expiry , true , height) ;
2636
+ let justice_package = PackageTemplate :: build_package ( commitment_txid, transaction_output_index, PackageSolvingData :: RevokedHTLCOutput ( revk_htlc_outp) , htlc. cltv_expiry , height) ;
2637
2637
claimable_outpoints. push ( justice_package) ;
2638
2638
}
2639
2639
}
@@ -2758,8 +2758,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2758
2758
self . counterparty_commitment_params . counterparty_htlc_base_key ,
2759
2759
htlc. clone ( ) , self . onchain_tx_handler . opt_anchors ( ) ) )
2760
2760
} ;
2761
- let aggregation = if !htlc. offered { false } else { true } ;
2762
- let counterparty_package = PackageTemplate :: build_package ( commitment_txid, transaction_output_index, counterparty_htlc_outp, htlc. cltv_expiry , aggregation, 0 ) ;
2761
+ let counterparty_package = PackageTemplate :: build_package ( commitment_txid, transaction_output_index, counterparty_htlc_outp, htlc. cltv_expiry , 0 ) ;
2763
2762
claimable_outpoints. push ( counterparty_package) ;
2764
2763
}
2765
2764
}
@@ -2798,11 +2797,12 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2798
2797
let revk_outp = RevokedOutput :: build (
2799
2798
per_commitment_point, self . counterparty_commitment_params . counterparty_delayed_payment_base_key ,
2800
2799
self . counterparty_commitment_params . counterparty_htlc_base_key , per_commitment_key,
2801
- tx. output [ idx] . value , self . counterparty_commitment_params . on_counterparty_tx_csv
2800
+ tx. output [ idx] . value , self . counterparty_commitment_params . on_counterparty_tx_csv ,
2801
+ false
2802
2802
) ;
2803
2803
let justice_package = PackageTemplate :: build_package (
2804
2804
htlc_txid, idx as u32 , PackageSolvingData :: RevokedOutput ( revk_outp) ,
2805
- height + self . counterparty_commitment_params . on_counterparty_tx_csv as u32 , true , height
2805
+ height + self . counterparty_commitment_params . on_counterparty_tx_csv as u32 , height
2806
2806
) ;
2807
2807
claimable_outpoints. push ( justice_package) ;
2808
2808
if outputs_to_watch. is_none ( ) {
@@ -2825,11 +2825,11 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2825
2825
2826
2826
for & ( ref htlc, _, _) in holder_tx. htlc_outputs . iter ( ) {
2827
2827
if let Some ( transaction_output_index) = htlc. transaction_output_index {
2828
- let ( htlc_output, aggregable ) = if htlc. offered {
2828
+ let htlc_output = if htlc. offered {
2829
2829
let htlc_output = HolderHTLCOutput :: build_offered (
2830
2830
htlc. amount_msat , htlc. cltv_expiry , self . onchain_tx_handler . opt_anchors ( )
2831
2831
) ;
2832
- ( htlc_output, false )
2832
+ htlc_output
2833
2833
} else {
2834
2834
let payment_preimage = if let Some ( preimage) = self . payment_preimages . get ( & htlc. payment_hash ) {
2835
2835
preimage. clone ( )
@@ -2840,12 +2840,12 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2840
2840
let htlc_output = HolderHTLCOutput :: build_accepted (
2841
2841
payment_preimage, htlc. amount_msat , self . onchain_tx_handler . opt_anchors ( )
2842
2842
) ;
2843
- ( htlc_output, self . onchain_tx_handler . opt_anchors ( ) )
2843
+ htlc_output
2844
2844
} ;
2845
2845
let htlc_package = PackageTemplate :: build_package (
2846
2846
holder_tx. txid , transaction_output_index,
2847
2847
PackageSolvingData :: HolderHTLCOutput ( htlc_output) ,
2848
- htlc. cltv_expiry , aggregable , conf_height
2848
+ htlc. cltv_expiry , conf_height
2849
2849
) ;
2850
2850
claim_requests. push ( htlc_package) ;
2851
2851
}
@@ -3185,7 +3185,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
3185
3185
let should_broadcast = self . should_broadcast_holder_commitment_txn ( logger) ;
3186
3186
if should_broadcast {
3187
3187
let funding_outp = HolderFundingOutput :: build ( self . funding_redeemscript . clone ( ) , self . channel_value_satoshis , self . onchain_tx_handler . opt_anchors ( ) ) ;
3188
- let commitment_package = PackageTemplate :: build_package ( self . funding_info . 0 . txid . clone ( ) , self . funding_info . 0 . index as u32 , PackageSolvingData :: HolderFundingOutput ( funding_outp) , self . best_block . height ( ) , false , self . best_block . height ( ) ) ;
3188
+ let commitment_package = PackageTemplate :: build_package ( self . funding_info . 0 . txid . clone ( ) , self . funding_info . 0 . index as u32 , PackageSolvingData :: HolderFundingOutput ( funding_outp) , self . best_block . height ( ) , self . best_block . height ( ) ) ;
3189
3189
claimable_outpoints. push ( commitment_package) ;
3190
3190
self . pending_monitor_events . push ( MonitorEvent :: CommitmentTxConfirmed ( self . funding_info . 0 ) ) ;
3191
3191
let commitment_tx = self . onchain_tx_handler . get_fully_signed_holder_tx ( & self . funding_redeemscript ) ;
0 commit comments