remove less-than-useful warning (#5245)

* remove less-than-useful warning

* remove redundant check for node.config.payloadBuilderEnable
This commit is contained in:
tersec 2023-08-06 15:12:32 +00:00 committed by GitHub
parent 2ae2d0a042
commit d97027fb43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -809,14 +809,11 @@ proc proposeBlockAux(
let payloadBuilderClientMaybe = node.getPayloadBuilderClient(
validator_index.distinctBase)
if payloadBuilderClientMaybe.isErr:
warn "Unable to initialize payload builder client while proposing block",
err = payloadBuilderClientMaybe.error
else:
if payloadBuilderClientMaybe.isOk:
payloadBuilderClient = payloadBuilderClientMaybe.get
let usePayloadBuilder =
if node.config.payloadBuilderEnable and payloadBuilderClientMaybe.isOk:
if payloadBuilderClientMaybe.isOk:
withState(node.dag.headState):
# Head slot, not proposal slot, matters here
# TODO it might make some sense to allow use of builder API if local