Documentation ¶
Index ¶
- Constants
- func CreateDummyEconomicsConfig() config.EconomicsConfig
- func CreateDummyRatingsConfig() config.RatingsConfig
- func FillGasMapMetaChainSystemSCsCosts(value uint64) map[string]uint64
- func GetBootStrapFactoryArgs() bootstrapComp.BootstrapComponentsFactoryArgs
- func GetConsensusArgs(shardCoordinator sharding.Coordinator) consensusComp.ConsensusComponentsFactoryArgs
- func GetCoreArgs() coreComp.CoreComponentsFactoryArgs
- func GetCoreComponents() factory.CoreComponentsHolder
- func GetCryptoArgs(coreComponents factory.CoreComponentsHolder) cryptoComp.CryptoComponentsFactoryArgs
- func GetCryptoComponents(coreComponents factory.CoreComponentsHolder) factory.CryptoComponentsHolder
- func GetDataArgs(coreComponents factory.CoreComponentsHolder, ...) dataComp.DataComponentsFactoryArgs
- func GetDataComponents(coreComponents factory.CoreComponentsHolder, ...) factory.DataComponentsHolder
- func GetDefaultCoreComponents() *mock.CoreComponentsMock
- func GetDefaultCryptoComponents() *mock.CryptoComponentsMock
- func GetDefaultDataComponents() *mock.DataComponentsMock
- func GetDefaultNetworkComponents() *mock.NetworkComponentsMock
- func GetDefaultProcessComponents(shardCoordinator sharding.Coordinator) *mock.ProcessComponentsMock
- func GetDefaultStateComponents() *factory.StateComponentsMock
- func GetEpochStartConfig() config.EpochStartConfig
- func GetGeneralConfig() config.Config
- func GetNetworkComponents(cryptoComp factory.CryptoComponentsHolder) factory.NetworkComponentsHolder
- func GetNetworkFactoryArgs() networkComp.NetworkComponentsFactoryArgs
- func GetProcessArgs(shardCoordinator sharding.Coordinator, ...) processComp.ProcessComponentsFactoryArgs
- func GetProcessComponents(shardCoordinator sharding.Coordinator, ...) factory.ProcessComponentsHolder
- func GetProcessComponentsFactoryArgs(shardCoordinator sharding.Coordinator) processComp.ProcessComponentsFactoryArgs
- func GetStateComponents(coreComponents factory.CoreComponentsHolder) factory.StateComponentsHolder
- func GetStateFactoryArgs(coreComponents factory.CoreComponentsHolder) stateComp.StateComponentsFactoryArgs
- func GetStatusComponents(coreComponents factory.CoreComponentsHolder, ...) factory.StatusComponentsHandler
- func GetStatusComponentsFactoryArgsAndProcessComponents(shardCoordinator sharding.Coordinator) (statusComp.StatusComponentsFactoryArgs, factory.ProcessComponentsHolder)
- func GetStatusCoreArgs(coreComponents factory.CoreComponentsHolder) statusCore.StatusCoreComponentsFactoryArgs
- func GetStatusCoreComponents() factory.StatusCoreComponentsHolder
- func SetShardCoordinator(t *testing.T, bootstrapComponents factory.BootstrapComponentsHolder, ...)
- type LoadKeysFunc
Constants ¶
const ConsecutiveMissedBlocksPenalty = 1.1
ConsecutiveMissedBlocksPenalty -
const DummyPk = "629e1245577afb7717ccb46b6ff3649bdd6a1311514ad4a7695da13f801cc277ee24e730a7fa8aa6c612159b4328db17" +
"35692d0bded3a2264ba621d6bda47a981d60e17dd306d608e0875a0ba19639fb0844661f519472a175ca9ed2f33fbe16"
DummyPk -
const DummySk = "cea01c0bf060187d90394802ff223078e47527dc8aa33a922744fb1d06029c4b"
DummySk -
const SignedBlocksThreshold = 0.025
SignedBlocksThreshold -
const TestHasher = "blake2b"
TestHasher -
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 ¶
FillGasMapMetaChainSystemSCsCosts -
func GetBootStrapFactoryArgs ¶
func GetBootStrapFactoryArgs() bootstrapComp.BootstrapComponentsFactoryArgs
GetBootStrapFactoryArgs -
func GetConsensusArgs ¶
func GetConsensusArgs(shardCoordinator sharding.Coordinator) consensusComp.ConsensusComponentsFactoryArgs
GetConsensusArgs -
func GetCryptoArgs ¶
func GetCryptoArgs(coreComponents factory.CoreComponentsHolder) cryptoComp.CryptoComponentsFactoryArgs
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() *factory.StateComponentsMock
GetDefaultStateComponents -
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) factory.StateComponentsHolder
GetStateComponents -
func GetStateFactoryArgs ¶
func GetStateFactoryArgs(coreComponents factory.CoreComponentsHolder) stateComp.StateComponentsFactoryArgs
GetStateFactoryArgs -
func GetStatusComponents ¶
func GetStatusComponents( coreComponents factory.CoreComponentsHolder, networkComponents factory.NetworkComponentsHolder, 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 ¶
func GetStatusCoreArgs(coreComponents factory.CoreComponentsHolder) statusCore.StatusCoreComponentsFactoryArgs
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 ¶
LoadKeysFunc -
func DummyLoadSkPkFromPemFile ¶
func DummyLoadSkPkFromPemFile(sk []byte, pk string, err error) LoadKeysFunc
DummyLoadSkPkFromPemFile -