Documentation ¶
Index ¶
- func BuildGenesisDocs(network *NetworkInit, globals *core.GlobalValues, time time.Time, ...) (map[string]*tmtypes.GenesisDoc, error)
- func BuildNodesConfig(network *NetworkInit, mkcfg MakeConfigFunc) [][][2]*config.Config
- func ConfigureNodePorts(node *NodeInit, cfg *config.Config, offset config.PortOffset)
- func LoadOrGenerateTmPrivKey(privFileName string) (ed25519.PrivKey, error)
- func WriteNodeFiles(cfg *config.Config, privValKey, nodeKey []byte, genDoc *tmtypes.GenesisDoc) (err error)
- type AddressType
- type BvnInit
- type Daemon
- func (d *Daemon) ConnectDirectly(e *Daemon) error
- func (d *Daemon) DB_TESTONLY() *database.Database
- func (d *Daemon) Done() <-chan struct{}
- func (d *Daemon) Jrpc_TESTONLY() *api.JrpcMethods
- func (d *Daemon) Key() crypto.PrivKey
- func (d *Daemon) LoadSnapshot(file ioutil2.SectionReader) error
- func (d *Daemon) LocalClient() (connections.ABCIClient, error)
- func (d *Daemon) Node_TESTONLY() *node.Node
- func (d *Daemon) Start() (err error)
- func (d *Daemon) Stop() error
- type DevnetOptions
- type MakeConfigFunc
- type NetworkInit
- type NodeInit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGenesisDocs ¶ added in v1.0.0
func BuildGenesisDocs(network *NetworkInit, globals *core.GlobalValues, time time.Time, logger log.Logger, factomAddresses func() (io.Reader, error), snapshots []func() (ioutil2.SectionReader, error)) (map[string]*tmtypes.GenesisDoc, error)
func BuildNodesConfig ¶ added in v1.0.0
func BuildNodesConfig(network *NetworkInit, mkcfg MakeConfigFunc) [][][2]*config.Config
func ConfigureNodePorts ¶ added in v1.0.0
func ConfigureNodePorts(node *NodeInit, cfg *config.Config, offset config.PortOffset)
func LoadOrGenerateTmPrivKey ¶ added in v1.0.0
func WriteNodeFiles ¶ added in v1.0.0
Types ¶
type AddressType ¶ added in v1.0.0
type AddressType int
const ( ListenAddress AddressType = iota AdvertizeAddress PeerAddress )
type BvnInit ¶ added in v1.0.0
type BvnInit struct { Id string `json:"id,omitempty" form:"id" query:"id" validate:"required"` Nodes []*NodeInit `json:"nodes,omitempty" form:"nodes" query:"nodes" validate:"required"` }
func (*BvnInit) MarshalJSON ¶ added in v1.0.0
func (*BvnInit) Peers ¶ added in v1.0.0
func (b *BvnInit) Peers(node *NodeInit, offset ...config.PortOffset) []string
func (*BvnInit) UnmarshalJSON ¶ added in v1.0.0
type Daemon ¶
type Daemon struct { Config *config.Config Logger tmlog.Logger // knobs for tests // IsTest bool UseMemDB bool // contains filtered or unexported fields }
func (*Daemon) ConnectDirectly ¶ added in v0.5.1
func (*Daemon) DB_TESTONLY ¶
func (*Daemon) Jrpc_TESTONLY ¶
func (d *Daemon) Jrpc_TESTONLY() *api.JrpcMethods
func (*Daemon) LoadSnapshot ¶ added in v1.0.0
func (d *Daemon) LoadSnapshot(file ioutil2.SectionReader) error
func (*Daemon) LocalClient ¶ added in v1.0.0
func (d *Daemon) LocalClient() (connections.ABCIClient, error)
func (*Daemon) Node_TESTONLY ¶
type DevnetOptions ¶ added in v1.0.0
type MakeConfigFunc ¶ added in v1.0.0
type NetworkInit ¶ added in v1.0.0
type NetworkInit struct { Id string `json:"id,omitempty" form:"id" query:"id" validate:"required"` Bvns []*BvnInit `json:"bvns,omitempty" form:"bvns" query:"bvns" validate:"required"` }
func NewDevnet ¶ added in v1.0.0
func NewDevnet(opts DevnetOptions) *NetworkInit
func (*NetworkInit) MarshalJSON ¶ added in v1.0.0
func (v *NetworkInit) MarshalJSON() ([]byte, error)
func (*NetworkInit) Peers ¶ added in v1.0.0
func (n *NetworkInit) Peers(node *NodeInit, offset ...config.PortOffset) []string
func (*NetworkInit) UnmarshalJSON ¶ added in v1.0.0
func (v *NetworkInit) UnmarshalJSON(data []byte) error
type NodeInit ¶ added in v1.0.0
type NodeInit struct { DnnType config.NodeType `json:"dnnType,omitempty" form:"dnnType" query:"dnnType" validate:"required"` BvnnType config.NodeType `json:"bvnnType,omitempty" form:"bvnnType" query:"bvnnType" validate:"required"` BasePort uint64 `json:"basePort,omitempty" form:"basePort" query:"basePort" validate:"required"` AdvertizeAddress string `json:"advertizeAddress,omitempty" form:"advertizeAddress" query:"advertizeAddress" validate:"required"` ListenAddress string `json:"listenAddress,omitempty" form:"listenAddress" query:"listenAddress" validate:"required"` PeerAddress string `json:"peerAddress,omitempty" form:"peerAddress" query:"peerAddress" validate:"required"` PrivValKey []byte `json:"privValKey,omitempty" form:"privValKey" query:"privValKey" validate:"required"` NodeKey []byte `json:"nodeKey,omitempty" form:"nodeKey" query:"nodeKey" validate:"required"` }
func (*NodeInit) Address ¶ added in v1.0.0
func (n *NodeInit) Address(typ AddressType, scheme string, offset ...config.PortOffset) string
func (*NodeInit) MarshalJSON ¶ added in v1.0.0
func (*NodeInit) UnmarshalJSON ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.