components

package
v1.5.13 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: GPL-3.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const ConsecutiveMissedBlocksPenalty = 1.1

ConsecutiveMissedBlocksPenalty -

View Source
const DummyPk = "629e1245577afb7717ccb46b6ff3649bdd6a1311514ad4a7695da13f801cc277ee24e730a7fa8aa6c612159b4328db17" +
	"35692d0bded3a2264ba621d6bda47a981d60e17dd306d608e0875a0ba19639fb0844661f519472a175ca9ed2f33fbe16"

DummyPk -

View Source
const DummySk = "cea01c0bf060187d90394802ff223078e47527dc8aa33a922744fb1d06029c4b"

DummySk -

View Source
const SignedBlocksThreshold = 0.025

SignedBlocksThreshold -

View Source
const TestHasher = "blake2b"

TestHasher -

View Source
const TestMarshalizer = "json"

TestMarshalizer -

Variables

This section is empty.

Functions

func CreateDummyEconomicsConfig

func CreateDummyEconomicsConfig() config.EconomicsConfig

CreateDummyEconomicsConfig -

func CreateDummyRatingsConfig

func CreateDummyRatingsConfig() config.RatingsConfig

CreateDummyRatingsConfig -

func FillGasMapMetaChainSystemSCsCosts

func FillGasMapMetaChainSystemSCsCosts(value uint64) map[string]uint64

FillGasMapMetaChainSystemSCsCosts -

func GetBootStrapFactoryArgs

func GetBootStrapFactoryArgs() bootstrapComp.BootstrapComponentsFactoryArgs

GetBootStrapFactoryArgs -

func GetConsensusArgs

func GetConsensusArgs(shardCoordinator sharding.Coordinator) consensusComp.ConsensusComponentsFactoryArgs

GetConsensusArgs -

func GetCoreArgs

func GetCoreArgs() coreComp.CoreComponentsFactoryArgs

GetCoreArgs -

func GetCoreComponents

func GetCoreComponents() factory.CoreComponentsHolder

GetCoreComponents -

func GetCryptoArgs

GetCryptoArgs -

func GetCryptoComponents

func GetCryptoComponents(coreComponents factory.CoreComponentsHolder) factory.CryptoComponentsHolder

GetCryptoComponents -

func GetDataArgs

func GetDataArgs(coreComponents factory.CoreComponentsHolder, shardCoordinator sharding.Coordinator) dataComp.DataComponentsFactoryArgs

GetDataArgs -

func GetDataComponents

func GetDataComponents(coreComponents factory.CoreComponentsHolder, shardCoordinator sharding.Coordinator) factory.DataComponentsHolder

GetDataComponents -

func GetDefaultCoreComponents

func GetDefaultCoreComponents() *mock.CoreComponentsMock

GetDefaultCoreComponents -

func GetDefaultCryptoComponents

func GetDefaultCryptoComponents() *mock.CryptoComponentsMock

GetDefaultCryptoComponents -

func GetDefaultDataComponents

func GetDefaultDataComponents() *mock.DataComponentsMock

GetDefaultDataComponents -

func GetDefaultNetworkComponents

func GetDefaultNetworkComponents() *mock.NetworkComponentsMock

GetDefaultNetworkComponents -

func GetDefaultProcessComponents

func GetDefaultProcessComponents(shardCoordinator sharding.Coordinator) *mock.ProcessComponentsMock

GetDefaultProcessComponents -

func GetDefaultStateComponents

func GetDefaultStateComponents() *testscommon.StateComponentsMock

GetDefaultStateComponents -

func GetEpochStartConfig

func GetEpochStartConfig() config.EpochStartConfig

GetEpochStartConfig -

func GetGeneralConfig

func GetGeneralConfig() config.Config

GetGeneralConfig -

func GetNetworkComponents

func GetNetworkComponents(cryptoComp factory.CryptoComponentsHolder) factory.NetworkComponentsHolder

GetNetworkComponents -

func GetNetworkFactoryArgs

func GetNetworkFactoryArgs() networkComp.NetworkComponentsFactoryArgs

GetNetworkFactoryArgs -

func GetProcessArgs

func GetProcessArgs(
	shardCoordinator sharding.Coordinator,
	coreComponents factory.CoreComponentsHolder,
	dataComponents factory.DataComponentsHolder,
	cryptoComponents factory.CryptoComponentsHolder,
	stateComponents factory.StateComponentsHolder,
	networkComponents factory.NetworkComponentsHolder,
) processComp.ProcessComponentsFactoryArgs

GetProcessArgs -

func GetProcessComponents

func GetProcessComponents(
	shardCoordinator sharding.Coordinator,
	coreComponents factory.CoreComponentsHolder,
	networkComponents factory.NetworkComponentsHolder,
	dataComponents factory.DataComponentsHolder,
	cryptoComponents factory.CryptoComponentsHolder,
	stateComponents factory.StateComponentsHolder,
) factory.ProcessComponentsHolder

GetProcessComponents -

func GetProcessComponentsFactoryArgs

func GetProcessComponentsFactoryArgs(shardCoordinator sharding.Coordinator) processComp.ProcessComponentsFactoryArgs

GetProcessComponentsFactoryArgs -

func GetStateComponents

func GetStateComponents(coreComponents factory.CoreComponentsHolder, shardCoordinator sharding.Coordinator) factory.StateComponentsHolder

GetStateComponents -

func GetStateFactoryArgs

func GetStateFactoryArgs(coreComponents factory.CoreComponentsHolder, shardCoordinator sharding.Coordinator) stateComp.StateComponentsFactoryArgs

GetStateFactoryArgs -

func GetStatusComponents

func GetStatusComponents(
	coreComponents factory.CoreComponentsHolder,
	networkComponents factory.NetworkComponentsHolder,
	dataComponents factory.DataComponentsHolder,
	stateComponents factory.StateComponentsHolder,
	shardCoordinator sharding.Coordinator,
	nodesCoordinator nodesCoordinator.NodesCoordinator,
) factory.StatusComponentsHandler

GetStatusComponents -

func GetStatusComponentsFactoryArgsAndProcessComponents

func GetStatusComponentsFactoryArgsAndProcessComponents(shardCoordinator sharding.Coordinator) (statusComp.StatusComponentsFactoryArgs, factory.ProcessComponentsHolder)

GetStatusComponentsFactoryArgsAndProcessComponents -

func GetStatusCoreArgs

GetStatusCoreArgs -

func GetStatusCoreComponents

func GetStatusCoreComponents() factory.StatusCoreComponentsHolder

GetStatusCoreComponents -

func SetShardCoordinator

func SetShardCoordinator(t *testing.T, bootstrapComponents factory.BootstrapComponentsHolder, coordinator sharding.Coordinator)

SetShardCoordinator -

Types

type LoadKeysFunc

type LoadKeysFunc func(string, int) ([]byte, string, error)

LoadKeysFunc -

func DummyLoadSkPkFromPemFile

func DummyLoadSkPkFromPemFile(sk []byte, pk string, err error) LoadKeysFunc

DummyLoadSkPkFromPemFile -

Jump to

Keyboard shortcuts

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