Update all of serai-coordinator to compile with the new serai-client-serai

This commit is contained in:
Luke Parker
2025-11-16 11:50:24 -05:00
parent 9891ccade8
commit 7a314baa9f
37 changed files with 1014 additions and 1081 deletions

View File

@@ -83,6 +83,12 @@ impl Header {
Header::V1(HeaderV1 { builds_upon, .. }) => *builds_upon,
}
}
/// Get the UNIX time, in milliseconds since the epoch, for when this block was proposed.
pub fn unix_time_in_millis(&self) -> u64 {
match self {
Header::V1(HeaderV1 { unix_time_in_millis, .. }) => *unix_time_in_millis,
}
}
/// The commitment to the transactions within this block.
pub fn transactions_commitment(&self) -> UnbalancedMerkleTree {
match self {