Add insturctions to run a replicator on testnet (#4733)

This commit is contained in:
Sagar Dhawan
2019-06-21 16:32:23 -07:00
committed by GitHub
parent 36aa876833
commit 22b767308a
7 changed files with 163 additions and 44 deletions

View File

@ -303,7 +303,7 @@ impl Replicator {
})
}
pub fn run(&mut self, mining_pool_pubkey: Option<Pubkey>) {
pub fn run(&mut self, mining_pool_pubkey: Pubkey) {
info!("waiting for ledger download");
self.thread_handles.pop().unwrap().join().unwrap();
self.encrypt_ledger()
@ -330,9 +330,7 @@ impl Replicator {
}
};
self.blockhash = storage_blockhash;
if let Some(mining_pool_pubkey) = mining_pool_pubkey {
self.redeem_rewards(&mining_pool_pubkey);
}
self.redeem_rewards(&mining_pool_pubkey);
}
}