Test that EnforcingChannelKeys doesn't panic on duplicate RAAs
[rust-lightning] / lightning / src / ln / channel.rs
index ec2071428eb2701fa3c2a931ed232d8cea776fc1..231ee832befe77a32c1166c8ab2ba87151623934 100644 (file)
@@ -240,7 +240,10 @@ pub(super) struct Channel<ChanSigner: ChannelKeys> {
        secp_ctx: Secp256k1<secp256k1::All>,
        channel_value_satoshis: u64,
 
+       #[cfg(not(test))]
        local_keys: ChanSigner,
+       #[cfg(test)]
+       pub(super) local_keys: ChanSigner,
        shutdown_pubkey: PublicKey,
 
        // Our commitment numbers start at 2^48-1 and count down, whereas the ones used in transaction