Fix poh recorder not flushing virtual ticks immediately (#5277)

* Fix poh not flushing virtual ticks immediately

* Fix test_would_be_leader_soon
This commit is contained in:
Sagar Dhawan
2019-07-25 11:08:44 -07:00
committed by GitHub
parent 27bc0a22dd
commit a233a1c822
2 changed files with 43 additions and 0 deletions

View File

@ -876,6 +876,13 @@ impl Bank {
.collect()
}
pub fn check_hash_age(&self, hash: &Hash, max_age: usize) -> bool {
self.blockhash_queue
.read()
.unwrap()
.check_hash_age(hash, max_age)
}
pub fn check_transactions(
&self,
txs: &[Transaction],