Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Dev *DevConfig User *UserConfig }
type DevConfig ¶
type DevConfig struct { ChainID *big.Int Genesis *GenesisConfig ProtocolID protocol.ID Version string BlocksPerEpoch uint64 BlockLeadTimestamp uint32 BlockMaxDrift uint16 BlockGasLimit uint64 MaxFutureBlockLength uint16 MaxMarginBlockNumber uint16 MinMarginBlockNumber uint16 ReorgLimit uint64 MessageQSize uint32 MessageReceiptTimeout uint32 MessageBufferSize uint32 OTSBitFieldPerPage uint64 DefaultNonce uint8 DefaultAccountBalance uint64 BlockTime uint64 DBName string DB2Name string DB2FreezerName string PeersFilename string WalletDatFilename string BannedPeersFilename string Transaction *TransactionConfig NumberOfBlockAnalyze uint8 SizeMultiplier float64 BlockMinSizeLimit int TxExtraOverhead int ShorPerQuanta uint64 MaxReceivableBytes uint64 ReservedQuota uint64 MaxBytesOut uint64 BlockTimeSeriesSize uint32 RecordTransactionHashes bool // True will enable recording of transaction hashes into address state StakeAmount uint64 }
func GetDevConfig ¶
func GetDevConfig() (dev *DevConfig)
type GenesisConfig ¶
type NodeConfig ¶
type StakeConfig ¶
type TransactionConfig ¶
type TransactionConfig struct {
MultiOutputLimit uint8
}
type TransactionPoolConfig ¶
type UserConfig ¶
type UserConfig struct { Node *NodeConfig NTP *NTPConfig ChainStateTimeout uint16 ChainStateBroadcastPeriod uint16 TransactionPool *TransactionPoolConfig Stake *StakeConfig BaseDir string ChainFileDirectory string NodeKeyFileName string API *API }
func GetUserConfig ¶
func GetUserConfig() (userConf *UserConfig)
func (*UserConfig) DataDir ¶
func (u *UserConfig) DataDir() string
func (*UserConfig) GetAbsoluteNodeKeyFilePath ¶
func (u *UserConfig) GetAbsoluteNodeKeyFilePath() string
func (*UserConfig) GetLogFileName ¶
func (u *UserConfig) GetLogFileName() string
func (*UserConfig) SetDataDir ¶
func (u *UserConfig) SetDataDir(dataDir string)
Click to show internal directories.
Click to hide internal directories.