Documentation
¶
Index ¶
- Constants
- Variables
- func GetDefaultChainURI(blockchainID string) string
- func GetFilesAndAliases(dir string) (map[string]string, error)
- func IssueTxsToActivateProposerVMFork(ctx context.Context, chainID *big.Int, fundedKey *ecdsa.PrivateKey, ...) error
- func NewTmpnetNetwork(owner string, nodes []*tmpnet.Node, flags tmpnet.FlagsMap) *tmpnet.Network
- func RegisterNodeRun()
- func RegisterPingTest()
- func RunCommand(bin string, args ...string) (*cmd.Cmd, error)
- type SubnetSuite
Constants ¶
View Source
const ( // Timeout to boot the AvalancheGo node BootAvalancheNodeTimeout = 5 * time.Minute // Timeout for the health API to check the AvalancheGo is ready HealthCheckTimeout = 5 * time.Second DefaultLocalNodeURI = "http://127.0.0.1:9650" )
Variables ¶
View Source
var DefaultChainConfig = map[string]any{ "log-level": "debug", "warp-api-enabled": true, "local-txs-enabled": true, }
Functions ¶
func GetDefaultChainURI ¶
GetDefaultChainURI returns the default chain URI for a given blockchainID
func GetFilesAndAliases ¶
GetFilesAndAliases returns a map of aliases to file paths in given [dir].
func IssueTxsToActivateProposerVMFork ¶
func IssueTxsToActivateProposerVMFork( ctx context.Context, chainID *big.Int, fundedKey *ecdsa.PrivateKey, client *ethclient.Client, ) error
IssueTxsToActivateProposerVMFork issues transactions at the current timestamp, which should be after the ProposerVM activation time (aka ApricotPhase4). This should generate a PostForkBlock because its parent block (genesis) has a timestamp (0) that is greater than or equal to the fork activation time of 0. Therefore, subsequent blocks should be built with BuildBlockWithContext.
func NewTmpnetNetwork ¶
func RegisterNodeRun ¶
func RegisterNodeRun()
RegisterNodeRun registers a before suite that starts an AvalancheGo process to use for the e2e tests and an after suite that stops the AvalancheGo process
func RegisterPingTest ¶
func RegisterPingTest()
Types ¶
type SubnetSuite ¶
type SubnetSuite struct {
// contains filtered or unexported fields
}
func (*SubnetSuite) GetBlockchainID ¶
func (s *SubnetSuite) GetBlockchainID(alias string) string
func (*SubnetSuite) SetBlockchainIDs ¶
func (s *SubnetSuite) SetBlockchainIDs(blockchainIDs map[string]string)
Click to show internal directories.
Click to hide internal directories.