(cherry picked from commit c64d4f7693
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
@ -880,7 +880,7 @@ pub fn process_get_block(
|
|||||||
let slot = if let Some(slot) = slot {
|
let slot = if let Some(slot) = slot {
|
||||||
slot
|
slot
|
||||||
} else {
|
} else {
|
||||||
rpc_client.get_slot()?
|
rpc_client.get_slot_with_commitment(CommitmentConfig::max())?
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut block =
|
let mut block =
|
||||||
@ -958,7 +958,7 @@ pub fn process_get_block_time(
|
|||||||
let slot = if let Some(slot) = slot {
|
let slot = if let Some(slot) = slot {
|
||||||
slot
|
slot
|
||||||
} else {
|
} else {
|
||||||
rpc_client.get_slot()?
|
rpc_client.get_slot_with_commitment(CommitmentConfig::max())?
|
||||||
};
|
};
|
||||||
let timestamp = rpc_client.get_block_time(slot)?;
|
let timestamp = rpc_client.get_block_time(slot)?;
|
||||||
let block_time = CliBlockTime { slot, timestamp };
|
let block_time = CliBlockTime { slot, timestamp };
|
||||||
|
Reference in New Issue
Block a user