From 6da2d9801c66b1e81c386dc81aa7584152939cd5 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 21 Oct 2026 06:06:34 +0200 Subject: allow choosing the base in remakes POST /admin/remakes accepts "baseHeads": ["", ...], for example the heads of an earlier GET /store?heads=true. Every head must be in the coordinating node's document, otherwise the request gets a 400. Without it, the base is the current heads. This works for any kind. --- src/remake/records.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/remake/records.rs') diff --git a/src/remake/records.rs b/src/remake/records.rs index b3faa82..9cf29ea 100644 --- a/src/remake/records.rs +++ b/src/remake/records.rs @@ -312,7 +312,7 @@ pub(crate) fn write_abort_request( write_part(doc, id, "abortRequested", request) } -fn decode_hex32(hex: &str) -> Option<[u8; 32]> { +pub(crate) fn decode_hex32(hex: &str) -> Option<[u8; 32]> { if hex.len() != 64 || !hex.is_ascii() { return None; } -- cgit v1.3.1