commit 73fc0e8cfa5c432fd2dbb7c27fff586272526560
parent 09377917ed2baeba323a99254d2114f63c7c2fe7
Author: Iván Ávalos <avalos@disroot.org>
Date: Sun, 9 Aug 2026 13:24:13 +0200
add sync error codes and signature purposes
Add SYNC_CONFLICTING_WRITE (6115) and SYNC_INCONSISTENT_BACKUP (6116)
to the Taler error code registry, and SYNC_BLOCK_UPLOAD (1452),
SYNC_BLOCK_DELETE (1453) and SYNC_OBJECT_UPLOAD (1454) to the signature
purpose registry, as needed by the incremental backup and sync protocol
(DD 92).
Diffstat:
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec
@@ -3082,6 +3082,16 @@ Name: SYNC_GENERIC_BACKEND_TIMEOUT
Description: Sync experienced a timeout communicating with its payment backend.
HttpStatus: 504
+Value: 6115
+Name: SYNC_CONFLICTING_WRITE
+Description: The provided new content is based on an outdated backup: the previous write was overwritten in the meantime.
+HttpStatus: 409
+
+Value: 6116
+Name: SYNC_INCONSISTENT_BACKUP
+Description: The backup does not form a consistent linked list (e.g. the previous block does not match the given hash).
+HttpStatus: 409
+
# 7000 - 7999: Reserved for wallet
diff --git a/gnunet-signatures/registry.rec b/gnunet-signatures/registry.rec
@@ -643,6 +643,21 @@ Name: SYNC_BACKUP_UPLOAD
Comment: EdDSA signature for a backup upload.
Package: GNU Taler
+Number: 1452
+Name: SYNC_BLOCK_UPLOAD
+Comment: EdDSA signature for uploading or updating a block in a backup.
+Package: GNU Taler
+
+Number: 1453
+Name: SYNC_BLOCK_DELETE
+Comment: EdDSA signature for deleting a block from a backup.
+Package: GNU Taler
+
+Number: 1454
+Name: SYNC_OBJECT_UPLOAD
+Comment: EdDSA signature for uploading a blob to the hash-indexed object store.
+Package: GNU Taler
+
#
# Donau signatures, >= 1500