nodekeeper

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeKeeper

type NodeKeeper interface {
	// GetActiveNodes get active nodes.
	GetActiveNodes() []*core.ActiveNode
	// GetUnsyncHash get hash computed based on the list of unsync nodes, and the size of this list.
	GetUnsyncHash() (hash []byte, unsyncCount int)
	// GetUnsync gets the local unsync list (excluding other nodes unsync lists)
	GetUnsync() []*core.ActiveNode
	// Sync initiate transferring unsync -> sync, sync -> active. If approved is false, unsync is not transferred to sync
	Sync(approved bool)
	// AddUnsync add unsync node to the local unsync list
	AddUnsync(*core.ActiveNode)
	// AddUnsyncGossip merge unsync list from another node to the local unsync list
	AddUnsyncGossip([]*core.ActiveNode)
}

Jump to

Keyboard shortcuts

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