Use type alias

This commit is contained in:
Ryo Onodera
2020-04-14 09:29:22 +09:00
committed by Michael Vines
parent 5f1c637508
commit cfc7b22c4c

View File

@ -20,7 +20,7 @@ use solana_runtime::{
transaction_batch::TransactionBatch, transaction_batch::TransactionBatch,
}; };
use solana_sdk::{ use solana_sdk::{
clock::{Slot, MAX_PROCESSING_AGE, MAX_RECENT_BLOCKHASHES}, clock::{Epoch, Slot, MAX_PROCESSING_AGE, MAX_RECENT_BLOCKHASHES},
genesis_config::{GenesisConfig, OperatingMode}, genesis_config::{GenesisConfig, OperatingMode},
hash::Hash, hash::Hash,
pubkey::Pubkey, pubkey::Pubkey,
@ -57,7 +57,7 @@ fn first_err(results: &[Result<()>]) -> Result<()> {
Ok(()) Ok(())
} }
const MAX_AGE_CORRECTION_EPOCH: u64 = 14; const MAX_AGE_CORRECTION_EPOCH: Epoch = 14;
fn execute_batch( fn execute_batch(
batch: &TransactionBatch, batch: &TransactionBatch,