Skip to content

Commit

Permalink
add timestamp based fields
Browse files Browse the repository at this point in the history
Signed-off-by: p4u <pau@dabax.net>
  • Loading branch information
p4u committed Jan 5, 2024
1 parent 4cc6d07 commit eabc3b4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/vochain/vochain.proto
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ enum TxType {
DEL_ACCOUNT_SIK = 25;
REGISTER_SIK = 26;
SET_ACCOUNT_VALIDATOR = 27;
SET_PROCESS_DURATION = 28;
}

message Tx {
Expand Down Expand Up @@ -204,6 +205,7 @@ message SetProcessTx {
// tempSIKs flag decides if when the process has finished, the SIKs related
// to it will be removed or not
optional bool tempSIKs = 10;
optional uint32 duration = 11;
}

message AdminTx {
Expand Down Expand Up @@ -292,9 +294,9 @@ message Process {
// EntityId identifies unequivocally an entity
bytes entityId = 2;
// StartBlock represents the tendermint block where the process goes from scheduled to active
uint32 startBlock = 3;
uint32 startBlock = 3; // deprecated
// BlockCount represents the amount of tendermint blocks that the process will last
uint32 blockCount = 4;
uint32 blockCount = 4; // deprecated
// CensusRoot merkle root of all the census in the process
bytes censusRoot = 5;
// CensusURI where to find the census
Expand Down Expand Up @@ -343,6 +345,10 @@ message Process {
// tempSIKs flag decides if when the process has finished, the SIKs related
// to it will be removed or not
optional bool tempSIKs = 34;
// The unix timestamp of the start of the process
uint32 startTime = 35;
// The duration of the process in seconds
uint32 duration = 36;
}

enum ProcessStatus {
Expand Down

0 comments on commit eabc3b4

Please sign in to comment.