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

automerge
This commit is contained in:
mergify[bot]
2019-07-25 12:21:56 -07:00
committed by Grimes
parent 575f30c54f
commit b1b217f12c
2 changed files with 43 additions and 0 deletions

View File

@@ -839,6 +839,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],