@@ -726,7 +726,7 @@ impl crate::util::ser::Readable for ChannelConfig {
726726}
727727
728728/// A parallel struct to [`ChannelConfig`] to define partial updates.
729- #[ derive( Default ) ]
729+ #[ derive( Copy , Clone , Default ) ]
730730pub struct ChannelConfigUpdate {
731731 /// Amount (in millionths of a satoshi) charged per satoshi for payments forwarded outbound over the channel. See
732732 /// [`ChannelConfig::forwarding_fee_proportional_millionths`].
@@ -859,7 +859,7 @@ impl crate::util::ser::Readable for LegacyChannelConfig {
859859///
860860/// `Default::default()` provides sane defaults for most configurations
861861/// (but currently with zero relay fees!)
862- #[ derive( Clone , Debug ) ]
862+ #[ derive( Copy , Clone , Debug ) ]
863863pub struct UserConfig {
864864 /// Channel handshake config that we propose to our counterparty.
865865 pub channel_handshake_config : ChannelHandshakeConfig ,
@@ -1033,7 +1033,7 @@ impl Readable for UserConfig {
10331033}
10341034
10351035/// Config structure for overriding channel parameters.
1036- #[ derive( Default ) ]
1036+ #[ derive( Copy , Clone , Default ) ]
10371037pub struct ChannelConfigOverrides {
10381038 /// Overrides for channel handshake parameters.
10391039 pub handshake_overrides : Option < ChannelHandshakeConfigUpdate > ,
@@ -1056,7 +1056,7 @@ impl UserConfig {
10561056}
10571057
10581058/// Config structure for overriding channel handshake parameters.
1059- #[ derive( Default ) ]
1059+ #[ derive( Copy , Clone , Default ) ]
10601060pub struct ChannelHandshakeConfigUpdate {
10611061 /// Overrides the percentage of the channel value we will cap the total value of outstanding inbound HTLCs to. See
10621062 /// [`ChannelHandshakeConfig::max_inbound_htlc_value_in_flight_percent_of_channel`].
0 commit comments