Versions in this module Expand all Collapse all v3 v3.0.1 Dec 27, 2023 v3.0.0 Dec 23, 2022 Changes in this version + const EntryTypeWalEntry + var ErrWrongFormattingData = fmt.Errorf("wrong formatting data") + type LwsWalAdaptor struct + func (l *LwsWalAdaptor) AddNewView() error + func (l *LwsWalAdaptor) AddProposalWalIndex(proposalHeight, index uint64) + func (l *LwsWalAdaptor) Close() + func (l *LwsWalAdaptor) GetHeightStatus() map[uint64]uint64 + func (l *LwsWalAdaptor) ReplayWal() (bool, error) + func (l *LwsWalAdaptor) SaveWalEntry(msgType maxbftpb.MessageType, msg []byte) (uint64, error) + func (l *LwsWalAdaptor) SwitchState(contract *maxbftpb.GovernanceContract) + func (l *LwsWalAdaptor) UpdateWalIndexAndTrunc(committedHeight uint64) + type WalAdaptor interface + AddNewView func() error + AddProposalWalIndex func(proposalHeight, index uint64) + Close func() + GetHeightStatus func() map[uint64]uint64 + ReplayWal func() (hasWalEntry bool, err error) + SaveWalEntry func(msgType maxbft.MessageType, msg []byte) (uint64, error) + SwitchState func(contract *maxbftpb.GovernanceContract) + UpdateWalIndexAndTrunc func(committedHeight uint64) + func NewLwsWalAdaptor(path string, epochId uint64, forester forest.Forester, ...) (WalAdaptor, error) + type WalEntryCoder struct + func (c *WalEntryCoder) Decode(data []byte) (interface{}, error) + func (c *WalEntryCoder) Encode(s interface{}) ([]byte, error) + func (c *WalEntryCoder) Type() int8 Other modules containing this package chainmaker.org/chainmaker/consensus-maxbft/v2