From 7cdfce2b6e16e13eb60705b3332862206fb0e28b Mon Sep 17 00:00:00 2001 From: Robin Bryce Date: Mon, 20 May 2024 11:27:49 +0100 Subject: [PATCH] feat: message for batch of active tenant logs --- .../assets/v2/assets/merklelogentry.proto | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/datatrails-common-api/assets/v2/assets/merklelogentry.proto b/datatrails-common-api/assets/v2/assets/merklelogentry.proto index a4fb7f5..571f1de 100644 --- a/datatrails-common-api/assets/v2/assets/merklelogentry.proto +++ b/datatrails-common-api/assets/v2/assets/merklelogentry.proto @@ -17,6 +17,29 @@ message MerkleLogCommit { string idtimestamp = 2; } +message MerkleLogActiveItem { + string tenant_identity = 1; + // -1 indicates not set + int64 massif = 2; + // -1 indicates not set + int64 seal = 3; + // Note: It is both ok and likely that occasionally the massif and seal + // numbers will differ or be absent. absence is indicated by negation. + + // the most recent last ids in the blob tag index for the massif and the seal + string massif_lastid = 4; + string seal_lastid = 5; +} + +message MerkleLogActiveSince { + // The idtimestamp used for the lastid > idtimestamp filter + string since_idtimestamp = 1; + // The regular unix time, in milliseconds, the watch set was create + int64 timestamp_ms = 2; + + repeated MerkleLogActiveItem items = 3; +} + message MerkleLogConfirm { // The following correspond to mmrblobs.MMRState