Skip to content

Commit 5c3be20

Browse files
committed
f rebase
1 parent 19ee3bd commit 5c3be20

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

lightning/src/chain/package.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ pub(crate) fn verify_channel_type_features(channel_type_features: &Option<Channe
105105
// number_of_witness_elements + sig_length + revocation_sig + true_length + op_true + witness_script_length + witness_script
106106
pub(crate) const WEIGHT_REVOKED_OUTPUT: u64 = 1 + 1 + 73 + 1 + 1 + 1 + 77;
107107

108-
#[cfg(not(test))]
108+
#[cfg(not(any(test, feature = "_test_utils")))]
109109
/// Height delay at which transactions are fee-bumped/rebroadcasted with a low priority.
110110
const LOW_FREQUENCY_BUMP_INTERVAL: u32 = 15;
111-
#[cfg(test)]
111+
#[cfg(any(test, feature = "_test_utils"))]
112112
/// Height delay at which transactions are fee-bumped/rebroadcasted with a low priority.
113113
pub(crate) const LOW_FREQUENCY_BUMP_INTERVAL: u32 = 15;
114114

lightning/src/util/dyn_signer.rs

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ use crate::ln::chan_utils::{
1111
ChannelPublicKeys, ChannelTransactionParameters, ClosingTransaction, CommitmentTransaction,
1212
HTLCOutputInCommitment, HolderCommitmentTransaction,
1313
};
14-
use crate::ln::features::ChannelTypeFeatures;
14+
use lightning_types::features::ChannelTypeFeatures;
1515
use crate::ln::msgs::{DecodeError, UnsignedChannelAnnouncement, UnsignedGossipMessage};
1616
use crate::ln::script::ShutdownScript;
17-
use crate::ln::PaymentPreimage;
17+
use lightning_types::payment::PaymentPreimage;
1818
use crate::sign::ecdsa::EcdsaChannelSigner;
1919
#[cfg(taproot)]
2020
use crate::sign::taproot::TaprootChannelSigner;
@@ -34,6 +34,7 @@ use lightning_invoice::RawBolt11Invoice;
3434
use musig2::types::{PartialSignature, PublicNonce};
3535
use secp256k1::ecdsa::RecoverableSignature;
3636
use secp256k1::{ecdh::SharedSecret, ecdsa::Signature, PublicKey, Scalar, Secp256k1, SecretKey};
37+
use crate::offers::invoice::UnsignedBolt12Invoice;
3738

3839
#[cfg(not(taproot))]
3940
/// A super-trait for all the traits that a dyn signer backing implements
@@ -247,6 +248,10 @@ impl EcdsaChannelSigner for DynSigner {
247248
secp_ctx,
248249
)
249250
}
251+
252+
fn sign_splicing_funding_input(&self, tx: &Transaction, input_index: usize, input_value: u64, secp_ctx: &Secp256k1<All>) -> Result<Signature, ()> {
253+
self.inner.sign_splicing_funding_input(tx, input_index, input_value, secp_ctx)
254+
}
250255
}
251256

252257
impl ChannelSignerExt for DynSigner {
@@ -322,15 +327,8 @@ impl NodeSigner for DynKeysInterface {
322327

323328
fn sign_invoice(&self, invoice: &RawBolt11Invoice, recipient: Recipient) -> Result<RecoverableSignature, ()>;
324329

325-
fn sign_bolt12_invoice(
326-
&self, invoice: &crate::offers::invoice::UnsignedBolt12Invoice
327-
) -> Result<bitcoin::secp256k1::schnorr::Signature, ()>;
328-
329-
fn sign_bolt12_invoice_request(
330-
&self, invoice_request: &crate::offers::invoice_request::UnsignedInvoiceRequest
331-
) -> Result<bitcoin::secp256k1::schnorr::Signature, ()>;
332-
333330
fn get_inbound_payment_key_material(&self) -> KeyMaterial;
331+
fn sign_bolt12_invoice(&self, invoice: &UnsignedBolt12Invoice) -> Result<secp256k1::schnorr::Signature, ()>;
334332
}
335333
}
336334
}
@@ -423,10 +421,6 @@ impl NodeSigner for DynPhantomKeysInterface {
423421
&self, invoice: &crate::offers::invoice::UnsignedBolt12Invoice
424422
) -> Result<bitcoin::secp256k1::schnorr::Signature, ()>;
425423

426-
fn sign_bolt12_invoice_request(
427-
&self, invoice_request: &crate::offers::invoice_request::UnsignedInvoiceRequest
428-
) -> Result<bitcoin::secp256k1::schnorr::Signature, ()>;
429-
430424
fn get_inbound_payment_key_material(&self) -> KeyMaterial;
431425
}
432426
}

0 commit comments

Comments
 (0)