halts

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

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

func NewBus

func NewBus(halts *HaltBlocks) *Bus

func (*Bus) AddHaltBlock

func (b *Bus) AddHaltBlock(height uint64, pubkey types.Pubkey)

type HaltBlocks

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

func NewHalts

func NewHalts(stateBus *bus.Bus, iavl tree.MTree) (*HaltBlocks, error)

func (*HaltBlocks) AddHaltBlock

func (hb *HaltBlocks) AddHaltBlock(height uint64, pubkey types.Pubkey)

func (*HaltBlocks) Commit

func (hb *HaltBlocks) Commit() error

func (*HaltBlocks) Delete

func (hb *HaltBlocks) Delete(height uint64)

func (*HaltBlocks) Export

func (hb *HaltBlocks) Export(state *types.AppState)

func (*HaltBlocks) GetHaltBlocks

func (hb *HaltBlocks) GetHaltBlocks(height uint64) *Model

func (*HaltBlocks) GetOrNew

func (hb *HaltBlocks) GetOrNew(height uint64) *Model

func (*HaltBlocks) IsHaltExists

func (hb *HaltBlocks) IsHaltExists(height uint64, pubkey types.Pubkey) bool

type Item

type Item struct {
	Pubkey types.Pubkey
}

type Model

type Model struct {
	List []Item
	// contains filtered or unexported fields
}

func (*Model) Height

func (m *Model) Height() uint64

type RHalts

type RHalts interface {
	Export(state *types.AppState)
	GetHaltBlocks(height uint64) *Model
	IsHaltExists(height uint64, pubkey types.Pubkey) bool
}

Jump to

Keyboard shortcuts

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