Skip to content

Commit 6db0f4d

Browse files
author
Antoine Riard
committed
Introduce PackageTemplate, a replacement of InputMaterial
PackageTemplate aims to replace InputMaterial, introducing a clean interface to manipulate a wide range of claim types without OnchainTxHandler aware of special content of each. This is used in next commits.
1 parent 2b039e6 commit 6db0f4d

File tree

3 files changed

+556
-6
lines changed

3 files changed

+556
-6
lines changed

lightning/src/ln/channelmonitor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
//! ChannelMonitors to get out of the HSM and onto monitoring devices.
2222
2323
use bitcoin::blockdata::block::BlockHeader;
24-
use bitcoin::blockdata::transaction::{TxOut,Transaction};
24+
use bitcoin::blockdata::transaction::{TxOut, Transaction};
2525
use bitcoin::blockdata::transaction::OutPoint as BitcoinOutPoint;
2626
use bitcoin::blockdata::script::{Script, Builder};
2727
use bitcoin::blockdata::opcodes;
@@ -490,7 +490,7 @@ pub(crate) enum InputMaterial {
490490
}
491491
}
492492

493-
impl Writeable for InputMaterial {
493+
impl Writeable for InputMaterial {
494494
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), ::std::io::Error> {
495495
match self {
496496
&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} => {

0 commit comments

Comments
 (0)