From 3f7314981685eb2f44a2cf9b9b93d65eb4300c0b Mon Sep 17 00:00:00 2001 From: swrup Date: Thu, 26 Feb 2026 18:15:55 +0100 Subject: [PATCH] --- src/http_management.ml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/http_management.ml b/src/http_management.ml index 36d01d3d..3a96c97b 100644 --- a/src/http_management.ml +++ b/src/http_management.ml @@ -165,8 +165,7 @@ module Auditors = struct () | Some auditor -> if Timestamp.geq auditor.last_change validity_start then - Error - "database has more recent auditor data for this auditor public key" + Error "replay attack on enable-auditor" else let+ () = Pg.update_auditor db_conn auditor |> unwrap_err_caqti in Logs.info (fun m -> m "updated auditor"); @@ -201,8 +200,7 @@ module Auditors_disable = struct | None -> Error "auditor not found" | Some auditor -> ( if Timestamp.geq auditor.last_change validity_end then - Error - "database has more recent auditor data for this auditor public key" + Error "replay attack on disable-auditor" else match auditor.is_active with | false -> @@ -454,7 +452,7 @@ module Wire = struct () | Some (wire, _is_active, last_change) -> if Timestamp.geq last_change validity_start then - Error "database has more recent wire data" + Error "replay attack on enable-wire" else let+ () = Pg.update_wire db_conn ~is_active:true ~last_change:validity_start @@ -493,7 +491,7 @@ module Wire_disable = struct | None -> Error "wire not found" | Some (wire, _is_active, last_change) -> if Timestamp.geq last_change validity_end then - Error "database has more recent wire data" + Error "replay attack on disable-wire" else let+ () = Pg.update_wire db_conn ~is_active:false ~last_change:validity_end