blockchain

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Index

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 GetMiners

func GetMiners() []string

func GetQuerySleepTime

func GetQuerySleepTime() int

func GetSharders

func GetSharders() []string

func GetStableMiners added in v1.11.0

func GetStableMiners() []string

func PopulateChain

func PopulateChain(minerjson string, sharderjson string) error

func PopulateNodes

func PopulateNodes(nodesjson string) ([]string, error)

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 SetMiners

func SetMiners(minerArray []string)

func SetQuerySleepTime

func SetQuerySleepTime(time int)

func SetSharders

func SetSharders(sharderArray []string)

Types

type ChainConfig

type ChainConfig struct {
	BlockWorker     string
	Sharders        []string
	Miners          []string
	MinSubmit       int
	MinConfirmation int
	ChainID         string
	MaxTxnQuery     int
	QuerySleepTime  int
}

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"`
}

Jump to

Keyboard shortcuts

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