byzantine

package
v0.2202.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 55 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 = "executor.scheduler_role_expected"
	// CfgExecutorMode configures the byzantine executor mode.
	CfgExecutorMode = "executor.mode"
	// CfgExecutorProposeBogusTx configures whether the executor in scheduler role should propose
	// transactions that nobody else has.
	CfgExecutorProposeBogusTx = "executor.propose_bogus_tx"
	// CfgVRFBeaconMode configures the byzantine VRF beacon mode.
	CfgVRFBeaconMode = "vrf_beacon_mode"
)
View Source
const (
	// CfgFailReadRequests configures whether the storage node should fail read requests.
	CfgFailReadRequests = "storage.fail_read_requests"
	// CfgCorruptGetDiff configures whether the storage node should corrupt GetDiff responses.
	CfgCorruptGetDiff = "storage.corrupt_get_diff"
)
View Source
const LogEventVRFBeaconRoundCompleted = "byzantine/vrf_beacon/round_completed"

LogEventVRFBeaconRoundCompleted is the event emitted when the byzantine VRF 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 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.

type VRFBeaconMode added in v0.2200.0

type VRFBeaconMode uint32

VRFBeaconMode represents the byzantine VRF beacon mode.

const (
	ModeVRFBeaconHonest VRFBeaconMode = iota
	ModeVRFBeaconEarly
	ModeVRFBeaconMissing
)

VRF Beacon modes.

func (*VRFBeaconMode) FromString added in v0.2200.0

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

FromString deserializes a string into a beacon mode.

func (VRFBeaconMode) String added in v0.2200.0

func (m VRFBeaconMode) String() string

String returns a string representation of a VRF beacon mode.

Jump to

Keyboard shortcuts

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