diff options
| author | tv <tv@krebsco.de> | 2026-10-21 06:06:34 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-21 06:06:34 +0200 |
| commit | 6da2d9801c66b1e81c386dc81aa7584152939cd5 (patch) | |
| tree | 97ecab8dcd291043259c447a66cdb9b5b790d9b8 /src/remake/records.rs | |
| parent | 11e5c3631fede0d658b78e4e932363f1001f0bec (diff) | |
allow choosing the base in remakes
POST /admin/remakes accepts "baseHeads": ["<hex>", ...], 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.
Diffstat (limited to 'src/remake/records.rs')
| -rw-r--r-- | src/remake/records.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
