byzantine

package
v0.2102.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 58 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CfgFakeSGX configures registering with SGX capability.
	CfgFakeSGX = "fake_sgx"
	// CfgRuntimeID configures the runtime ID Byzantine node participates in.
	CfgRuntimeID = "runtime_id"
	// CfgVersionFakeEnclaveID configures runtime's EnclaveIdentity.
	CfgVersionFakeEnclaveID = "runtime.version.fake_enclave_id"
	// CfgActivationEpoch configures the epoch at which the Byzantine node activates.
	CfgActivationEpoch = "activation_epoch"
	// CfgSchedulerRoleExpected configures if the executor scheduler role is expected.
	CfgSchedulerRoleExpected = "scheduler_role_expected"
	// CfgExecutorMode configures the byzantine executor mode.
	CfgExecutorMode = "executor_mode"
	// CfgBeaconMode configures the byzantine beacon mode.
	CfgBeaconMode = "beacon_mode"
)
View Source
const (
	// CfgNumStorageFailApply configures how many apply requests the storage
	// node should fail.
	CfgNumStorageFailApply = "num_storage_fail_apply"
	// CfgNumStorageFailApplyBatch configures how many apply-batch requests
	// the storage node should fail.
	CfgNumStorageFailApplyBatch = "num_storage_fail_apply_batch"
	// CfgFailReadRequests configures whether the storage node should fail read requests.
	CfgFailReadRequests = "fail_read_requests"
	// CfgCorruptGetDiff configures whether the storage node should corrupt GetDiff responses.
	CfgCorruptGetDiff = "corrupt_get_diff"
)
View Source
const LogEventBeaconRoundCompleted = "byzantine/beacon/round_completed"

LogEventBeaconRoundCompleted is the event emitted when the byzantine beacon (in)correctly executes a round.

Variables

This section is empty.

Functions

func Register

func Register(parentCmd *cobra.Command)

Register registers the byzantine sub-command and all of its children.

Types

type BeaconMode added in v0.2100.0

type BeaconMode uint32

BeaconMode represents the byzantine beacon mode.

const (
	ModeBeaconHonest BeaconMode = iota
	ModeBeaconCommitStraggler
	ModeBeaconRevealStraggler
)

BeaconModes.

func (*BeaconMode) FromString added in v0.2100.0

func (m *BeaconMode) FromString(s string) error

FromString deserializes a string into a beacon mode.

func (BeaconMode) String added in v0.2100.0

func (m BeaconMode) String() string

String returns a string representation of a beacon mode.

type ExecutorMode added in v0.2100.0

type ExecutorMode uint32

ExecutorMode represents the byzantine executor mode.

const (
	ModeExecutorHonest            ExecutorMode = 0
	ModeExecutorWrong             ExecutorMode = 1
	ModeExecutorStraggler         ExecutorMode = 2
	ModeExecutorFailureIndicating ExecutorMode = 3
)

Executor modes.

func (*ExecutorMode) FromString added in v0.2100.0

func (m *ExecutorMode) FromString(str string) error

FromString deserializes a string into a executor mode.

func (ExecutorMode) String added in v0.2100.0

func (m ExecutorMode) String() string

String returns a string representation of a executor mode.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL