Skip to content

Commit 530d462

Browse files
author
Antoine Riard
committed
-f Switch to package_amount
1 parent 78d053f commit 530d462

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightning/src/ln/onchain_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ impl PackageTemplate {
357357
_ => panic!("Merging template on non-malleable packages")
358358
}
359359
}
360-
pub(crate) fn package_amounts(&self) -> u64 {
360+
pub(crate) fn package_amount(&self) -> u64 {
361361
let amounts = match self {
362362
PackageTemplate::MalleableJusticeTx { ref inputs } => {
363363
let mut amounts = 0;

lightning/src/ln/onchaintx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl<ChanSigner: ChannelKeys> OnchainTxHandler<ChanSigner> {
311311
// Compute new height timer to decide when we need to regenerate a new bumped version of the claim tx (if we
312312
// didn't receive confirmation of it before, or not enough reorg-safe depth on top of it).
313313
let new_timer = Some(Self::get_height_timer(height, cached_request.absolute_timelock));
314-
let amt = cached_request.content.package_amounts();
314+
let amt = cached_request.content.package_amount();
315315
if cached_request.bump_strategy == BumpStrategy::RBF {
316316
let predicted_weight = cached_request.content.package_weight(&self.destination_script);
317317
if let Some((output_value, new_feerate)) = onchain_utils::compute_output_value(predicted_weight, amt, cached_request.feerate_previous, &fee_estimator, &logger) {

0 commit comments

Comments
 (0)