Add/use get_tmp_ledger_path!() and tmp_copy_blocktree!()

This commit is contained in:
Michael Vines
2019-02-26 17:11:26 -08:00
parent 0174945853
commit a669241cb1
14 changed files with 85 additions and 74 deletions

View File

@@ -1,3 +1,6 @@
#[macro_use]
extern crate solana;
use log::trace;
use solana::bank_forks::BankForks;
use solana::blocktree::{get_tmp_ledger_path, Blocktree};
@@ -104,7 +107,7 @@ fn test_replay() {
let cref1 = Arc::new(RwLock::new(cluster_info1));
let dr_1 = new_gossip(cref1.clone(), target1.sockets.gossip, exit.clone());
let blocktree_path = get_tmp_ledger_path("test_replay");
let blocktree_path = get_tmp_ledger_path!();
let (blocktree, ledger_signal_receiver) =
Blocktree::open_with_config_signal(&blocktree_path, ticks_per_slot)