Use Slot and Epoch type aliases instead of raw u64 (#6693)

automerge
This commit is contained in:
Michael Vines
2019-11-02 00:38:30 -07:00
committed by Grimes
parent f9a9b7f610
commit 50a17fc00b
41 changed files with 583 additions and 473 deletions

View File

@@ -7,9 +7,11 @@ extern crate test;
extern crate solana_ledger;
use rand::Rng;
use solana_ledger::blocktree::{entries_to_test_shreds, get_tmp_ledger_path, Blocktree};
use solana_ledger::entry::{create_ticks, Entry};
use solana_sdk::hash::Hash;
use solana_ledger::{
blocktree::{entries_to_test_shreds, get_tmp_ledger_path, Blocktree},
entry::{create_ticks, Entry},
};
use solana_sdk::{clock::Slot, hash::Hash};
use std::path::Path;
use test::Bencher;
@@ -30,7 +32,7 @@ fn setup_read_bench(
blocktree: &mut Blocktree,
num_small_shreds: u64,
num_large_shreds: u64,
slot: u64,
slot: Slot,
) {
// Make some big and small entries
let entries = create_ticks(