Update struct order arbitrarily to match rpc output (#5197)
This commit is contained in:
@ -226,11 +226,11 @@ pub struct RpcEpochInfo {
|
|||||||
/// The current epoch
|
/// The current epoch
|
||||||
pub epoch: u64,
|
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
|
/// The current slot, relative to the start of the current epoch
|
||||||
pub slot_index: u64,
|
pub slot_index: u64,
|
||||||
|
|
||||||
|
/// The number of slots in this epoch
|
||||||
|
pub slots_in_epoch: u64,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rpc(server)]
|
#[rpc(server)]
|
||||||
@ -394,8 +394,8 @@ impl RpcSol for RpcSolImpl {
|
|||||||
let (epoch, slot_index) = epoch_schedule.get_epoch_and_slot_index(bank.slot());
|
let (epoch, slot_index) = epoch_schedule.get_epoch_and_slot_index(bank.slot());
|
||||||
Ok(RpcEpochInfo {
|
Ok(RpcEpochInfo {
|
||||||
epoch,
|
epoch,
|
||||||
slots_in_epoch: epoch_schedule.get_slots_in_epoch(epoch),
|
|
||||||
slot_index,
|
slot_index,
|
||||||
|
slots_in_epoch: epoch_schedule.get_slots_in_epoch(epoch),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user