Allow holder commitment and HTLC signature requests to fail
[rust-lightning] / lightning / src / ln / channel.rs
index 31989a011a971b5dc55f170eac5e3de9e99205b2..ac409b2c666c2cda9e317a87b0083c5ea77d9413 100644 (file)
@@ -1492,7 +1492,10 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
 
        /// The unique identifier used to re-derive the private key material for the channel through
        /// [`SignerProvider::derive_channel_signer`].
+       #[cfg(not(test))]
        channel_keys_id: [u8; 32],
+       #[cfg(test)]
+       pub channel_keys_id: [u8; 32],
 
        /// If we can't release a [`ChannelMonitorUpdate`] until some external action completes, we
        /// store it here and only release it to the `ChannelManager` once it asks for it.