Split SDK's timing.rs (#5823)

This commit is contained in:
Jack May
2019-09-06 14:30:56 -07:00
committed by GitHub
parent cc8575dd96
commit e8d88f3237
44 changed files with 169 additions and 163 deletions

View File

@ -781,7 +781,7 @@ fn process_delegate_stake(
)),
Some(root_slot) => {
let slot = rpc_client.get_slot()?;
if root_slot + solana_sdk::timing::DEFAULT_SLOTS_PER_TURN < slot {
if root_slot + solana_sdk::clock::DEFAULT_SLOTS_PER_TURN < slot {
Err(WalletError::BadParameter(
format!(
"Unable to delegate. Vote account root slot ({}) is too old, the current slot is {}", root_slot, slot
@ -1307,8 +1307,8 @@ fn process_ping(
// Sleep for half a slot
if signal_receiver
.recv_timeout(Duration::from_millis(
500 * solana_sdk::timing::DEFAULT_TICKS_PER_SLOT
/ solana_sdk::timing::DEFAULT_TICKS_PER_SECOND,
500 * solana_sdk::clock::DEFAULT_TICKS_PER_SLOT
/ solana_sdk::clock::DEFAULT_TICKS_PER_SECOND,
))
.is_ok()
{