make newPayload/forkchoiceUpdated failures errors (#3989)
This commit is contained in:
parent
c0668367de
commit
3ad1d251ef
|
@ -123,7 +123,7 @@ proc runForkchoiceUpdated*(
|
||||||
|
|
||||||
return fcuR.payloadStatus.status
|
return fcuR.payloadStatus.status
|
||||||
except CatchableError as err:
|
except CatchableError as err:
|
||||||
debug "runForkchoiceUpdated: forkchoiceUpdated failed",
|
error "runForkchoiceUpdated: forkchoiceUpdated failed",
|
||||||
err = err.msg
|
err = err.msg
|
||||||
return PayloadExecutionStatus.syncing
|
return PayloadExecutionStatus.syncing
|
||||||
|
|
||||||
|
|
|
@ -436,7 +436,7 @@ proc newExecutionPayload*(
|
||||||
|
|
||||||
return payloadStatus
|
return payloadStatus
|
||||||
except CatchableError as err:
|
except CatchableError as err:
|
||||||
debug "newPayload failed", msg = err.msg
|
error "newPayload failed", msg = err.msg
|
||||||
return PayloadExecutionStatus.syncing
|
return PayloadExecutionStatus.syncing
|
||||||
|
|
||||||
from ../consensus_object_pools/blockchain_dag import
|
from ../consensus_object_pools/blockchain_dag import
|
||||||
|
@ -513,9 +513,9 @@ proc runQueueProcessingLoop*(self: ref BlockProcessor) {.async.} =
|
||||||
await newExecutionPayload(
|
await newExecutionPayload(
|
||||||
self.consensusManager.eth1Monitor, executionPayload)
|
self.consensusManager.eth1Monitor, executionPayload)
|
||||||
except CatchableError as err:
|
except CatchableError as err:
|
||||||
info "runQueueProcessingLoop: newPayload failed",
|
error "runQueueProcessingLoop: newPayload failed",
|
||||||
err = err.msg
|
err = err.msg
|
||||||
# https://github.com/ethereum/consensus-specs/blob/v1.2.0-rc.1/sync/optimistic.md#execution-engine-errors
|
# https://github.com/ethereum/consensus-specs/blob/v1.2.0-rc.2/sync/optimistic.md#execution-engine-errors
|
||||||
if not blck.resfut.isNil:
|
if not blck.resfut.isNil:
|
||||||
blck.resfut.complete(
|
blck.resfut.complete(
|
||||||
Result[void, BlockError].err(BlockError.MissingParent))
|
Result[void, BlockError].err(BlockError.MissingParent))
|
||||||
|
|
Loading…
Reference in New Issue