Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainConfig ¶
type ChainConfig struct { ChainName string ChainId [32]byte ClientUrls []string //format is: ip:port,username,password BlockInterval int64 MaxTxsInBlock int GenesisMainChainBlockHeight int64 }
func NewBchChainConfig ¶
func NewBchChainConfig(config *Config, clientUrls []string, GenesisMainChainBlockHeight int64) *ChainConfig
type Config ¶
type Config struct { ChainsSupported map[string]*ChainConfig //chainName => chainConfig ChainPrefix string }
func DefaultConfig ¶
func DefaultConfig() Config
func (*Config) RegisterChainConfig ¶
func (c *Config) RegisterChainConfig(chainName string, chainConfig *ChainConfig)
Click to show internal directories.
Click to hide internal directories.