Skip to content

Commit 8a934a3

Browse files
author
Antoine Riard
committed
Make accessible OnchainTxHandler signing fields to onchain_utils.rs
1 parent 7cfebf0 commit 8a934a3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! security-domain-separated system design, you should consider having multiple paths for
2121
//! ChannelMonitors to get out of the HSM and onto monitoring devices.
2222
23-
use bitcoin::blockdata::block::{Block, BlockHeader};
23+
use bitcoin::blockdata::block::BlockHeader;
2424
use bitcoin::blockdata::transaction::{TxOut,Transaction};
2525
use bitcoin::blockdata::transaction::OutPoint as BitcoinOutPoint;
2626
use bitcoin::blockdata::script::{Script, Builder};
@@ -42,7 +42,7 @@ use ln::channelmanager::{BestBlock, HTLCSource};
4242
use ln::onchaintx::OnchainTxHandler;
4343
use ln::onchain_utils::InputDescriptors;
4444
use chain;
45-
use chain::WatchedOutput;
45+
use chain::{Block, WatchedOutput};
4646
use chain::chaininterface::{BroadcasterInterface, FeeEstimator};
4747
use chain::transaction::{OutPoint, TransactionData};
4848
use chain::keysinterface::{SpendableOutputDescriptor, StaticPaymentOutputDescriptor, DelayedPaymentOutputDescriptor, Sign, KeysInterface};
@@ -353,7 +353,7 @@ pub(crate) enum InputMaterial {
353353
}
354354
}
355355

356-
impl Writeable for InputMaterial {
356+
impl Writeable for InputMaterial {
357357
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), ::std::io::Error> {
358358
match self {
359359
&InputMaterial::Revoked { ref per_commitment_point, ref counterparty_delayed_payment_base_key, ref counterparty_htlc_base_key, ref per_commitment_key, ref input_descriptor, ref amount, ref htlc, ref on_counterparty_tx_csv} => {

lightning/src/ln/onchaintx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ pub struct OnchainTxHandler<ChannelSigner: Sign> {
217217
prev_holder_commitment: Option<HolderCommitmentTransaction>,
218218
prev_holder_htlc_sigs: Option<Vec<Option<(usize, Signature)>>>,
219219

220-
signer: ChannelSigner,
220+
pub(crate) signer: ChannelSigner,
221221
pub(crate) channel_transaction_parameters: ChannelTransactionParameters,
222222

223223
// Used to track claiming requests. If claim tx doesn't confirm before height timer expiration we need to bump
@@ -251,7 +251,7 @@ pub struct OnchainTxHandler<ChannelSigner: Sign> {
251251

252252
latest_height: u32,
253253

254-
secp_ctx: Secp256k1<secp256k1::All>,
254+
pub(crate) secp_ctx: Secp256k1<secp256k1::All>,
255255
}
256256

257257
impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {

0 commit comments

Comments
 (0)