From d22945c0e1ac3e55e218ac93a1f8c2d30d37c972 Mon Sep 17 00:00:00 2001 From: jacek-casper <145967538+jacek-casper@users.noreply.github.com> Date: Thu, 1 Aug 2024 15:32:42 +0100 Subject: [PATCH] Update GetRewardResult (#190) Signed-off-by: Jacek Malec <145967538+jacek-casper@users.noreply.github.com> --- lib/rpcs/v2_0_0/get_reward.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/rpcs/v2_0_0/get_reward.rs b/lib/rpcs/v2_0_0/get_reward.rs index 1b6cd023..751256ed 100644 --- a/lib/rpcs/v2_0_0/get_reward.rs +++ b/lib/rpcs/v2_0_0/get_reward.rs @@ -1,4 +1,4 @@ -use casper_types::{EraId, ProtocolVersion, PublicKey, U512}; +use casper_types::{BlockHash, EraId, ProtocolVersion, PublicKey, U512}; use serde::{Deserialize, Serialize}; use crate::rpcs::common::BlockIdentifier; @@ -53,4 +53,6 @@ pub struct GetRewardResult { pub era_id: EraId, /// The delegation rate of the validator. pub delegation_rate: u8, + /// The switch block hash at which the reward was distributed. + pub switch_block_hash: BlockHash, }