blockchain

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IChain

type IChain interface {
	LastHeight() uint64
	LastHeader() (types.IHeader, error)
	LastConfirmed() uint64
	SetConfirmed(uint64)
	GetBlockHeight(uint64) (types.IBlock, error)
	GetBlockHash(arry.Hash) (types.IBlock, error)
	GetHeaderHeight(uint64) (types.IHeader, error)
	GetHeaderHash(arry.Hash) (types.IHeader, error)
	GetMessage(arry.Hash) (types.IMessage, error)
	GetMessageIndex(hash arry.Hash) (types.IMessageIndex, error)
	CycleLastHash(uint64) (arry.Hash, error)

	GetRlpBlockHeight(uint64) (types.IRlpBlock, error)
	GetRlpBlockHash(arry.Hash) (types.IRlpBlock, error)

	NextHeader(uint64) (types.IHeader, error)
	NextBlock([]types.IMessage, uint64) (types.IBlock, error)
	Insert(types.IBlock) error
	Roll() error
	Vote(arry.Address) uint64
}

Jump to

Keyboard shortcuts

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