Merge bitcoindevkit/bdk#837: Derive PartialEq, Eq on SyncTime
45d41416edDerive `PartialEq`, `Eq` on `SyncTime` (Max Fang) Pull request description: ### Description This enables e.g. `assert_eq!` comparisons of `SyncTime` in tests (we use this) ### Changelog notice Derived `PartialEq`, `Eq` on `SyncTime` #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing ACKs for top commit: rajarshimaitra: ACK45d41416edevanlinjin: ACK45d41416edTree-SHA512: eb2dc87762c33874a3a521c2f020250e83401c0f0e784911de6139bc8bf8c56f40c93ad2aa93cf20058ba796efd050979bddc5414acdd6856003e7a9f88c75c6
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user