Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NodeCountFlag = "node-count"
View Source
var StartNodesCmd = &cobra.Command{ Use: "start-nodes", Short: "Start Chainlink nodes", RunE: func(cmd *cobra.Command, _ []string) error { nodeCount, err := cmd.Flags().GetInt(NodeCountFlag) if err != nil { return err } log.Logger = logging.GetLogger(nil, "CORE_DOCKER_ENV_LOG_LEVEL") log.Info().Msg("Starting docker test env with Chainlink nodes..") config, err := testconfig.GetConfig("Smoke", testconfig.OCR2) if err != nil { return err } ethBuilder := ctf_test_env.NewEthereumNetworkBuilder() network, err := ethBuilder. WithExistingConfig(*config.GetPrivateEthereumNetworkConfig()). Build() if err != nil { return err } _, err = test_env.NewCLTestEnvBuilder(). WithTestConfig(&config). WithPrivateEthereumNetwork(network.EthereumNetworkConfig). WithMockAdapter(). WithCLNodes(nodeCount). WithoutCleanup(). Build() if err != nil { return err } log.Info().Msg("Test env is ready") handleExitSignal() return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.