File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
primitives/consensus/common/src Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ pub trait CanAuthorWith<Block: BlockT> {
212
212
213
213
/// Checks if the node can author blocks by using
214
214
/// [`NativeVersion::can_author_with`](sp_version::NativeVersion::can_author_with).
215
+ #[ derive( Clone ) ]
215
216
pub struct CanAuthorWithNativeVersion < T > ( T ) ;
216
217
217
218
impl < T > CanAuthorWithNativeVersion < T > {
@@ -239,6 +240,7 @@ impl<T: sp_version::GetRuntimeVersion<Block>, Block: BlockT> CanAuthorWith<Block
239
240
}
240
241
241
242
/// Returns always `true` for `can_author_with`. This is useful for tests.
243
+ #[ derive( Clone ) ]
242
244
pub struct AlwaysCanAuthor ;
243
245
244
246
impl < Block : BlockT > CanAuthorWith < Block > for AlwaysCanAuthor {
@@ -248,6 +250,7 @@ impl<Block: BlockT> CanAuthorWith<Block> for AlwaysCanAuthor {
248
250
}
249
251
250
252
/// Never can author.
253
+ #[ derive( Clone ) ]
251
254
pub struct NeverCanAuthor ;
252
255
253
256
impl < Block : BlockT > CanAuthorWith < Block > for NeverCanAuthor {
You can’t perform that action at this time.
0 commit comments