blockchain

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

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockChain

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

func New

func (*BlockChain) Start

func (bc *BlockChain) Start() error

func (*BlockChain) StartAPI

func (bc *BlockChain) StartAPI(g *echo.Group)

type BlockPool

type BlockPool struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewBlockPool

func NewBlockPool(ws *world_state.WroldState, switcher network.SwitcherI) *BlockPool

func (*BlockPool) AddBlock

func (bp *BlockPool) AddBlock(peer *network.Peer, block *model.PbftBlock)

func (*BlockPool) DownloadBlock

func (bp *BlockPool) DownloadBlock()

func (*BlockPool) RemoveBlock

func (bp *BlockPool) RemoveBlock(block *model.PbftBlock)

func (*BlockPool) Routine

func (bp *BlockPool) Routine()

func (*BlockPool) SetPeerHight

func (bp *BlockPool) SetPeerHight(peer *network.Peer, height uint64)

Jump to

Keyboard shortcuts

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