storage

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockHashStr

type BlockHashStr string

type InMemoryStorage

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

func NewInMemoryStorage

func NewInMemoryStorage() *InMemoryStorage

func (*InMemoryStorage) ClearBlockHeightLogs

func (storage *InMemoryStorage) ClearBlockHeightLogs(blockHeight primitives.BlockHeight)

func (*InMemoryStorage) GetCommitMessages

func (storage *InMemoryStorage) GetCommitMessages(blockHeight primitives.BlockHeight, view primitives.View, blockHash primitives.BlockHash) ([]*interfaces.CommitMessage, bool)

func (*InMemoryStorage) GetLatestPreprepare

func (storage *InMemoryStorage) GetLatestPreprepare(blockHeight primitives.BlockHeight) (*interfaces.PreprepareMessage, bool)

func (*InMemoryStorage) GetPrepareMessages

func (storage *InMemoryStorage) GetPrepareMessages(blockHeight primitives.BlockHeight, view primitives.View, blockHash primitives.BlockHash) ([]*interfaces.PrepareMessage, bool)

func (*InMemoryStorage) GetPrepareSendersIds

func (storage *InMemoryStorage) GetPrepareSendersIds(blockHeight primitives.BlockHeight, view primitives.View, blockHash primitives.BlockHash) []primitives.MemberId

func (*InMemoryStorage) GetPreprepareBlock

func (storage *InMemoryStorage) GetPreprepareBlock(blockHeight primitives.BlockHeight, view primitives.View) (interfaces.Block, bool)

func (*InMemoryStorage) GetPreprepareFromView

func (storage *InMemoryStorage) GetPreprepareFromView(blockHeight primitives.BlockHeight, view primitives.View) (*interfaces.PreprepareMessage, bool)

func (*InMemoryStorage) GetPreprepareMessage

func (storage *InMemoryStorage) GetPreprepareMessage(blockHeight primitives.BlockHeight, view primitives.View) (*interfaces.PreprepareMessage, bool)

func (*InMemoryStorage) GetViewChangeMessages

func (storage *InMemoryStorage) GetViewChangeMessages(blockHeight primitives.BlockHeight, view primitives.View) ([]*interfaces.ViewChangeMessage, bool)

func (*InMemoryStorage) StoreCommit

func (storage *InMemoryStorage) StoreCommit(cm *interfaces.CommitMessage) bool

Commit

func (*InMemoryStorage) StorePrepare

func (storage *InMemoryStorage) StorePrepare(pp *interfaces.PrepareMessage) bool

Prepare

func (*InMemoryStorage) StorePreprepare

func (storage *InMemoryStorage) StorePreprepare(ppm *interfaces.PreprepareMessage) bool

Preprepare

func (*InMemoryStorage) StoreViewChange

func (storage *InMemoryStorage) StoreViewChange(vcm *interfaces.ViewChangeMessage) bool

primitives.View Change

type MemberIdStr

type MemberIdStr string

Jump to

Keyboard shortcuts

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