mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +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 new_snapshot = &new_cached_head.snapshot;
|
||||||
let old_snapshot = &old_cached_head.snapshot;
|
let old_snapshot = &old_cached_head.snapshot;
|
||||||
|
|
||||||
// If the head changed, perform some updates.
|
// Only run on head *block* changes - payload status changes only need the
|
||||||
if (new_snapshot.beacon_block_root != old_snapshot.beacon_block_root
|
// `cached_head` update above, not re-org detection or event emission.
|
||||||
|| new_payload_status != old_payload_status)
|
if new_snapshot.beacon_block_root != old_snapshot.beacon_block_root
|
||||||
&& let Err(e) =
|
&& let Err(e) =
|
||||||
self.after_new_head(&old_cached_head, &new_cached_head, new_head_proto_block)
|
self.after_new_head(&old_cached_head, &new_cached_head, new_head_proto_block)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user