Improve hard fork message with more detail (#25214)

This commit is contained in:
Ryo Onodera 2022-05-15 01:14:23 +09:00 committed by GitHub
parent 3d96a1ab76
commit 592aa4c21b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -6261,8 +6261,15 @@ impl Bank {
.unwrap()
.get_hash_data(self.slot(), self.parent_slot());
if let Some(buf) = buf {
info!("hard fork at bank {}", self.slot());
hash = extend_and_hash(&hash, &buf)
let hard_forked_hash = extend_and_hash(&hash, &buf);
warn!(
"hard fork at slot {} by hashing {:?}: {} => {}",
self.slot(),
buf,
hash,
hard_forked_hash
);
hash = hard_forked_hash;
}
info!(