Skip to content

Commit 3021cbf

Browse files
jkczyzbenthecarman
authored andcommitted
f - import
1 parent 37d8f85 commit 3021cbf

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
@@ -135,6 +135,7 @@ use io::utils::write_node_metrics;
135135
use lightning::chain::BestBlock;
136136
use lightning::events::bump_transaction::{Input, Wallet as LdkWallet};
137137
use lightning::impl_writeable_tlv_based;
138+
use lightning::ln::chan_utils::{make_funding_redeemscript, FUNDING_TRANSACTION_WITNESS_WEIGHT};
138139
use lightning::ln::channel_state::ChannelShutdownState;
139140
use lightning::ln::channelmanager::PaymentId;
140141
use lightning::ln::funding::SpliceContribution;
@@ -1251,19 +1252,18 @@ impl Node {
12511252
outpoint: funding_txo.into_bitcoin_outpoint(),
12521253
previous_utxo: bitcoin::TxOut {
12531254
value: Amount::from_sat(channel_details.channel_value_satoshis),
1254-
script_pubkey: lightning::ln::chan_utils::make_funding_redeemscript(
1255+
script_pubkey: make_funding_redeemscript(
12551256
&PublicKey::from_slice(&[2; 33]).unwrap(),
12561257
&PublicKey::from_slice(&[2; 33]).unwrap(),
12571258
)
12581259
.to_p2wsh(),
12591260
},
1260-
satisfaction_weight: EMPTY_SCRIPT_SIG_WEIGHT
1261-
+ lightning::ln::chan_utils::FUNDING_TRANSACTION_WITNESS_WEIGHT,
1261+
satisfaction_weight: EMPTY_SCRIPT_SIG_WEIGHT + FUNDING_TRANSACTION_WITNESS_WEIGHT,
12621262
};
12631263

12641264
let shared_output = bitcoin::TxOut {
12651265
value: shared_input.previous_utxo.value + Amount::from_sat(splice_amount_sats),
1266-
script_pubkey: lightning::ln::chan_utils::make_funding_redeemscript(
1266+
script_pubkey: make_funding_redeemscript(
12671267
&PublicKey::from_slice(&[2; 33]).unwrap(),
12681268
&PublicKey::from_slice(&[2; 33]).unwrap(),
12691269
)

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)