Versions in this module Expand all Collapse all v0 v0.1.3 Jan 16, 2024 v0.1.2 Dec 7, 2023 Changes in this version type NodeConfig + MinFreeDiskSpace int v0.1.1 Nov 3, 2023 Changes in this version type Config + ChainCfg *params.ChainConfig + type Genesis struct + Alloc GenesisAlloc + BaseFee *uint256.Int + Coinbase types.Address + Config *params.ChainConfig + Difficulty *uint256.Int + ExtraData []byte + GasLimit uint64 + GasUsed uint64 + Miners []string + Mixhash types.Hash + Nonce uint64 + Number uint64 + ParentHash types.Hash + Timestamp uint64 + type GenesisAccount struct + Balance string + Code []byte + Nonce uint64 + Storage map[types.Hash]types.Hash + type GenesisAlloc map[types.Address]GenesisAccount type MinerConfig + Etherbase string type NodeConfig + Chain string v0.1.0 Oct 17, 2023 Changes in this version + var DefaultIgnorePrice = big.NewInt(2 * params.Wei) + var DefaultMaxPrice = big.NewInt(500 * params.GWei) + var FullNodeGPO = GpoConfig + var LightClientGPO = GpoConfig + func LoadConfigFromFile(file string, config *Config) error + func SaveConfigToFile(file string, config Config) error + type APoaConfig struct + CheckpointInterval uint64 + Epoch uint64 + InMemory bool + InmemorySignatures int + InmemorySnapshots int + type APosConfig struct + CheckpointInterval uint64 + DepositContract string + DepositNFTContract string + Epoch uint64 + InMemory bool + InmemorySignatures int + InmemorySnapshots int + RewardEpoch uint64 + RewardLimit *big.Int + type AccountConfig struct + PasswordFile string + type Allocate struct + Address string + Balance string + Code []byte + Nonce uint64 + Storage map[types.Hash]types.Hash + type Config struct + AccountCfg AccountConfig + DatabaseCfg DatabaseConfig + GPO GpoConfig + GenesisBlockCfg *GenesisBlockConfig + LoggerCfg LoggerConfig + MetricsCfg MetricsConfig + Miner MinerConfig + NetworkCfg NetWorkConfig + NodeCfg NodeConfig + P2PCfg *P2PConfig + PprofCfg PprofConfig + type ConsensusConfig struct + APoa *APoaConfig + APos *APosConfig + EngineName string + Etherbase string + GasCeil uint64 + GasFloor uint64 + Period uint64 + type DatabaseConfig struct + DBName string + DBPath string + DBType string + Debug bool + IsMem bool + MaxDB uint64 + MaxReaders uint64 + SubDB []string + type GenesisBlockConfig struct + Alloc []Allocate + BaseFee *uint256.Int + Coinbase types.Address + Config *params.ChainConfig + Difficulty *uint256.Int + Engine *ConsensusConfig + ExtraData []byte + GasLimit uint64 + GasUsed uint64 + Miners []string + Mixhash types.Hash + Nonce uint64 + Number uint64 + ParentHash types.Hash + RewardEpoch uint64 + RewardLimit uint64 + Timestamp uint64 + type GpoConfig struct + Blocks int + Default *big.Int + IgnorePrice *big.Int + MaxBlockHistory int + MaxHeaderHistory int + MaxPrice *big.Int + Percentile int + type LoggerConfig struct + Compress bool + Level string + LogFile string + MaxAge int + MaxBackups int + MaxSize int + type MetricsConfig struct + Enable bool + EnableInfluxDB bool + HTTP string + InfluxDBBucket string + InfluxDBDatabase string + InfluxDBEndpoint string + InfluxDBOrganization string + InfluxDBPassword string + InfluxDBTags string + InfluxDBToken string + InfluxDBUsername string + Port int + type MinerConfig struct + GasCeil uint64 + GasPrice *big.Int + Recommit time.Duration + type NetWorkConfig struct + BootstrapPeers []string + Bootstrapped bool + ListenersAddress []string + LocalPeerKey string + type NodeConfig struct + AuthAddr string + AuthPort int + AuthRPC bool + AuthVirtualHosts []string + DataDir string + ExternalSigner string + HTTP bool + HTTPApi string + HTTPCors string + HTTPHost string + HTTPPort string + IPCPath string + InsecureUnlockAllowed bool + JWTSecret string + KeyStoreDir string + Miner bool + NodePrivate string + PasswordFile string + UseLightweightKDF bool + WS bool + WSApi string + WSHost string + WSOrigins string + WSPort string + func (c *NodeConfig) ExtRPCEnabled() bool + func (c *NodeConfig) KeyDirConfig() (string, error) + type P2PConfig struct + AllowListCIDR string + BootstrapNodeAddr []string + DataDir string + DenyListCIDR []string + Discv5BootStrapAddr []string + EnableUPnP bool + HostAddress string + HostDNS string + LocalIP string + MaxPeers int + MetaDataDir string + MinSyncPeers int + NoDiscovery bool + P2PLimit *P2PLimit + PrivateKey string + RelayNodeAddr string + StaticPeerID bool + StaticPeers []string + TCPPort int + UDPPort int + type P2PLimit struct + BlockBatchLimit int + BlockBatchLimitBurstFactor int + BlockBatchLimiterPeriod int + type PprofConfig struct + MaxCpu int + Port int + Pprof bool + TraceBlock bool + TraceMutex bool