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:
Jimmy Chen
2026-04-28 10:15:10 +02:00
committed by GitHub
parent 949c027dfd
commit 919c996c18

View File

@@ -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)
{