Documentation
¶
Index ¶
- func DecodePatch(t string, bs []byte) (module.Patch, error)
- func IsCorruptedWAL(err error) bool
- func IsEOF(err error) bool
- func IsNotExist(err error) bool
- func IsUnexpectedEOF(err error) bool
- func NewCommitVoteSetFromBytes(bs []byte) module.CommitVoteSet
- func NewConsensus(c module.Chain, walDir string, timestamper module.Timestamper, ...) module.Consensus
- func ResetWAL(height int64, dir string) error
- type Engine
- type Part
- type PartSet
- type PartSetBuffer
- type PartSetID
- type Syncer
- type VoteItem
- type WALConfig
- type WALManager
- type WALReader
- type WALWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCorruptedWAL ¶
func IsNotExist ¶
func IsUnexpectedEOF ¶
func NewCommitVoteSetFromBytes ¶
func NewCommitVoteSetFromBytes(bs []byte) module.CommitVoteSet
NewCommitVoteSetFromBytes returns VoteList from serialized bytes
func NewConsensus ¶
func NewConsensus( c module.Chain, walDir string, timestamper module.Timestamper, bpp fastsync.BlockProofProvider, ) module.Consensus
Types ¶
type Engine ¶
type Engine interface {
fastsync.BlockProofProvider
GetCommitBlockParts(h int64) PartSet
GetCommitPrecommits(h int64) *voteList
GetPrecommits(r int32) *voteList
GetVotes(r int32, prevotesMask *bitArray, precommitsMask *bitArray) *voteList
GetRoundState() *peerRoundState
Height() int64
Round() int32
Step() step
ReceiveBlockPartMessage(msg *blockPartMessage, unicast bool) (int, error)
ReceiveVoteListMessage(msg *voteListMessage, unicast bool) error
ReceiveBlock(br fastsync.BlockResult)
}
type PartSetBuffer ¶
type WALManager ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.