Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added sleep for NewPayloadV1 and Forkchoice #3561

Merged
merged 1 commit into from
Feb 21, 2022
Merged

added sleep for NewPayloadV1 and Forkchoice #3561

merged 1 commit into from
Feb 21, 2022

Conversation

Giulio2002
Copy link
Contributor

No description provided.

@Giulio2002 Giulio2002 added the proof-of-stake "The Merge" related commits label Feb 21, 2022
@@ -269,7 +271,7 @@ func (s *EthBackendServer) EngineNewPayloadV1(ctx context.Context, req *types2.E
if header.Hash() != blockHash {
return &remote.EnginePayloadStatus{Status: remote.EngineStatus_INVALID_BLOCK_HASH}, nil
}

time.Sleep(payloadWaitTime)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to sleep only if atomic.LoadUint32(s.waitingForBeaconChain) == 0

@yperbasis yperbasis merged commit 7f596e1 into devel Feb 21, 2022
@yperbasis yperbasis deleted the sleep-merge branch February 21, 2022 13:45
@yperbasis yperbasis mentioned this pull request Feb 21, 2022
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proof-of-stake "The Merge" related commits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants