Documentation ¶
Index ¶
- Variables
- func GetAllSharders() []string
- func GetBlockWorker() string
- func GetChainID() string
- func GetMaxTxnQuery() int
- func GetMinConfirmation() int
- func GetMinSubmit() int
- func GetMiners() []string
- func GetQuerySleepTime() int
- func GetSharders() []string
- func GetStableMiners() []string
- func PopulateChain(minerjson string, sharderjson string) error
- func PopulateNodes(nodesjson string) ([]string, error)
- func ResetStableMiners()
- func SetBlockWorker(blockWorker string)
- func SetChainID(id string)
- func SetMaxTxnQuery(num int)
- func SetMinConfirmation(minConfirmation int)
- func SetMinSubmit(minSubmit int)
- func SetMiners(minerArray []string)
- func SetQuerySleepTime(time int)
- func SetSharders(sharderArray []string)
- type ChainConfig
- type StakePoolSettings
- type StorageNode
- type UpdateStakePoolSettings
- type UpdateValidationNode
- type ValidationNode
Constants ¶
This section is empty.
Variables ¶
View Source
var Sharders *node.NodeHolder
Functions ¶
func GetAllSharders ¶ added in v1.11.0
func GetAllSharders() []string
func GetBlockWorker ¶
func GetBlockWorker() string
func GetChainID ¶
func GetChainID() string
func GetMaxTxnQuery ¶
func GetMaxTxnQuery() int
func GetMinConfirmation ¶
func GetMinConfirmation() int
func GetMinSubmit ¶
func GetMinSubmit() int
func GetQuerySleepTime ¶
func GetQuerySleepTime() int
func GetSharders ¶
func GetSharders() []string
func GetStableMiners ¶ added in v1.11.0
func GetStableMiners() []string
func PopulateChain ¶
func PopulateNodes ¶
func ResetStableMiners ¶ added in v1.11.0
func ResetStableMiners()
func SetBlockWorker ¶
func SetBlockWorker(blockWorker string)
func SetChainID ¶
func SetChainID(id string)
func SetMaxTxnQuery ¶
func SetMaxTxnQuery(num int)
func SetMinConfirmation ¶
func SetMinConfirmation(minConfirmation int)
func SetMinSubmit ¶
func SetMinSubmit(minSubmit int)
func SetQuerySleepTime ¶
func SetQuerySleepTime(time int)
func SetSharders ¶
func SetSharders(sharderArray []string)
Types ¶
type ChainConfig ¶
type StakePoolSettings ¶ added in v1.8.5
type StakePoolSettings struct { DelegateWallet string `json:"delegate_wallet"` NumDelegates int `json:"num_delegates"` ServiceCharge float64 `json:"service_charge"` }
StakePoolSettings information.
type StorageNode ¶
type StorageNode struct { ID string `json:"id"` Baseurl string `json:"url"` // contains filtered or unexported fields }
func (*StorageNode) IsSkip ¶
func (sn *StorageNode) IsSkip() bool
func (*StorageNode) SetSkip ¶
func (sn *StorageNode) SetSkip(t bool)
type UpdateStakePoolSettings ¶ added in v1.8.17
type UpdateStakePoolSettings struct { DelegateWallet *string `json:"delegate_wallet,omitempty"` NumDelegates *int `json:"num_delegates,omitempty"` ServiceCharge *float64 `json:"service_charge,omitempty"` }
UpdateStakePoolSettings information.
type UpdateValidationNode ¶ added in v1.8.17
type UpdateValidationNode struct { ID string `json:"id"` BaseURL *string `json:"url"` StakePoolSettings *UpdateStakePoolSettings `json:"stake_pool_settings"` }
type ValidationNode ¶ added in v1.8.5
type ValidationNode struct { ID string `json:"id"` BaseURL string `json:"url"` StakePoolSettings StakePoolSettings `json:"stake_pool_settings"` }
Click to show internal directories.
Click to hide internal directories.