iabci

package
v0.0.0-...-4f0ab6e Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppBlockChain

type AppBlockChain interface {
	VerifyBlock(block *wire.MsgBlock) error
	ProposeBlock(pk []byte, sk []byte) (*wire.MsgBlock, error)
	ProposeAndAcceptEmptyBlock(height int64) (*wire.BlockHeader, error)
	AcceptBlock(block *wire.MsgBlock) error
	Start(prevReshardheader *wire.BlockHeader)
	Stop()
	PreStart()
}

AppBlockChain is used to manage merkle tree.

type Fetcher

type Fetcher interface {
	// Request a given number of transactions from storage node.
	FetchTransactions(number int, hashList []uint32, shard shard.Index)
	// Request data for abci initalization from storage node
	FetchInitData(shard shard.Index)
}

Fetcher is an interface to dealing with request fetching information from storage node.

Jump to

Keyboard shortcuts

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