Use a better name for new api

This commit is contained in:
Sagar Dhawan
2019-04-12 14:38:30 -07:00
committed by Grimes
parent 1db80d79fc
commit 1e8f83a74a
2 changed files with 5 additions and 5 deletions

View File

@ -383,7 +383,7 @@ impl Bank {
self.blockhash_queue.read().unwrap().last_hash()
}
/// Return the root bank's blockhash
pub fn get_confirmed_blockhash(&self) -> Hash {
pub fn confirmed_last_blockhash(&self) -> Hash {
if let Some(bank) = self.parents().last() {
bank.last_blockhash()
} else {