Derive PartialEq, Eq on SyncTime

This enables e.g. `assert_eq!` comparisons of `SyncTime` in tests.
This commit is contained in:
Max Fang 2022-12-14 22:18:59 -08:00
parent 2e7a220e39
commit 45d41416ed
No known key found for this signature in database
GPG Key ID: 98F08E41D2257775

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,