Versions in this module Expand all Collapse all v0 v0.1.0 Nov 14, 2023 Changes in this version + const EvidenceAgeHeight + const EvidenceAgeTime + const ModeFull + const ModeLight + const ModeSeed + const ModeValidator + const PerturbationDisconnect + const PerturbationKill + const PerturbationPause + const PerturbationRestart + const PerturbationUpgrade + const ProtocolBuiltin + const ProtocolBuiltinConnSync + const ProtocolFile + const ProtocolGRPC + const ProtocolTCP + const ProtocolUNIX + type InfrastructureData struct + Instances map[string]InstanceData + Network string + Path string + Provider string + func InfrastructureDataFromFile(p string) (InfrastructureData, error) + func NewDockerInfrastructureData(m Manifest) (InfrastructureData, error) + type InstanceData struct + ExtIPAddress net.IP + IPAddress net.IP + Port uint32 + type Manifest struct + ABCIProtocol string + ABCITestsEnabled bool + CheckTxDelay time.Duration + DisablePexReactor bool + Evidence int + ExperimentalMaxGossipConnectionsToNonPersistentPeers uint + ExperimentalMaxGossipConnectionsToPersistentPeers uint + FinalizeBlockDelay time.Duration + IPv6 bool + InitialHeight int64 + InitialState map[string]string + KeyType string + LoadTxBatchSize int + LoadTxConnections int + LoadTxSizeBytes int + Nodes map[string]*ManifestNode + PeerGossipIntraloopSleepDuration time.Duration + PrepareProposalDelay time.Duration + ProcessProposalDelay time.Duration + Prometheus bool + UpgradeVersion string + ValidatorUpdates map[string]map[string]int64 + Validators *map[string]int64 + VoteExtensionDelay time.Duration + VoteExtensionSize uint + VoteExtensionsEnableHeight int64 + func LoadManifest(file string) (Manifest, error) + func (m Manifest) Save(file string) error + type ManifestNode struct + BlockSyncVersion string + Database string + EnableCompanionPruning bool + Mode string + PersistInterval *uint64 + PersistentPeers []string + Perturb []string + PrivvalProtocol string + RetainBlocks uint64 + Seeds []string + SendNoLoad bool + SnapshotInterval uint64 + StartAt int64 + StateSync bool + Version string + type Mode string + type Node struct + ABCIProtocol Protocol + BlockSyncVersion string + Database string + EnableCompanionPruning bool + ExternalIP net.IP + GRPCPrivilegedProxyPort uint32 + GRPCProxyPort uint32 + InternalIP net.IP + Mode Mode + Name string + NodeKey crypto.PrivKey + PersistInterval uint64 + PersistentPeers []*Node + Perturbations []Perturbation + PrivvalKey crypto.PrivKey + PrivvalProtocol Protocol + Prometheus bool + PrometheusProxyPort uint32 + RPCProxyPort uint32 + RetainBlocks uint64 + Seeds []*Node + SendNoLoad bool + SnapshotInterval uint64 + StartAt int64 + StateSync bool + Testnet *Testnet + Version string + func (n Node) AddressP2P(withID bool) string + func (n Node) AddressRPC() string + func (n Node) Client() (*rpchttp.HTTP, error) + func (n Node) GRPCClient(ctx context.Context) (grpcclient.Client, error) + func (n Node) GRPCPrivilegedClient(ctx context.Context) (grpcprivileged.Client, error) + func (n Node) Stateless() bool + func (n Node) Validate(testnet Testnet) error + type Perturbation string + type Protocol string + type Testnet struct + ABCIProtocol string + ABCITestsEnabled bool + CheckTxDelay time.Duration + Dir string + DisablePexReactor bool + Evidence int + ExperimentalMaxGossipConnectionsToNonPersistentPeers uint + ExperimentalMaxGossipConnectionsToPersistentPeers uint + File string + FinalizeBlockDelay time.Duration + IP *net.IPNet + InitialHeight int64 + InitialState map[string]string + KeyType string + LoadTxBatchSize int + LoadTxConnections int + LoadTxSizeBytes int + Name string + Nodes []*Node + PeerGossipIntraloopSleepDuration time.Duration + PrepareProposalDelay time.Duration + ProcessProposalDelay time.Duration + Prometheus bool + UpgradeVersion string + ValidatorUpdates map[int64]map[*Node]int64 + Validators map[*Node]int64 + VoteExtensionDelay time.Duration + VoteExtensionSize uint + VoteExtensionsEnableHeight int64 + func LoadTestnet(file string, ifd InfrastructureData) (*Testnet, error) + func NewTestnetFromManifest(manifest Manifest, file string, ifd InfrastructureData) (*Testnet, error) + func (t Testnet) ArchiveNodes() []*Node + func (t Testnet) HasPerturbations() bool + func (t Testnet) IPv6() bool + func (t Testnet) LookupNode(name string) *Node + func (t Testnet) RandomNode() *Node + func (t Testnet) Validate() error + func (t Testnet) WritePrometheusConfig() error