Merge pull request #761 from TheBlueMatt/2020-10-chansigner-no-ser
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Fri, 8 Jan 2021 16:59:19 +0000 (08:59 -0800)
committerGitHub <noreply@github.com>
Fri, 8 Jan 2021 16:59:19 +0000 (08:59 -0800)
Add a new method `read_chan_signer` to `KeysInterface`

lightning/src/util/config.rs

index 712b5937bab7ea2517f41cef155a7fe8d707c2b9..f43423d7c0c0af923a4ac8f08a562aea474f946c 100644 (file)
@@ -15,7 +15,7 @@ use ln::channelmanager::{BREAKDOWN_TIMEOUT, MAX_LOCAL_BREAKDOWN_TIMEOUT};
 /// Configuration we set when applicable.
 ///
 /// Default::default() provides sane defaults.
-#[derive(Clone, Debug)]
+#[derive(Copy, Clone, Debug)]
 pub struct ChannelHandshakeConfig {
        /// Confirmations we will wait for before considering the channel locked in.
        /// Applied only for inbound channels (see ChannelHandshakeLimits::max_minimum_depth for the
@@ -209,7 +209,7 @@ impl_writeable!(ChannelConfig, 8+1+1, {
 ///
 /// Default::default() provides sane defaults for most configurations
 /// (but currently with 0 relay fees!)
-#[derive(Clone, Debug)]
+#[derive(Copy, Clone, Debug)]
 pub struct UserConfig {
        /// Channel config that we propose to our counterparty.
        pub own_channel_config: ChannelHandshakeConfig,