From f3549814a9f3198a700211c31a59a081d9c4bcf9 Mon Sep 17 00:00:00 2001
From: Marius van der Wijden <m.vanderwijden@live.de>
Date: Thu, 28 Jul 2022 15:01:35 +0200
Subject: [PATCH] eth/catalyst: return syncing not accepted (#25414)

* eth/catalyst: return syncing not accepted

* eth/catalyst: fix test
---
 eth/catalyst/api.go      | 2 +-
 eth/catalyst/api_test.go | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go
index 7903a7e88..6287bdab4 100644
--- a/eth/catalyst/api.go
+++ b/eth/catalyst/api.go
@@ -428,7 +428,7 @@ func (api *ConsensusAPI) delayPayloadImport(block *types.Block) (beacon.PayloadS
 		// and cannot afford concurrent out-if-band modifications via imports.
 		log.Warn("Ignoring payload while snap syncing", "number", block.NumberU64(), "hash", block.Hash())
 	}
-	return beacon.PayloadStatusV1{Status: beacon.ACCEPTED}, nil
+	return beacon.PayloadStatusV1{Status: beacon.SYNCING}, nil
 }
 
 // setInvalidAncestor is a callback for the downloader to notify us if a bad block
diff --git a/eth/catalyst/api_test.go b/eth/catalyst/api_test.go
index 0372aad6b..df302f821 100644
--- a/eth/catalyst/api_test.go
+++ b/eth/catalyst/api_test.go
@@ -662,8 +662,8 @@ func TestEmptyBlocks(t *testing.T) {
 	if err != nil {
 		t.Fatal(err)
 	}
-	if status.Status != beacon.ACCEPTED {
-		t.Errorf("invalid status: expected ACCEPTED got: %v", status.Status)
+	if status.Status != beacon.SYNCING {
+		t.Errorf("invalid status: expected SYNCING got: %v", status.Status)
 	}
 	if status.LatestValidHash != nil {
 		t.Fatalf("invalid LVH: got %v wanted nil", status.LatestValidHash)