From beb5b58b4bf4ad11bdc1637b70478b7955e287fb Mon Sep 17 00:00:00 2001 From: drk Date: Mon, 4 Sep 2023 22:45:50 -0500 Subject: [PATCH] bugfix: added subReorg check on relayPh --- core/slice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/slice.go b/core/slice.go index fdbc7eae59..1c73a916ec 100644 --- a/core/slice.go +++ b/core/slice.go @@ -359,7 +359,7 @@ func (sl *Slice) relayPh(block *types.Block, pendingHeaderWithTermini types.Pend } else { log.Warn("Pending Header for Best ph key does not exist", "best ph key", sl.bestPhKey) } - } else if !domOrigin { + } else if !domOrigin && subReorg { for _, i := range sl.randomRelayArray() { if sl.subClients[i] != nil { sl.subClients[i].SubRelayPendingHeader(context.Background(), pendingHeaderWithTermini, pendingHeaderWithTermini.Header().ParentEntropy(), location, subReorg)