Skip to content

Commit 32c50ce

Browse files
committed
f - import
1 parent 0a71c11 commit 32c50ce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ use io::utils::write_node_metrics;
131131
use lightning::chain::BestBlock;
132132
use lightning::events::bump_transaction::{Input, Wallet as LdkWallet};
133133
use lightning::impl_writeable_tlv_based;
134+
use lightning::ln::chan_utils::{make_funding_redeemscript, FUNDING_TRANSACTION_WITNESS_WEIGHT};
134135
use lightning::ln::channel_state::ChannelShutdownState;
135136
use lightning::ln::channelmanager::PaymentId;
136137
use lightning::ln::funding::SpliceContribution;
@@ -1228,19 +1229,18 @@ impl Node {
12281229
outpoint: funding_txo.into_bitcoin_outpoint(),
12291230
previous_utxo: bitcoin::TxOut {
12301231
value: Amount::from_sat(channel_details.channel_value_satoshis),
1231-
script_pubkey: lightning::ln::chan_utils::make_funding_redeemscript(
1232+
script_pubkey: make_funding_redeemscript(
12321233
&PublicKey::from_slice(&[2; 33]).unwrap(),
12331234
&PublicKey::from_slice(&[2; 33]).unwrap(),
12341235
)
12351236
.to_p2wsh(),
12361237
},
1237-
satisfaction_weight: EMPTY_SCRIPT_SIG_WEIGHT
1238-
+ lightning::ln::chan_utils::FUNDING_TRANSACTION_WITNESS_WEIGHT,
1238+
satisfaction_weight: EMPTY_SCRIPT_SIG_WEIGHT + FUNDING_TRANSACTION_WITNESS_WEIGHT,
12391239
};
12401240

12411241
let shared_output = bitcoin::TxOut {
12421242
value: shared_input.previous_utxo.value + Amount::from_sat(splice_amount_sats),
1243-
script_pubkey: lightning::ln::chan_utils::make_funding_redeemscript(
1243+
script_pubkey: make_funding_redeemscript(
12441244
&PublicKey::from_slice(&[2; 33]).unwrap(),
12451245
&PublicKey::from_slice(&[2; 33]).unwrap(),
12461246
)

src/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ impl Wallet {
743743
Err(e) => {
744744
log_error!(self.logger, "Failed to extract transaction: {}", e);
745745
Err(())
746-
}
746+
},
747747
}
748748
}
749749

0 commit comments

Comments
 (0)