Skip to content

Commit

Permalink
Default to local payload should set block to not blind (#12243)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored Apr 5, 2023
1 parent 9214364 commit 2eb2f87
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func (vs *Server) setExecutionData(ctx context.Context, blk interfaces.SignedBea
blk.SetBlinded(true)
if err := blk.SetExecution(builderPayload); err != nil {
log.WithError(err).Warn("Proposer: failed to set builder payload")
blk.SetBlinded(false)
} else {
return nil
}
Expand All @@ -102,12 +103,12 @@ func (vs *Server) setExecutionData(ctx context.Context, blk interfaces.SignedBea
blk.SetBlinded(true)
if err := blk.SetExecution(builderPayload); err != nil {
log.WithError(err).Warn("Proposer: failed to set builder payload")
blk.SetBlinded(false)
} else {
return nil
}
}
}

}

executionData, err := vs.getExecutionPayload(ctx, slot, idx, blk.Block().ParentRoot(), headState)
Expand Down

0 comments on commit 2eb2f87

Please sign in to comment.