@@ -339,13 +339,13 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
339
339
if let Some ( ( output_value, new_feerate) ) = onchain_utils:: compute_output_value ( predicted_weight, amt, cached_request. feerate_previous , fee_estimator, logger) {
340
340
assert ! ( new_feerate != 0 ) ;
341
341
342
- let transaction = cached_request. content . package_finalize ( self , output_value, self . destination_script . clone ( ) , logger) . unwrap ( ) ;
342
+ let transaction = cached_request. content . finalize_package ( self , output_value, self . destination_script . clone ( ) , logger) . unwrap ( ) ;
343
343
log_trace ! ( logger, "...with timer {} and feerate {}" , new_timer. unwrap( ) , new_feerate) ;
344
344
assert ! ( predicted_weight >= transaction. get_weight( ) ) ;
345
345
return Some ( ( new_timer, new_feerate, transaction) )
346
346
}
347
347
} else {
348
- if let Some ( transaction) = cached_request. content . package_finalize ( self , amt, self . destination_script . clone ( ) , logger) {
348
+ if let Some ( transaction) = cached_request. content . finalize_package ( self , amt, self . destination_script . clone ( ) , logger) {
349
349
return Some ( ( None , 0 , transaction) ) ;
350
350
}
351
351
}
@@ -448,7 +448,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
448
448
} else { // If false, generate new claim request with update outpoint set
449
449
let mut at_least_one_drop = false ;
450
450
for input in tx. input . iter ( ) {
451
- if let Some ( package) = request. content . package_split ( & input. previous_output ) {
451
+ if let Some ( package) = request. content . split_package ( & input. previous_output ) {
452
452
claimed_outputs_material. push ( package) ;
453
453
at_least_one_drop = true ;
454
454
}
@@ -540,7 +540,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
540
540
OnchainEvent :: ContentiousOutpoint { package } => {
541
541
if let Some ( ancestor_claimable_txid) = self . claimable_outpoints . get ( & package. outpoints ( ) [ 0 ] ) {
542
542
if let Some ( request) = self . pending_claim_requests . get_mut ( & ancestor_claimable_txid. 0 ) {
543
- request. content . package_merge ( package) ;
543
+ request. content . merge_package ( package) ;
544
544
// Using a HashMap guarantee us than if we have multiple outpoints getting
545
545
// resurrected only one bump claim tx is going to be broadcast
546
546
bump_candidates. insert ( ancestor_claimable_txid. clone ( ) , request. clone ( ) ) ;
0 commit comments