remove less-than-useful warning (#5245)
* remove less-than-useful warning * remove redundant check for node.config.payloadBuilderEnable
This commit is contained in:
parent
2ae2d0a042
commit
d97027fb43
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue