aribiters

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArbiterManager

type ArbiterManager struct {
	// contains filtered or unexported fields
}

func CreateArbiterManager

func CreateArbiterManager() *ArbiterManager

func (*ArbiterManager) AddArbiter

func (a *ArbiterManager) AddArbiter(pid peer.PID, arbiter []byte) error

func (*ArbiterManager) AddCurrentArbiter

func (a *ArbiterManager) AddCurrentArbiter(arbiter []byte) error

func (*ArbiterManager) AddSignature

func (a *ArbiterManager) AddSignature(pid peer.PID, signature []byte) error

func (*ArbiterManager) Clear

func (a *ArbiterManager) Clear()

func (*ArbiterManager) FilterArbiters

func (a *ArbiterManager) FilterArbiters(peers [][]byte) [][]byte

func (*ArbiterManager) FilterSignatures

func (a *ArbiterManager) FilterSignatures(peers [][]byte) [][]byte

func (*ArbiterManager) GetArbiterList

func (a *ArbiterManager) GetArbiterList() [][]byte

func (*ArbiterManager) GetCollection

func (a *ArbiterManager) GetCollection() CollectionInfo

func (*ArbiterManager) GetConsensusArbiters

func (a *ArbiterManager) GetConsensusArbiters() CollectionInfo

func (*ArbiterManager) GetCurrentTotalCount

func (a *ArbiterManager) GetCurrentTotalCount() int

func (*ArbiterManager) GetNextTotalCount

func (a *ArbiterManager) GetNextTotalCount() int

func (*ArbiterManager) GetSignatures

func (a *ArbiterManager) GetSignatures() map[peer.PID][]byte

func (*ArbiterManager) HasArbiter

func (a *ArbiterManager) HasArbiter(arbiter []byte) bool

func (*ArbiterManager) HasArbiterByPID

func (a *ArbiterManager) HasArbiterByPID(pid peer.PID) bool

func (*ArbiterManager) HasCurrentArbiter

func (a *ArbiterManager) HasCurrentArbiter(signer []byte) bool

func (*ArbiterManager) HasSignature

func (a *ArbiterManager) HasSignature(pid []byte) bool

func (*ArbiterManager) HashArbiterList

func (a *ArbiterManager) HashArbiterList(hashSalt *big.Int) (common.Hash, error)

func (*ArbiterManager) RemoveArbiter

func (a *ArbiterManager) RemoveArbiter(arbiter []byte)

func (*ArbiterManager) SaveToCollection

func (a *ArbiterManager) SaveToCollection()

func (*ArbiterManager) SetTotalCount

func (a *ArbiterManager) SetTotalCount(nowTotalCount, nextTotalCount int)

type CollectionInfo

type CollectionInfo struct {
	NextTotalCount    int
	List              [][]byte
	Signatures        map[peer.PID][]byte
	CurrentTotalCount int
}

Jump to

Keyboard shortcuts

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