use exchange_pub valid at this time

This commit is contained in:
swrup 2026-02-26 17:04:48 +01:00 committed by Swrup
parent 9df75d7ea4
commit 96ac74a0ab
5 changed files with 25 additions and 8 deletions

View file

@ -164,7 +164,7 @@ module Auditors = struct
Logs.info (fun m -> m "enabled auditor");
()
| Some auditor ->
if Timestamp.compare auditor.last_change validity_start > 0 then
if Timestamp.geq auditor.last_change validity_start then
Error
"database has more recent auditor data for this auditor public key"
else
@ -200,7 +200,7 @@ module Auditors_disable = struct
match opt with
| None -> Error "auditor not found"
| Some auditor -> (
match Timestamp.compare auditor.last_change validity_end > 0 with
match Timestamp.geq auditor.last_change validity_end with
| true ->
Error
"database has more recent auditor data for this auditor public \