Add a way to re-hash the bank (#10765)
This commit is contained in:
@ -817,6 +817,15 @@ impl Bank {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn rehash(&self) {
|
||||
let mut hash = self.hash.write().unwrap();
|
||||
let new = self.hash_internal_state();
|
||||
if new != *hash {
|
||||
warn!("Updating bank hash to {}", new);
|
||||
*hash = new;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn freeze(&self) {
|
||||
let mut hash = self.hash.write().unwrap();
|
||||
|
||||
|
Reference in New Issue
Block a user