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(
|
let payloadBuilderClientMaybe = node.getPayloadBuilderClient(
|
||||||
validator_index.distinctBase)
|
validator_index.distinctBase)
|
||||||
if payloadBuilderClientMaybe.isErr:
|
if payloadBuilderClientMaybe.isOk:
|
||||||
warn "Unable to initialize payload builder client while proposing block",
|
|
||||||
err = payloadBuilderClientMaybe.error
|
|
||||||
else:
|
|
||||||
payloadBuilderClient = payloadBuilderClientMaybe.get
|
payloadBuilderClient = payloadBuilderClientMaybe.get
|
||||||
|
|
||||||
let usePayloadBuilder =
|
let usePayloadBuilder =
|
||||||
if node.config.payloadBuilderEnable and payloadBuilderClientMaybe.isOk:
|
if payloadBuilderClientMaybe.isOk:
|
||||||
withState(node.dag.headState):
|
withState(node.dag.headState):
|
||||||
# Head slot, not proposal slot, matters here
|
# Head slot, not proposal slot, matters here
|
||||||
# TODO it might make some sense to allow use of builder API if local
|
# TODO it might make some sense to allow use of builder API if local
|
||||||
|
|
Loading…
Reference in New Issue