From 649ff76ca79d4ab64857048edc82a9a4ecd84edd Mon Sep 17 00:00:00 2001 From: Potuz Date: Thu, 12 Feb 2026 19:20:45 +0100 Subject: [PATCH] James' catch --- beacon-chain/forkchoice/doubly-linked-tree/gloas.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon-chain/forkchoice/doubly-linked-tree/gloas.go b/beacon-chain/forkchoice/doubly-linked-tree/gloas.go index 044e4369dd..7d6e8b9047 100644 --- a/beacon-chain/forkchoice/doubly-linked-tree/gloas.go +++ b/beacon-chain/forkchoice/doubly-linked-tree/gloas.go @@ -132,12 +132,12 @@ func (s *Store) parentHash(pn *PayloadNode) [32]byte { // latestHashForRoot returns the latest payload hash for the given block root. func (s *Store) latestHashForRoot(root [32]byte) [32]byte { // try to get the full node first - fn, ok := s.fullNodeByRoot[root] - if ok && fn != nil { + fn := s.fullNodeByRoot[root] + if fn != nil { return fn.node.blockHash } en := s.emptyNodeByRoot[root] - if !ok || en == nil { + if en == nil { // This should not happen return [32]byte{} }