protos/storage.proto in libra_client-0.1.7 vs protos/storage.proto in libra_client-0.2.1
- old
+ new
@@ -43,10 +43,14 @@
returns (GetAccountStateWithProofByVersionResponse);
// Returns information needed for libra core to start up.
rpc GetStartupInfo(GetStartupInfoRequest)
returns (GetStartupInfoResponse);
+
+ // Returns latest ledger infos per epoch.
+ rpc GetLatestLedgerInfosPerEpoch(GetLatestLedgerInfosPerEpochRequest)
+ returns (GetLatestLedgerInfosPerEpochResponse);
}
message SaveTransactionsRequest {
// Transactions to persist.
repeated types.TransactionToCommit txns_to_commit = 1;
@@ -110,6 +114,16 @@
uint64 latest_version = 2;
// The latest account state root hash.
bytes account_state_root_hash = 3;
// From left to right, root hashes of all frozen subtrees.
repeated bytes ledger_frozen_subtree_hashes = 4;
+}
+
+message GetLatestLedgerInfosPerEpochRequest {
+ /// The last epoch number with available information to the client.
+ uint64 start_epoch = 1;
+}
+
+message GetLatestLedgerInfosPerEpochResponse {
+ /// Vector of latest ledger infos per epoch (not sorted)
+ repeated types.LedgerInfoWithSignatures latest_ledger_infos = 1;
}