Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API: Add KV counts to NodeStatusResponse #428

Merged
merged 1 commit into from
Nov 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ public class NodeStatusResponse extends PathResponse {
@JsonProperty("catchpoint-processed-accounts")
public Long catchpointProcessedAccounts;

/**
* The number of key-values (KVs) from the current catchpoint that have been
* processed so far as part of the catchup
*/
@JsonProperty("catchpoint-processed-kvs")
public Long catchpointProcessedKvs;

/**
* The total number of accounts included in the current catchpoint
*/
Expand All @@ -40,13 +47,26 @@ public class NodeStatusResponse extends PathResponse {
@JsonProperty("catchpoint-total-blocks")
public Long catchpointTotalBlocks;

/**
* The total number of key-values (KVs) included in the current catchpoint
*/
@JsonProperty("catchpoint-total-kvs")
public Long catchpointTotalKvs;

/**
* The number of accounts from the current catchpoint that have been verified so
* far as part of the catchup
*/
@JsonProperty("catchpoint-verified-accounts")
public Long catchpointVerifiedAccounts;

/**
* The number of key-values (KVs) from the current catchpoint that have been
* verified so far as part of the catchup
*/
@JsonProperty("catchpoint-verified-kvs")
public Long catchpointVerifiedKvs;

/**
* CatchupTime in nanoseconds
*/
Expand Down Expand Up @@ -113,9 +133,12 @@ public boolean equals(Object o) {
if (!Objects.deepEquals(this.catchpoint, other.catchpoint)) return false;
if (!Objects.deepEquals(this.catchpointAcquiredBlocks, other.catchpointAcquiredBlocks)) return false;
if (!Objects.deepEquals(this.catchpointProcessedAccounts, other.catchpointProcessedAccounts)) return false;
if (!Objects.deepEquals(this.catchpointProcessedKvs, other.catchpointProcessedKvs)) return false;
if (!Objects.deepEquals(this.catchpointTotalAccounts, other.catchpointTotalAccounts)) return false;
if (!Objects.deepEquals(this.catchpointTotalBlocks, other.catchpointTotalBlocks)) return false;
if (!Objects.deepEquals(this.catchpointTotalKvs, other.catchpointTotalKvs)) return false;
if (!Objects.deepEquals(this.catchpointVerifiedAccounts, other.catchpointVerifiedAccounts)) return false;
if (!Objects.deepEquals(this.catchpointVerifiedKvs, other.catchpointVerifiedKvs)) return false;
if (!Objects.deepEquals(this.catchupTime, other.catchupTime)) return false;
if (!Objects.deepEquals(this.lastCatchpoint, other.lastCatchpoint)) return false;
if (!Objects.deepEquals(this.lastRound, other.lastRound)) return false;
Expand Down