make newPayload/forkchoiceUpdated failures errors (#3989)

This commit is contained in:
tersec 2022-08-18 12:57:32 +00:00 committed by GitHub
parent c0668367de
commit 3ad1d251ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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))