blockchain

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 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 GetMiners

func GetMiners() []string

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 SetMiners

func SetMiners(minerArray []string)

func SetSharders

func SetSharders(sharderArray []string)

Types

type ChainConfig

type ChainConfig struct {
	Sharders []string
	Miners   []string
	ChainID  string
}

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