From 6e1cf00435d15a597f467af74f33fcff686f3ca2 Mon Sep 17 00:00:00 2001 From: drsk Date: Mon, 9 Dec 2024 14:48:18 +0100 Subject: [PATCH 1/4] Extend PoolInfoResponse and PoolCurrentPaydayInfo This adds information about suspension to the above data types. --- v2/concordium/types.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/v2/concordium/types.proto b/v2/concordium/types.proto index c11d705..e3ffb46 100644 --- a/v2/concordium/types.proto +++ b/v2/concordium/types.proto @@ -2186,6 +2186,10 @@ message PoolCurrentPaydayInfo { Amount delegated_capital = 7; // The commission rates that apply for the current reward period. CommissionRates commission_rates = 8; + // A flag indicating whether the pool owner is primed for suspension. + bool is_primed_for_suspension = 9; + // The number of missed rounds in the current reward period. + uint64 missed_rounds = 10; } // Type for the response of GetPoolInfo. @@ -2218,6 +2222,8 @@ message PoolInfoResponse { optional PoolCurrentPaydayInfo current_payday_info = 8; // Total capital staked across all pools, including passive delegation. Amount all_pool_total_capital = 9; + // A flag indicating whether the pool owner is suspended. + bool is_suspended = 10; } // Type for the response of GetPassiveDelegationInfo. From 1f9bce519a519af84c2e5bc160a36093f058798c Mon Sep 17 00:00:00 2001 From: drsk Date: Wed, 18 Dec 2024 14:34:39 +0100 Subject: [PATCH 2/4] updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b60750f..10fa6af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ events to `BakerEvent`. - Added `validator_suspended` and `validator_primed_for_suspension` cases for `BlockSpecialEvent`. + - Extended `PoolCurrentPaydayInfo` and `PoolInfoResponse`. - Add `GetConsensusDetailedStatus` endpoint for querying detailed consensus status information. - Add `GetScheduledReleaseAccounts` endpoint for querying the list of accounts that From f1e5d506c16ae185adf24d89f0ce5a28f93c25c5 Mon Sep 17 00:00:00 2001 From: drsk <827698+drsk0@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:52:44 +0100 Subject: [PATCH 3/4] Update v2/concordium/types.proto Co-authored-by: Thomas Dinsdale-Young --- v2/concordium/types.proto | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/v2/concordium/types.proto b/v2/concordium/types.proto index e3ffb46..f5718dd 100644 --- a/v2/concordium/types.proto +++ b/v2/concordium/types.proto @@ -2187,9 +2187,11 @@ message PoolCurrentPaydayInfo { // The commission rates that apply for the current reward period. CommissionRates commission_rates = 8; // A flag indicating whether the pool owner is primed for suspension. - bool is_primed_for_suspension = 9; + // Absent if the protocol version does not support validator suspension. + optional bool is_primed_for_suspension = 9; // The number of missed rounds in the current reward period. - uint64 missed_rounds = 10; + // Absent if the protocol version does not support validator suspension. + optional uint64 missed_rounds = 10; } // Type for the response of GetPoolInfo. From 7e969677fb09b9cc8adff191237b355fba96e3db Mon Sep 17 00:00:00 2001 From: drsk <827698+drsk0@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:52:51 +0100 Subject: [PATCH 4/4] Update v2/concordium/types.proto Co-authored-by: Thomas Dinsdale-Young --- v2/concordium/types.proto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v2/concordium/types.proto b/v2/concordium/types.proto index f5718dd..b7741a7 100644 --- a/v2/concordium/types.proto +++ b/v2/concordium/types.proto @@ -2225,7 +2225,8 @@ message PoolInfoResponse { // Total capital staked across all pools, including passive delegation. Amount all_pool_total_capital = 9; // A flag indicating whether the pool owner is suspended. - bool is_suspended = 10; + // Absent if the protocol version does not support validator suspension. + optional bool is_suspended = 10; } // Type for the response of GetPassiveDelegationInfo.