Skip to content

Commit 0ff65c9

Browse files
author
Antoine Riard
committed
-f Switch to package_amount
1 parent c986850 commit 0ff65c9

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
@@ -333,7 +333,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
333333
// Compute new height timer to decide when we need to regenerate a new bumped version of the claim tx (if we
334334
// didn't receive confirmation of it before, or not enough reorg-safe depth on top of it).
335335
let new_timer = Some(Self::get_height_timer(height, cached_request.absolute_timelock));
336-
let amt = cached_request.content.package_amounts();
336+
let amt = cached_request.content.package_amount();
337337
if cached_request.bump_strategy == BumpStrategy::RBF {
338338
let predicted_weight = cached_request.content.package_weight(&self.destination_script);
339339
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)