Skip to content

Commit aa9ecab

Browse files
authored
Merge pull request #769 from sr-gi/copy-trait-config
Adds Copy to ChannelHandshakeConfig and UserConfig
2 parents 9c9c881 + ee51de9 commit aa9ecab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/util/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use ln::channelmanager::{BREAKDOWN_TIMEOUT, MAX_LOCAL_BREAKDOWN_TIMEOUT};
1515
/// Configuration we set when applicable.
1616
///
1717
/// Default::default() provides sane defaults.
18-
#[derive(Clone, Debug)]
18+
#[derive(Copy, Clone, Debug)]
1919
pub struct ChannelHandshakeConfig {
2020
/// Confirmations we will wait for before considering the channel locked in.
2121
/// Applied only for inbound channels (see ChannelHandshakeLimits::max_minimum_depth for the
@@ -209,7 +209,7 @@ impl_writeable!(ChannelConfig, 8+1+1, {
209209
///
210210
/// Default::default() provides sane defaults for most configurations
211211
/// (but currently with 0 relay fees!)
212-
#[derive(Clone, Debug)]
212+
#[derive(Copy, Clone, Debug)]
213213
pub struct UserConfig {
214214
/// Channel config that we propose to our counterparty.
215215
pub own_channel_config: ChannelHandshakeConfig,

0 commit comments

Comments
 (0)