X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fchannel.rs;h=df4cea4e12001fa56be24680a2e5ae7de602483d;hb=f328094b49dcbc9967d17d5706992a6bf167de23;hp=5b222cb10c510bbd39b377c886e9627f194bf49a;hpb=df5053d3969689036582ffa46bf3da61b7238bf0;p=rust-lightning diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index 5b222cb10..df4cea4e1 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -35,6 +35,7 @@ use std; use std::default::Default; use std::{cmp,mem,fmt}; use std::sync::{Arc}; +use std::ops::Deref; #[cfg(test)] pub struct ChannelValueStat { @@ -247,6 +248,7 @@ pub(super) struct Channel { #[cfg(test)] pub(super) local_keys: ChanSigner, shutdown_pubkey: PublicKey, + destination_script: Script, // Our commitment numbers start at 2^48-1 and count down, whereas the ones used in transaction // generation start at 0 and count up...this simplifies some parts of implementation at the @@ -351,7 +353,9 @@ pub(super) struct Channel { their_shutdown_scriptpubkey: Option