From 4badf63cfda65e52e09224200a3db3b675e7a3dc Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 19 Jul 2019 11:23:47 -0700 Subject: [PATCH] Update struct order arbitrarily to match rpc output (#5197) (#5199) automerge --- core/src/rpc.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/rpc.rs b/core/src/rpc.rs index 693d204ca6..2afcabd86d 100644 --- a/core/src/rpc.rs +++ b/core/src/rpc.rs @@ -215,11 +215,11 @@ pub struct RpcEpochInfo { /// The current epoch pub epoch: u64, - /// The number of slots in this epoch - pub slots_in_epoch: u64, - /// The current slot, relative to the start of the current epoch pub slot_index: u64, + + /// The number of slots in this epoch + pub slots_in_epoch: u64, } #[rpc(server)] @@ -380,8 +380,8 @@ impl RpcSol for RpcSolImpl { let (epoch, slot_index) = epoch_schedule.get_epoch_and_slot_index(bank.slot()); Ok(RpcEpochInfo { epoch, - slots_in_epoch: epoch_schedule.get_slots_in_epoch(epoch), slot_index, + slots_in_epoch: epoch_schedule.get_slots_in_epoch(epoch), }) }