From 2d26e75565a64112202638a217526f343d439368 Mon Sep 17 00:00:00 2001 From: Maxime Levillain Date: Wed, 4 Jun 2025 17:17:28 +0200 Subject: [PATCH] update notarization proof when not cemented --- interface/api/api.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/api/api.ml b/interface/api/api.ml index 9ff0704..c3e2b1b 100644 --- a/interface/api/api.ml +++ b/interface/api/api.ml @@ -77,7 +77,7 @@ let notarization_proof ([%req], hash) () = let>? account, _ = auth req in let> r = Db.notarization ~account hash in match r with - | Ok {proof=Some proof; commitment=Some commitment; _} -> + | Ok {proof=Some proof; commitment=Some commitment; _} when commitment.status = `cemented -> rok {hash; proof; commitment} | Ok n -> let>? p = Serv.Proxy.(wrap @@ post_proof ~input:hash !proxy) in -- GitLab