Skip to content

Commit

Permalink
chore: allow access to channel_keys_id through channel monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
bonomat committed Oct 26, 2023
1 parent 3b69cec commit 698be7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lightning/src/chain/channelmonitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! ChannelMonitors should do so). Thus, if you're building rust-lightning into an HSM or other
//! security-domain-separated system design, you should consider having multiple paths for
//! ChannelMonitors to get out of the HSM and onto monitoring devices.

#![allow(missing_docs)]
use bitcoin::blockdata::block::BlockHeader;
use bitcoin::blockdata::transaction::{OutPoint as BitcoinOutPoint, TxOut, Transaction};
use bitcoin::blockdata::script::{Script, Builder};
Expand Down Expand Up @@ -708,11 +708,11 @@ pub struct ChannelMonitor<Signer: WriteableEcdsaChannelSigner> {
#[cfg(test)]
pub(crate) inner: Mutex<ChannelMonitorImpl<Signer>>,
#[cfg(not(test))]
inner: Mutex<ChannelMonitorImpl<Signer>>,
pub inner: Mutex<ChannelMonitorImpl<Signer>>,
}

#[derive(PartialEq)]
pub(crate) struct ChannelMonitorImpl<Signer: WriteableEcdsaChannelSigner> {
pub struct ChannelMonitorImpl<Signer: WriteableEcdsaChannelSigner> {
latest_update_id: u64,
commitment_transaction_number_obscure_factor: u64,

Expand All @@ -721,7 +721,7 @@ pub(crate) struct ChannelMonitorImpl<Signer: WriteableEcdsaChannelSigner> {
counterparty_payment_script: Script,
shutdown_script: Option<Script>,

channel_keys_id: [u8; 32],
pub channel_keys_id: [u8; 32],
holder_revocation_basepoint: PublicKey,
funding_info: (OutPoint, Script),
original_funding_info: Option<(OutPoint, Script)>,
Expand Down

0 comments on commit 698be7f

Please sign in to comment.