blockchain

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetPreferredBlobbers

func GetPreferredBlobbers() []string

func GetQuerySleepTime

func GetQuerySleepTime() int

func GetSharders

func GetSharders() []string

func PopulateChain

func PopulateChain(minerjson string, sharderjson string) error

func PopulateNodes

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

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 SetPreferredBlobbers

func SetPreferredBlobbers(preferredBlobberArray []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
	PreferredBlobbers []string
	MinSubmit         int
	MinConfirmation   int
	ChainID           string
	MaxTxnQuery       int
	QuerySleepTime    int
}

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)

Jump to

Keyboard shortcuts

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