mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-29 10:43:42 +00:00
Fix spurious re-org logs on ePBS payload status changes (#9191)
Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
@@ -796,9 +796,9 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
let new_snapshot = &new_cached_head.snapshot;
|
||||
let old_snapshot = &old_cached_head.snapshot;
|
||||
|
||||
// If the head changed, perform some updates.
|
||||
if (new_snapshot.beacon_block_root != old_snapshot.beacon_block_root
|
||||
|| new_payload_status != old_payload_status)
|
||||
// Only run on head *block* changes - payload status changes only need the
|
||||
// `cached_head` update above, not re-org detection or event emission.
|
||||
if new_snapshot.beacon_block_root != old_snapshot.beacon_block_root
|
||||
&& let Err(e) =
|
||||
self.after_new_head(&old_cached_head, &new_cached_head, new_head_proto_block)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user