2018-11-29 05:23:40 +00:00
|
|
|
# beacon_chain
|
2020-04-15 07:59:47 +00:00
|
|
|
# Copyright (c) 2018-2020 Status Research & Development GmbH
|
2018-11-29 05:23:40 +00:00
|
|
|
# Licensed and distributed under either of
|
2019-11-25 15:30:02 +00:00
|
|
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
|
|
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
2018-11-29 05:23:40 +00:00
|
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
|
|
|
|
# Temporary dumping ground for extra types and helpers that could make it into
|
|
|
|
# the spec potentially
|
2020-03-05 12:52:10 +00:00
|
|
|
#
|
|
|
|
# The `skipXXXValidation` flags are used to skip over certain checks that are
|
|
|
|
# normally done when an untrusted block arrives from the network. The
|
|
|
|
# primary use case for this flag is when a proposer must propose a new
|
|
|
|
# block - in order to do so, it needs to update the state as if the block
|
|
|
|
# was valid, before it can sign it. Also useful for some testing, fuzzing with
|
|
|
|
# improved coverage, and to avoid unnecessary validation when replaying trusted
|
|
|
|
# (previously validated) blocks.
|
2018-11-29 05:23:40 +00:00
|
|
|
|
2018-12-27 23:40:22 +00:00
|
|
|
type
|
|
|
|
UpdateFlag* = enum
|
2020-01-30 21:03:47 +00:00
|
|
|
skipMerkleValidation ##\
|
|
|
|
## When processing deposits, skip verifying the Merkle proof trees of each
|
2020-04-15 07:59:47 +00:00
|
|
|
## deposit.
|
2020-03-05 12:52:10 +00:00
|
|
|
skipBlsValidation ##\
|
|
|
|
## Skip verification of BLS signatures in block processing.
|
|
|
|
## Predominantly intended for use in testing, e.g. to allow extra coverage.
|
|
|
|
## Also useful to avoid unnecessary work when replaying known, good blocks.
|
|
|
|
skipStateRootValidation ##\
|
|
|
|
## Skip verification of block state root.
|
|
|
|
skipBlockParentRootValidation ##\
|
|
|
|
## Skip verification that the block's parent root matches the previous block header.
|
2018-12-27 23:40:22 +00:00
|
|
|
|
|
|
|
UpdateFlags* = set[UpdateFlag]
|