rm debugRaiseAssert (#5629)
This commit is contained in:
parent
925d531884
commit
23983c34ac
|
@ -1029,9 +1029,6 @@ func checkForkConsistency*(cfg: RuntimeConfig) =
|
||||||
# won't be hit.
|
# won't be hit.
|
||||||
const denebImplementationMissing* = false
|
const denebImplementationMissing* = false
|
||||||
|
|
||||||
#template debugRaiseAssert*(x: string) = raiseAssert x
|
|
||||||
template debugRaiseAssert*(x: string) = discard
|
|
||||||
|
|
||||||
func ofLen*[T, N](ListType: type List[T, N], n: int): ListType =
|
func ofLen*[T, N](ListType: type List[T, N], n: int): ListType =
|
||||||
if n < N:
|
if n < N:
|
||||||
distinctBase(result).setLen(n)
|
distinctBase(result).setLen(n)
|
||||||
|
|
|
@ -648,8 +648,8 @@ template firstSuccessSequential*(
|
||||||
if not(bodyFut.finished()):
|
if not(bodyFut.finished()):
|
||||||
await bodyFut.cancelAndWait()
|
await bodyFut.cancelAndWait()
|
||||||
raise exc
|
raise exc
|
||||||
except CatchableError as exc:
|
except CatchableError:
|
||||||
# This case could not be happened.
|
# This case should not happen.
|
||||||
ApiOperation.Failure
|
ApiOperation.Failure
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
@ -668,7 +668,7 @@ template firstSuccessSequential*(
|
||||||
pending.add(timerFut.cancelAndWait())
|
pending.add(timerFut.cancelAndWait())
|
||||||
await noCancel allFutures(pending)
|
await noCancel allFutures(pending)
|
||||||
raise exc
|
raise exc
|
||||||
except CatchableError as exc:
|
except CatchableError:
|
||||||
# This case should not happen.
|
# This case should not happen.
|
||||||
ApiOperation.Failure
|
ApiOperation.Failure
|
||||||
|
|
||||||
|
@ -2344,11 +2344,7 @@ proc publishBlindedBlock*(
|
||||||
of ConsensusFork.Capella:
|
of ConsensusFork.Capella:
|
||||||
publishBlindedBlock(it, data.capellaData)
|
publishBlindedBlock(it, data.capellaData)
|
||||||
of ConsensusFork.Deneb:
|
of ConsensusFork.Deneb:
|
||||||
debugRaiseAssert $denebImplementationMissing &
|
publishBlindedBlock(it, data.denebData)
|
||||||
": validator_client/api.nim:publishBlindedBlock (1)"
|
|
||||||
let f = newFuture[RestPlainResponse]("")
|
|
||||||
f.fail(new RestError)
|
|
||||||
f
|
|
||||||
do:
|
do:
|
||||||
if apiResponse.isErr():
|
if apiResponse.isErr():
|
||||||
handleCommunicationError()
|
handleCommunicationError()
|
||||||
|
@ -2393,11 +2389,7 @@ proc publishBlindedBlock*(
|
||||||
of ConsensusFork.Capella:
|
of ConsensusFork.Capella:
|
||||||
publishBlindedBlock(it, data.capellaData)
|
publishBlindedBlock(it, data.capellaData)
|
||||||
of ConsensusFork.Deneb:
|
of ConsensusFork.Deneb:
|
||||||
debugRaiseAssert $denebImplementationMissing &
|
publishBlindedBlock(it, data.denebData)
|
||||||
": validator_client/api.nim:publishBlindedBlock (2)"
|
|
||||||
let f = newFuture[RestPlainResponse]("")
|
|
||||||
f.fail(new RestError)
|
|
||||||
f
|
|
||||||
do:
|
do:
|
||||||
if apiResponse.isErr():
|
if apiResponse.isErr():
|
||||||
handleCommunicationError()
|
handleCommunicationError()
|
||||||
|
|
Loading…
Reference in New Issue