Skip to content

Commit 9392b72

Browse files
committed
f test_utils
1 parent a81495e commit 9392b72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/util/dyn_signer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use secp256k1::{ecdh::SharedSecret, ecdsa::Signature, PublicKey, Scalar, Secp256
3030

3131
use crate::chain::transaction::OutPoint;
3232
use crate::ln::features::ChannelTypeFeatures;
33+
#[cfg(any(test, feature = "_test_utils"))]
3334
use crate::util::test_utils::OnlyReadsKeysInterface;
3435

3536
/// Helper to allow DynSigner to clone itself
@@ -355,6 +356,7 @@ impl ReadableArgs<&DynKeysInterface> for DynSigner {
355356
}
356357
}
357358

359+
#[cfg(any(test, feature = "_test_utils"))]
358360
impl ReadableArgs<&OnlyReadsKeysInterface> for DynSigner {
359361
fn read<R: Read>(_reader: &mut R, _params: &OnlyReadsKeysInterface) -> Result<Self, DecodeError> {
360362
todo!()

0 commit comments

Comments
 (0)