Documentation
¶
Index ¶
Constants ¶
View Source
const ( // GeneratorReward is the amount of Block generator default reward // TODO: TBD GeneratorReward = 50 * DUSK // ConsensusTimeOut is the time out for consensus step timers. ConsensusTimeOut = 5 * time.Second // DUSK is one whole unit of DUSK. DUSK = uint64(100000000) MinFee = int64(100) // GenesisBlockBlob represents the genesis block bytes in hexadecimal format // It's recommended to be regenerated with generation.GenerateGensisBlock() API TestNetGenesisBlob = "" /* 31558-byte string literal not displayed */ )
A signle point of constants definition
Variables ¶
This section is empty.
Functions ¶
func DecodeGenesis ¶
func Load ¶
func Load() error
Load makes an attempt to read and unmershal any configs from flag, env and dusk config file.
It uses the following precedence order. Each item takes precedence over the item below it:
- flag
- env
- config
- key/value store (not used yet)
- default
Dusk configuration file can be in form of TOML, JSON, YAML, HCL or Java properties config files
Types ¶
type Registry ¶
type Registry struct {
UsedConfigFile string
// All configuration groups
General generalConfiguration
Database databaseConfiguration
Wallet walletConfiguration
Network networkConfiguration
Logger loggerConfiguration
Prof profConfiguration
RPC rpcConfiguration
Performance performanceConfiguration
Mempool mempoolConfiguration
}
Registry stores all loaded configurations according to the config order NB It should be cheap to be copied by value
Click to show internal directories.
Click to hide internal directories.