Versions in this module Expand all Collapse all v0 v0.34.24 Sep 22, 2023 Changes in this version + const ModeFull + const ModeLight + const ModeSeed + const ModeValidator + const PerturbationDisconnect + const PerturbationKill + const PerturbationPause + const PerturbationRestart + const ProtocolBuiltin + const ProtocolFile + const ProtocolGRPC + const ProtocolTCP + const ProtocolUNIX + type InfrastructureData struct + Instances map[string]InstanceData + Network string + Provider string + func InfrastructureDataFromFile(p string) (InfrastructureData, error) + func NewDockerInfrastructureData(m Manifest) (InfrastructureData, error) + type InstanceData struct + IPAddress net.IP + type Manifest struct + ABCIProtocol string + IPv6 bool + InitialHeight int64 + InitialState map[string]string + KeyType string + Nodes map[string]*ManifestNode + ValidatorUpdates map[string]map[string]int64 + Validators *map[string]int64 + func LoadManifest(file string) (Manifest, error) + func (m Manifest) Save(file string) error + type ManifestNode struct + Database string + FastSync string + Mempool string + Misbehaviors map[string]string + Mode string + PersistInterval *uint64 + PersistentPeers []string + Perturb []string + PrivvalProtocol string + RetainBlocks uint64 + Seeds []string + SnapshotInterval uint64 + StartAt int64 + StateSync bool + type Mode string + type Node struct + ABCIProtocol Protocol + Database string + FastSync string + IP net.IP + Mempool string + Misbehaviors map[int64]string + Mode Mode + Name string + NodeKey crypto.PrivKey + PersistInterval uint64 + PersistentPeers []*Node + Perturbations []Perturbation + PrivvalKey crypto.PrivKey + PrivvalProtocol Protocol + ProxyPort uint32 + RetainBlocks uint64 + Seeds []*Node + SnapshotInterval uint64 + StartAt int64 + StateSync bool + Testnet *Testnet + func (n Node) AddressP2P(withID bool) string + func (n Node) AddressRPC() string + func (n Node) Client() (*rpchttp.HTTP, error) + func (n Node) Stateless() bool + func (n Node) Validate(testnet Testnet) error + type Perturbation string + type Protocol string + type Testnet struct + ABCIProtocol string + Dir string + File string + IP *net.IPNet + InitialHeight int64 + InitialState map[string]string + KeyType string + Name string + Nodes []*Node + ValidatorUpdates map[int64]map[*Node]int64 + Validators map[*Node]int64 + func LoadTestnet(manifest Manifest, fname string, ifd InfrastructureData) (*Testnet, error) + func (t Testnet) ArchiveNodes() []*Node + func (t Testnet) HasPerturbations() bool + func (t Testnet) IPv6() bool + func (t Testnet) LastMisbehaviorHeight() int64 + func (t Testnet) LookupNode(name string) *Node + func (t Testnet) RandomNode() *Node + func (t Testnet) Validate() error