Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockConsumer ¶
type BlockConsumer struct { NodeArgs HttpApi string `arg:"--http.api" default:"admin,eth,debug,net,trace,web3,erigon,txpool" json:"http.api"` TorrentPort string `arg:"--torrent.port" default:"42070" json:"torrent.port"` NoDiscover string `arg:"--nodiscover" flag:"" default:"true" json:"nodiscover"` }
func (*BlockConsumer) Account ¶
func (n *BlockConsumer) Account() *accounts.Account
func (*BlockConsumer) IsBlockProducer ¶
func (n *BlockConsumer) IsBlockProducer() bool
type BlockProducer ¶
type BlockProducer struct { NodeArgs Mine bool `arg:"--mine" flag:"true"` Etherbase string `arg:"--miner.etherbase"` GasLimit int `arg:"--miner.gaslimit"` DevPeriod int `arg:"--dev.period"` BorPeriod int `arg:"--bor.period"` BorMinBlockSize int `arg:"--bor.minblocksize"` HttpApi string `arg:"--http.api" default:"admin,eth,erigon,web3,net,debug,trace,txpool,parity,ots"` AccountSlots int `arg:"--txpool.accountslots" default:"16"` // contains filtered or unexported fields }
func (*BlockProducer) Account ¶
func (n *BlockProducer) Account() *accounts.Account
func (*BlockProducer) Configure ¶
func (m *BlockProducer) Configure(baseNode NodeArgs, nodeNumber int) error
func (*BlockProducer) IsBlockProducer ¶
func (n *BlockProducer) IsBlockProducer() bool
type NodeArgs ¶
type NodeArgs struct { requests.RequestGenerator `arg:"-"` Name string `arg:"-"` BuildDir string `arg:"positional" default:"./build/bin/devnet" json:"builddir"` DataDir string `arg:"--datadir" default:"./dev" json:"datadir"` Chain string `arg:"--chain" default:"dev" json:"chain"` Port int `arg:"--port" json:"port,omitempty"` AllowedPorts string `arg:"--p2p.allowed-ports" json:"p2p.allowed-ports,omitempty"` NAT string `arg:"--nat" default:"none" json:"nat"` ConsoleVerbosity string `arg:"--log.console.verbosity" default:"0" json:"log.console.verbosity"` DirVerbosity string `arg:"--log.dir.verbosity" json:"log.dir.verbosity,omitempty"` LogDirPath string `arg:"--log.dir.path" json:"log.dir.path,omitempty"` LogDirPrefix string `arg:"--log.dir.prefix" json:"log.dir.prefix,omitempty"` P2PProtocol string `arg:"--p2p.protocol" default:"68" json:"p2p.protocol"` Snapshots bool `arg:"--snapshots" flag:"" default:"false" json:"snapshots,omitempty"` Downloader string `arg:"--no-downloader" default:"true" json:"no-downloader"` WS string `arg:"--ws" flag:"" default:"true" json:"ws"` PrivateApiAddr string `arg:"--private.api.addr" default:"localhost:9090" json:"private.api.addr"` HttpPort int `arg:"--http.port" default:"8545" json:"http.port"` HttpVHosts string `arg:"--http.vhosts" json:"http.vhosts"` HttpCorsDomain string `arg:"--http.corsdomain" json:"http.corsdomain"` AuthRpcPort int `arg:"--authrpc.port" default:"8551" json:"authrpc.port"` AuthRpcVHosts string `arg:"--authrpc.vhosts" json:"authrpc.vhosts"` WSPort int `arg:"--ws.port" default:"8546" json:"ws.port"` GRPCPort int `arg:"-" default:"8547" json:"-"` // flag not defined TCPPort int `arg:"-" default:"8548" json:"-"` // flag not defined Metrics bool `arg:"--metrics" flag:"" default:"false" json:"metrics"` MetricsPort int `arg:"--metrics.port" json:"metrics.port,omitempty"` MetricsAddr string `arg:"--metrics.addr" json:"metrics.addr,omitempty"` StaticPeers string `arg:"--staticpeers" json:"staticpeers,omitempty"` WithoutHeimdall bool `arg:"--bor.withoutheimdall" flag:"" default:"false" json:"bor.withoutheimdall,omitempty"` HeimdallURL string `arg:"--bor.heimdall" json:"bor.heimdall,omitempty"` WithHeimdallMilestones bool `arg:"--bor.milestone" json:"bor.milestone"` VMDebug bool `arg:"--vmdebug" flag:"" default:"false" json:"dmdebug"` NodeKey *ecdsa.PrivateKey `arg:"-"` NodeKeyHex string `arg:"--nodekeyhex" json:"nodekeyhex,omitempty"` }
func (*NodeArgs) EnableMetrics ¶
func (*NodeArgs) GetEnodeURL ¶
func (*NodeArgs) GetHttpPort ¶
Click to show internal directories.
Click to hide internal directories.