Improve hard fork message with more detail (#25214)
This commit is contained in:
parent
3d96a1ab76
commit
592aa4c21b
|
@ -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!(
|
||||
|
|
Loading…
Reference in New Issue