Skip to content

Commit f354981

Browse files
eth/catalyst: return syncing not accepted (#25414)
* eth/catalyst: return syncing not accepted * eth/catalyst: fix test
1 parent f26b630 commit f354981

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eth/catalyst/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ func (api *ConsensusAPI) delayPayloadImport(block *types.Block) (beacon.PayloadS
428428
// and cannot afford concurrent out-if-band modifications via imports.
429429
log.Warn("Ignoring payload while snap syncing", "number", block.NumberU64(), "hash", block.Hash())
430430
}
431-
return beacon.PayloadStatusV1{Status: beacon.ACCEPTED}, nil
431+
return beacon.PayloadStatusV1{Status: beacon.SYNCING}, nil
432432
}
433433

434434
// setInvalidAncestor is a callback for the downloader to notify us if a bad block

eth/catalyst/api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@ func TestEmptyBlocks(t *testing.T) {
662662
if err != nil {
663663
t.Fatal(err)
664664
}
665-
if status.Status != beacon.ACCEPTED {
666-
t.Errorf("invalid status: expected ACCEPTED got: %v", status.Status)
665+
if status.Status != beacon.SYNCING {
666+
t.Errorf("invalid status: expected SYNCING got: %v", status.Status)
667667
}
668668
if status.LatestValidHash != nil {
669669
t.Fatalf("invalid LVH: got %v wanted nil", status.LatestValidHash)

0 commit comments

Comments
 (0)