mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Implement Clone for CrosslinkRecord
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use super::utils::types::Sha256Digest;
|
||||
use super::rlp::{ RlpStream, Encodable };
|
||||
|
||||
#[derive(Copy)]
|
||||
pub struct CrosslinkRecord {
|
||||
pub epoch: u64,
|
||||
pub hash: Sha256Digest
|
||||
@@ -15,6 +16,10 @@ impl CrosslinkRecord {
|
||||
}
|
||||
}
|
||||
|
||||
impl Clone for CrosslinkRecord {
|
||||
fn clone(&self) -> CrosslinkRecord { *self }
|
||||
}
|
||||
|
||||
/*
|
||||
* RLP Encoding
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user