Update struct order arbitrarily to match rpc output (#5197) (#5199)

automerge
This commit is contained in:
mergify[bot]
2019-07-19 11:23:47 -07:00
committed by Grimes
parent d04fd3c3ab
commit 4badf63cfd

View File

@ -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),
})
}