Versions in this module Expand all Collapse all v0 v0.0.21 Jun 7, 2022 v0.0.2 Jun 7, 2022 Changes in this version + func Hostname() string + type APIConfig struct + Enabled bool + Host string + Modules []string + Port uint64 + Prefix string + type AccountsConfig struct + AllowInsecureUnlock bool + PasswordFile string + Unlock []string + UseLightweightKDF bool + type CacheConfig struct + Cache uint64 + Journal string + NoPrefetch bool + PercDatabase uint64 + PercGc uint64 + PercSnapshot uint64 + PercTrie uint64 + Preimages bool + Rejournal time.Duration + RejournalRaw string + TxLookupLimit uint64 + type Command struct + UI cli.Ui + func (c *Command) Flags() *flagset.Flagset + func (c *Command) Help() string + func (c *Command) Run(args []string) int + func (c *Command) Synopsis() string + type Config struct + Accounts *AccountsConfig + Cache *CacheConfig + Chain string + DataDir string + Developer *DeveloperConfig + Ethstats string + GRPC *GRPCConfig + GcMode string + Gpo *GpoConfig + Heimdall *HeimdallConfig + JsonRPC *JsonRPCConfig + LogLevel string + Name string + P2P *P2PConfig + Sealer *SealerConfig + Snapshot bool + SyncMode string + Telemetry *TelemetryConfig + TxPool *TxPoolConfig + Whitelist map[string]string + func DefaultConfig() *Config + func (c *Config) Merge(cc ...*Config) error + type DeveloperConfig struct + Enabled bool + Period uint64 + type GRPCConfig struct + Addr string + type GpoConfig struct + Blocks uint64 + IgnorePrice *big.Int + IgnorePriceRaw string + MaxPrice *big.Int + MaxPriceRaw string + Percentile uint64 + type HeimdallConfig struct + URL string + Without bool + type InfluxDBConfig struct + Bucket string + Database string + Endpoint string + Organization string + Password string + Tags map[string]string + Token string + Username string + V1Enabled bool + V2Enabled bool + type JsonRPCConfig struct + Cors []string + GasCap uint64 + Graphql *APIConfig + Http *APIConfig + IPCDisable bool + IPCPath string + TxFeeCap float64 + VHost []string + Ws *APIConfig + type P2PConfig struct + Bind string + Discovery *P2PDiscovery + MaxPeers uint64 + MaxPendPeers uint64 + NAT string + NoDiscover bool + Port uint64 + type P2PDiscovery struct + Bootnodes []string + BootnodesV4 []string + BootnodesV5 []string + DNS []string + StaticNodes []string + TrustedNodes []string + V5Enabled bool + type SealerConfig struct + Enabled bool + Etherbase string + ExtraData string + GasCeil uint64 + GasPrice *big.Int + GasPriceRaw string + type Server struct + func NewServer(config *Config) (*Server, error) + func (s *Server) ChainSetHead(ctx context.Context, req *proto.ChainSetHeadRequest) (*proto.ChainSetHeadResponse, error) + func (s *Server) ChainWatch(req *proto.ChainWatchRequest, reply proto.Bor_ChainWatchServer) error + func (s *Server) PeersAdd(ctx context.Context, req *proto.PeersAddRequest) (*proto.PeersAddResponse, error) + func (s *Server) PeersList(ctx context.Context, req *proto.PeersListRequest) (*proto.PeersListResponse, error) + func (s *Server) PeersRemove(ctx context.Context, req *proto.PeersRemoveRequest) (*proto.PeersRemoveResponse, error) + func (s *Server) PeersStatus(ctx context.Context, req *proto.PeersStatusRequest) (*proto.PeersStatusResponse, error) + func (s *Server) Pprof(req *proto.PprofRequest, stream proto.Bor_PprofServer) error + func (s *Server) Status(ctx context.Context, _ *empty.Empty) (*proto.StatusResponse, error) + func (s *Server) Stop() + type TelemetryConfig struct + Enabled bool + Expensive bool + InfluxDB *InfluxDBConfig + OpenCollectorEndpoint string + PrometheusAddr string + type TxPoolConfig struct + AccountQueue uint64 + AccountSlots uint64 + GlobalQueue uint64 + GlobalSlots uint64 + Journal string + LifeTime time.Duration + LifeTimeRaw string + Locals []string + NoLocals bool + PriceBump uint64 + PriceLimit uint64 + Rejournal time.Duration + RejournalRaw string