blockchain

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChainID

func GetChainID() string

func GetMaxTxnQuery

func GetMaxTxnQuery() 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 SetChainID

func SetChainID(id string)

func SetMaxTxnQuery

func SetMaxTxnQuery(num 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 {
	Sharders          []string
	Miners            []string
	PreferredBlobbers []string
	ChainID           string
	MaxTxnQuery       int
	QuerySleepTime    int
}

type StorageNode

type StorageNode struct {
	ID      string `json:"id"`
	Baseurl string `json:"url"`
}

Jump to

Keyboard shortcuts

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