netmapcontract

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPeer

func AddPeer(nodeInfo []byte)

func Config

func Config(key []byte) interface{}

func Epoch

func Epoch() int

func InitConfig

func InitConfig(args [][]byte)

func InnerRingList

func InnerRingList() []common.IRNode

func ListConfig

func ListConfig() []record

func Migrate added in v0.4.0

func Migrate(script []byte, manifest []byte, data interface{}) bool

func Netmap

func Netmap() []storageNode

func NetmapCandidates added in v0.9.0

func NetmapCandidates() []netmapNode

NetmapCandidates returns all node candidates for next epoch and their status codes.

func NewEpoch

func NewEpoch(epochNum int)

func SetConfig

func SetConfig(id, key, val []byte)

func Snapshot

func Snapshot(diff int) []storageNode

func SnapshotByEpoch added in v0.3.1

func SnapshotByEpoch(epoch int) []storageNode

func UpdateInnerRing

func UpdateInnerRing(keys []interop.PublicKey)

func UpdateState

func UpdateState(state int, publicKey interop.PublicKey)

func Version

func Version() int

Types

This section is empty.

Jump to

Keyboard shortcuts

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