From bad1e38746d87e0b428100efaebc7f60d8ad449a Mon Sep 17 00:00:00 2001 From: Ori Newman Date: Tue, 29 Nov 2022 11:34:26 +0200 Subject: [PATCH] Fix syntax --- app/protocol/flows/v5/blockrelay/ibd_with_headers_proof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/protocol/flows/v5/blockrelay/ibd_with_headers_proof.go b/app/protocol/flows/v5/blockrelay/ibd_with_headers_proof.go index 5e6adf928..d3e345d8d 100644 --- a/app/protocol/flows/v5/blockrelay/ibd_with_headers_proof.go +++ b/app/protocol/flows/v5/blockrelay/ibd_with_headers_proof.go @@ -85,7 +85,7 @@ func (flow *handleIBDFlow) shouldSyncAndShouldDownloadHeadersProof( return true, true, nil } - if !highestKnownSyncerChainHash { + if highestKnownSyncerChainHash == nil { log.Infof("Stopping IBD since IBD from this node will cause a finality conflict") return false, false, nil }