chainbridge_core

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: GPL-3.0 Imports: 31 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MAX_RETRYCOUNT = 60
)

Variables

View Source
var (
	MsgReleayer *relayer.Relayer

	IsFirstUpdateArbiter bool
)

Functions

func APIs

func APIs(engine *pbft.Pbft) []rpc.API

func Init

func Init(engine *pbft.Pbft, stack *node.Node, accountPath, accountPassword string)

func SendAriberToPeer

func SendAriberToPeer(engine *pbft.Pbft, pid peer.PID, isCurrent bool)

func Start

func Start() bool

func StartUpdateNode

func StartUpdateNode()

func Stop

func Stop(msg string)

Types

type API

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

API is a user facing RPC API to allow controlling the signer and voting mechanisms of the delegate-proof-of-stake scheme.

func (*API) GetArbiters

func (a *API) GetArbiters(chainID uint64) *Arbiters

func (*API) GetCollectedArbiterList

func (a *API) GetCollectedArbiterList() *Message

func (*API) GetSignerAddress

func (a *API) GetSignerAddress() string

func (*API) HasProducerMajorityCount

func (a *API) HasProducerMajorityCount(count, total int) bool

func (*API) InitArbiterList

func (a *API) InitArbiterList(arbiters []common.Address, total int, chainID uint64) error

func (*API) UpdateArbiters

func (a *API) UpdateArbiters(chainID uint64) error

type Arbiters

type Arbiters struct {
	List  []common.Address
	Total uint64
	State uint8
}

type Message

type Message struct {
	UpdateList     []common.Address
	Signatures     []string
	Total          int
	ConsensusTotal int
	ConsensusList  []common.Address
}

Directories

Path Synopsis
chains
evm
The crypto package is used to provide functionality to several keypair types.
The crypto package is used to provide functionality to several keypair types.
The keystore package is used to load keys from keystore files, both for live use and for testing.
The keystore package is used to load keys from keystore files, both for live use and for testing.

Jump to

Keyboard shortcuts

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