Skip to content

Commit

Permalink
Update BlockInfo to also include properties needed for migration re…
Browse files Browse the repository at this point in the history
…cords

Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
  • Loading branch information
mhess-swl committed Nov 14, 2023
1 parent 2dff325 commit 47ab744
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion services/state/blockrecords/block_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ option java_package = "com.hederahashgraph.api.proto.java";
option java_multiple_files = true;

/**
* Information about the most recently completed and last 256 blocks.
* Information about ongoing, most recently completed, and last 256 blocks.
*/
message BlockInfo {
/**
Expand All @@ -47,4 +47,16 @@ message BlockInfo {
* If we are shortly after genesis and there are less than 256 blocks then this could contain less than 256 hashes.
*/
bytes block_hashes = 3;
/**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*/
Timestamp cons_time_of_last_handled_txn = 4;
/**
* A flag indicating whether migration records have been published. This property should be marked 'false'
* immediately following a node upgrade, and marked 'true' once the migration records (if any) are published, which
* should happen during the first transaction handled by the node.
*/
bool migration_records_streamed = 5;
}

0 comments on commit 47ab744

Please sign in to comment.