mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
Add additional logs to validator client
This commit is contained in:
@@ -1386,10 +1386,14 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
|
||||
new_head.beacon_state.build_all_caches(&self.spec)?;
|
||||
|
||||
trace!(self.log, "Taking write lock on head");
|
||||
|
||||
// Update the checkpoint that stores the head of the chain at the time it received the
|
||||
// block.
|
||||
*self.canonical_head.write() = new_head;
|
||||
|
||||
trace!(self.log, "Dropping write lock on head");
|
||||
|
||||
// Save `self` to `self.store`.
|
||||
self.persist()?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user