config

package
v0.0.0-...-0928cd4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL