Documentation ¶
Index ¶
Constants ¶
View Source
const ( CacheTypeInMemory = "memory" CacheTypeRedis = "redis" BlockchainDatabaseInMemory = "memory" BlockChainDatabaseLMDB = "lmdb" )
Variables ¶
View Source
var DrandChainGenesisTime = uint64(1603603302)
View Source
var ExpectedLeadersPerEpoch = big.NewInt(2)
Functions ¶
This section is empty.
Types ¶
type BlockchainConfig ¶
type Config ¶
type Config struct { ListenPort int `mapstructure:"listen_port"` ListenAddr string `mapstructure:"listen_addr"` IsBootstrap bool `mapstructure:"is_bootstrap"` BootstrapNodes []string `mapstructure:"bootstrap_node_multiaddr"` Rendezvous string `mapstructure:"rendezvous"` Ethereum EthereumConfig `mapstructure:"ethereum"` Filecoin FilecoinConfig `mapstructure:"filecoin"` PubSub PubSubConfig `mapstructure:"pubsub"` ConsensusMinApprovals int `mapstructure:"consensus_min_approvals"` Redis RedisConfig `mapstructure:"redis"` CacheType string `mapstructure:"cache_type"` Blockchain BlockchainConfig `mapstructure:"blockchain"` PrivateKeyPath string `mapstructure:"private_key_path"` }
type DrandConfig ¶
func NewDrandConfig ¶
func NewDrandConfig() *DrandConfig
type EthereumConfig ¶
type EthereumConfig struct { GatewayAddress string `mapstructure:"gateway_address"` ChainID int `mapstructure:"chain_id"` PrivateKey string `mapstructure:"private_key"` MnemonicPhrase string `mapstructure:"mnemonic_phrase"` HDDerivationPath string `mapstructure:"hd_derivation_path"` DioneOracleContractAddress string `mapstructure:"oracle_contract_address"` DioneStakingContractAddress string `mapstructure:"staking_contract_address"` DisputeContractAddress string `mapstructure:"dispute_contract_address"` DisputeVoteWindow int `mapstructure:"dispute_vote_window"` // in secs }
type FilecoinConfig ¶
type PubSubConfig ¶
type PubSubConfig struct {
ServiceTopicName string `mapstructure:"service_topic_name"`
}
type RedisConfig ¶
Click to show internal directories.
Click to hide internal directories.