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 | c0f1220e62494805234cf509aad2c1dcf1451667 (patch) | |
| tree | 23c22295838fe82d7e8cbcfc8ced2d29aaa0f963 /src/remake/records.rs | |
| parent | cfde06efcb73f4106620fc7a1d85d06d4c237413 (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 5e7841f..9edca6e 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; } |
