Skip to content

Commit a243862

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 2c96f00 commit a243862

File tree

3 files changed

+554
-4
lines changed

3 files changed

+554
-4
lines changed

lightning/src/ln/channelmonitor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//! ChannelMonitors to get out of the HSM and onto monitoring devices.
1313
1414
use bitcoin::blockdata::block::BlockHeader;
15-
use bitcoin::blockdata::transaction::{TxOut,Transaction};
15+
use bitcoin::blockdata::transaction::{TxOut, Transaction};
1616
use bitcoin::blockdata::transaction::OutPoint as BitcoinOutPoint;
1717
use bitcoin::blockdata::script::{Script, Builder};
1818
use bitcoin::blockdata::opcodes;
@@ -459,7 +459,7 @@ pub(crate) enum InputMaterial {
459459
}
460460
}
461461

462-
impl Writeable for InputMaterial {
462+
impl Writeable for InputMaterial {
463463
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), ::std::io::Error> {
464464
match self {
465465
&InputMaterial::Revoked { ref per_commitment_point, ref remote_delayed_payment_base_key, ref remote_htlc_base_key, ref per_commitment_key, ref input_descriptor, ref amount, ref htlc, ref on_remote_tx_csv} => {

0 commit comments

Comments
 (0)