Skip to content

Commit

Permalink
handle when BlockValue=0
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmel committed Aug 21, 2024
1 parent e181099 commit 7a86c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func (b *Builder) runBuildingJob(slotCtx context.Context, proposerPubkey phase0.
sealedAt := time.Now()
queueMu.Lock()
defer queueMu.Unlock()
if payload.ExecutionPayload.BlockHash != queueLastSubmittedHash && payload.BlockValue.Cmp(queueBestBlockValue) > 0 {
if payload.ExecutionPayload.BlockHash != queueLastSubmittedHash && payload.BlockValue.Cmp(queueBestBlockValue) >= 0 {
queueLastSubmittedHash = payload.ExecutionPayload.BlockHash
queueBestBlockValue = payload.BlockValue

Expand Down

0 comments on commit 7a86c05

Please sign in to comment.