Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBlsPrivateKeys ¶
GenerateBlsPrivateKeys will generate bls keys
func NewChainSimulator ¶
func NewChainSimulator(args ArgsChainSimulator) (*simulator, error)
NewChainSimulator will create a new instance of simulator
func NewChainSimulatorFacade ¶
func NewChainSimulatorFacade(chainSimulator ChainSimulator) (*chainSimulatorFacade, error)
NewChainSimulatorFacade returns the chain simulator facade
Types ¶
type ArgsChainSimulator ¶
type ArgsChainSimulator struct { BypassTxSignatureCheck bool TempDir string PathToInitialConfig string NumOfShards uint32 MinNodesPerShard uint32 MetaChainMinNodes uint32 NumNodesWaitingListShard uint32 NumNodesWaitingListMeta uint32 GenesisTimestamp int64 InitialRound int64 RoundDurationInMillis uint64 RoundsPerEpoch core.OptionalUint64 ApiInterface components.APIConfigurator AlterConfigsFunction func(cfg *config.Configs) }
ArgsChainSimulator holds the arguments needed to create a new instance of simulator
type ChainHandler ¶
ChainHandler defines what a chain handler should be able to do
type ChainSimulator ¶
type ChainSimulator interface { GenerateBlocks(numOfBlocks int) error GetNodeHandler(shardID uint32) process.NodeHandler IsInterfaceNil() bool }
ChainSimulator defines what a chain simulator should be able to do
Source Files ¶
Click to show internal directories.
Click to hide internal directories.