Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewestBlockTracker ¶
type NewestBlockTracker struct {
// contains filtered or unexported fields
}
NewestBlockTracker is a helper structure which keeps track of the newest block (by view) in concurrency safe way.
func NewNewestBlockTracker ¶
func NewNewestBlockTracker() *NewestBlockTracker
func (*NewestBlockTracker) NewestBlock ¶
func (t *NewestBlockTracker) NewestBlock() *model.Block
NewestBlock returns the newest block (by view) tracked. Concurrently safe.
type NewestPartialTcTracker ¶
type NewestPartialTcTracker struct {
// contains filtered or unexported fields
}
NewestPartialTcTracker tracks the newest partial TC (by view) in a concurrency safe way.
func NewNewestPartialTcTracker ¶
func NewNewestPartialTcTracker() *NewestPartialTcTracker
func (*NewestPartialTcTracker) NewestPartialTc ¶
func (t *NewestPartialTcTracker) NewestPartialTc() *hotstuff.PartialTcCreated
NewestPartialTc returns the newest partial TC (by view) tracked. Concurrently safe.
func (*NewestPartialTcTracker) Track ¶
func (t *NewestPartialTcTracker) Track(partialTc *hotstuff.PartialTcCreated) bool
Track updates local state of newestPartialTc if the provided instance is newer (by view) Concurrently safe.
type NewestQCTracker ¶
type NewestQCTracker struct {
// contains filtered or unexported fields
}
NewestQCTracker is a helper structure which keeps track of the newest QC(by view) in concurrency safe way.
func NewNewestQCTracker ¶
func NewNewestQCTracker() *NewestQCTracker
func (*NewestQCTracker) NewestQC ¶
func (t *NewestQCTracker) NewestQC() *flow.QuorumCertificate
NewestQC returns the newest QC(by view) tracked. Concurrently safe.
func (*NewestQCTracker) Track ¶
func (t *NewestQCTracker) Track(qc *flow.QuorumCertificate) bool
Track updates local state of NewestQC if the provided instance is newer(by view) Concurrently safe
type NewestTCTracker ¶
type NewestTCTracker struct {
// contains filtered or unexported fields
}
NewestTCTracker is a helper structure which keeps track of the newest TC(by view) in concurrency safe way.
func NewNewestTCTracker ¶
func NewNewestTCTracker() *NewestTCTracker
func (*NewestTCTracker) NewestTC ¶
func (t *NewestTCTracker) NewestTC() *flow.TimeoutCertificate
NewestTC returns the newest TC(by view) tracked. Concurrently safe.
func (*NewestTCTracker) Track ¶
func (t *NewestTCTracker) Track(tc *flow.TimeoutCertificate) bool
Track updates local state of NewestTC if the provided instance is newer(by view) Concurrently safe.