Documentation ¶
Index ¶
- type BlockHashStr
- type InMemoryStorage
- func (storage *InMemoryStorage) ClearBlockHeightLogs(blockHeight primitives.BlockHeight)
- func (storage *InMemoryStorage) GetCommitMessages(blockHeight primitives.BlockHeight, view primitives.View, ...) ([]*interfaces.CommitMessage, bool)
- func (storage *InMemoryStorage) GetLatestPreprepare(blockHeight primitives.BlockHeight) (*interfaces.PreprepareMessage, bool)
- func (storage *InMemoryStorage) GetPrepareMessages(blockHeight primitives.BlockHeight, view primitives.View, ...) ([]*interfaces.PrepareMessage, bool)
- func (storage *InMemoryStorage) GetPrepareSendersIds(blockHeight primitives.BlockHeight, view primitives.View, ...) []primitives.MemberId
- func (storage *InMemoryStorage) GetPreprepareBlock(blockHeight primitives.BlockHeight, view primitives.View) (interfaces.Block, bool)
- func (storage *InMemoryStorage) GetPreprepareFromView(blockHeight primitives.BlockHeight, view primitives.View) (*interfaces.PreprepareMessage, bool)
- func (storage *InMemoryStorage) GetPreprepareMessage(blockHeight primitives.BlockHeight, view primitives.View) (*interfaces.PreprepareMessage, bool)
- func (storage *InMemoryStorage) GetViewChangeMessages(blockHeight primitives.BlockHeight, view primitives.View) ([]*interfaces.ViewChangeMessage, bool)
- func (storage *InMemoryStorage) StoreCommit(cm *interfaces.CommitMessage) bool
- func (storage *InMemoryStorage) StorePrepare(pp *interfaces.PrepareMessage) bool
- func (storage *InMemoryStorage) StorePreprepare(ppm *interfaces.PreprepareMessage) bool
- func (storage *InMemoryStorage) StoreViewChange(vcm *interfaces.ViewChangeMessage) bool
- type MemberIdStr
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
Click to show internal directories.
Click to hide internal directories.