Integrate independent signed Windows clocks with native Linux lease guards
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -881,7 +881,8 @@ impl<V: Ed25519Verifier> HelperSync<V> {
|
||||
) -> bool {
|
||||
let result = (|| -> Result<bool> {
|
||||
guard.check(db)?;
|
||||
let now = clock.now()?;
|
||||
let reading = clock.reading()?;
|
||||
let now = reading.own_wall;
|
||||
let Some(lease) = &self.lease else {
|
||||
return Ok(false);
|
||||
};
|
||||
@@ -899,6 +900,7 @@ impl<V: Ed25519Verifier> HelperSync<V> {
|
||||
&& meta.decision == Some(lease.decision_id)
|
||||
&& generation == lease.generation
|
||||
&& now < lease.until
|
||||
&& reading.upper < lease.until
|
||||
&& now >= self.born
|
||||
&& boot.current_boot()? == lease.boot_id
|
||||
&& ledger_fingerprint(db)? == lease.fingerprint
|
||||
|
||||
Reference in New Issue
Block a user