hotstuffprotocol

package
v0.0.0-...-8ad0a2a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

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

Hub manages the lifecycle of all connected Hotstuff peers.

func NewHub

func NewHub(engine engine) *Hub

func (*Hub) Close

func (hub *Hub) Close() error

func (*Hub) GetEnode

func (hub *Hub) GetEnode(ids []hots.ID) []enode.ID

func (*Hub) Handle

func (hub *Hub) Handle(peer *p2p.Peer, rw p2p.MsgReadWriter, chain consensus.ChainReader) error

func (*Hub) Timeout

func (hub *Hub) Timeout(view uint64) error

func (*Hub) Vote

func (hub *Hub) Vote(remote hots.ID, view uint64, block common.Hash, sig *bls.PartialSignature) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳