Derive PartialEq
, Eq
on SyncTime
This enables e.g. `assert_eq!` comparisons of `SyncTime` in tests.
This commit is contained in:
parent
2e7a220e39
commit
45d41416ed
@ -49,7 +49,7 @@ pub use memory::MemoryDatabase;
|
||||
/// Blockchain state at the time of syncing
|
||||
///
|
||||
/// Contains only the block time and height at the moment
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct SyncTime {
|
||||
/// Block timestamp and height at the time of sync
|
||||
pub block_time: BlockTime,
|
||||
|
Loading…
x
Reference in New Issue
Block a user