Derive PartialEq, Eq on SyncTime

This enables e.g. `assert_eq!` comparisons of `SyncTime` in tests.
This commit is contained in:
Max Fang committed 2023-01-29 12:26:54 -08:00
1 parent 2e7a220e39
commit 45d41416ed
1 file changed
+1 -1
+1 -1
View File
@@ -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,