# README
Developing with tmpnet
The load/
and warp/
paths contain end-to-end (e2e) tests that use
the tmpnet
fixture. By
default both test suites use the tmpnet fixture to create a temporary
network that exists for only the duration of their execution.
It is possible to create a temporary network that can be reused across test runs to minimize the setup cost involved:
# From the root of a clone of avalanchego, build the tmpnetctl cli
$ ./scripts/build_tmpnetctl.sh
# Start a new temporary network configured with subnet-evm's default plugin path
$ ./build/tmpnetctl start-network \
--avalanche-path=./build/avalanchego
--plugin-dir=$GOPATH/src/github.com/ava-labs/avalanchego/build/plugins
# From the root of a clone of subnet-evm, execute the warp test suite against the existing network
$ ginkgo -vv ./tests/warp -- --use-existing-network --network-dir=$HOME/.tmpnet/networks/latest
# To stop the temporary network when no longer needed, execute the following from the root of the clone of avalanchego
$ ./build/tmpnetctl stop-network --network-dir=$HOME/.tmpnet/networks/latest
The network started by tmpnetctl
won't come with subnets configured,
so the test suite will add them to the network the first time it
runs. Subsequent test runs will be able to reuse those subnets without
having to set them up.
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AvailableForks returns the set of defined fork names.
FromHex returns the bytes represented by the hexadecimal string s.
GetChainConfig takes a fork definition and returns a chain config.
No description provided by the author
No description provided by the author
# Variables
Forks table defines supported forks and their chain config.
# Structs
RLPTest is the JSON structure of a single RLP test.
StateSubtest selects a specific configuration of a General State Test.
StateTest checks transaction processing without block context.
UnsupportedForkError is returned when a test requests a fork that isn't implemented.