Skip to content

Commit 83a5102

Browse files
committed
f rename
1 parent 09de3b7 commit 83a5102

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4579,7 +4579,7 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
45794579
nondust_htlcs: Vec<HTLCOutputInCommitment>,
45804580
) -> CommitmentTransaction {
45814581
let channel_parameters = &channel_parameters.as_counterparty_broadcastable();
4582-
CommitmentTransaction::new_without_broadcaster_value(
4582+
CommitmentTransaction::new_without_broadcaster_offchain_value(
45834583
commitment_number,
45844584
their_per_commitment_point,
45854585
to_broadcaster_value,

lightning/src/ln/chan_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ impl HolderCommitmentTransaction {
13751375
for _ in 0..nondust_htlcs.len() {
13761376
counterparty_htlc_sigs.push(dummy_sig);
13771377
}
1378-
let inner = CommitmentTransaction::new_without_broadcaster_value(
1378+
let inner = CommitmentTransaction::new_without_broadcaster_offchain_value(
13791379
0, &dummy_key, 0, 0, 0, nondust_htlcs, &channel_parameters.as_counterparty_broadcastable(), &secp_ctx
13801380
);
13811381
HolderCommitmentTransaction {
@@ -1728,7 +1728,7 @@ impl CommitmentTransaction {
17281728
)
17291729
}
17301730

1731-
pub(crate) fn new_without_broadcaster_value(
1731+
pub(crate) fn new_without_broadcaster_offchain_value(
17321732
commitment_number: u64, per_commitment_point: &PublicKey, to_broadcaster_value_sat: u64,
17331733
to_countersignatory_value_sat: u64, feerate_per_kw: u32,
17341734
nondust_htlcs: Vec<HTLCOutputInCommitment>,
@@ -2385,7 +2385,7 @@ mod tests {
23852385

23862386
#[rustfmt::skip]
23872387
fn build(&self, to_broadcaster_sats: u64, to_countersignatory_sats: u64, nondust_htlcs: Vec<HTLCOutputInCommitment>) -> CommitmentTransaction {
2388-
CommitmentTransaction::new_without_broadcaster_value(
2388+
CommitmentTransaction::new_without_broadcaster_offchain_value(
23892389
self.commitment_number, &self.per_commitment_point, to_broadcaster_sats, to_countersignatory_sats, self.feerate_per_kw,
23902390
nondust_htlcs, &self.channel_parameters.as_holder_broadcastable(), &self.secp_ctx
23912391
)

lightning/src/ln/htlc_reserve_unit_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,7 @@ pub fn do_test_dust_limit_fee_accounting(can_afford: bool) {
23462346
get_channel_ref!(nodes[0], nodes[1], per_peer_lock, peer_state_lock, chan_id);
23472347
let chan_signer = channel.as_funded().unwrap().get_signer();
23482348

2349-
let commitment_tx = CommitmentTransaction::new_without_broadcaster_value(
2349+
let commitment_tx = CommitmentTransaction::new_without_broadcaster_offchain_value(
23502350
commitment_number,
23512351
&remote_point,
23522352
node_1_balance_sat,

lightning/src/ln/update_fee_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ pub fn do_test_update_fee_that_funder_cannot_afford(channel_type_features: Chann
489489
let local_chan_signer = local_chan.as_funded().unwrap().get_signer();
490490

491491
let nondust_htlcs: Vec<HTLCOutputInCommitment> = vec![];
492-
let commitment_tx = CommitmentTransaction::new_without_broadcaster_value(
492+
let commitment_tx = CommitmentTransaction::new_without_broadcaster_offchain_value(
493493
INITIAL_COMMITMENT_NUMBER - 1,
494494
&remote_point,
495495
push_sats,
@@ -590,7 +590,7 @@ pub fn test_update_fee_that_saturates_subs() {
590590
get_channel_ref!(nodes[0], nodes[1], per_peer_lock, peer_state_lock, chan_id);
591591
let local_chan_signer = local_chan.as_funded().unwrap().get_signer();
592592
let nondust_htlcs: Vec<HTLCOutputInCommitment> = vec![];
593-
let commitment_tx = CommitmentTransaction::new_without_broadcaster_value(
593+
let commitment_tx = CommitmentTransaction::new_without_broadcaster_offchain_value(
594594
INITIAL_COMMITMENT_NUMBER,
595595
&remote_point,
596596
8500,

0 commit comments

Comments
 (0)