Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Header types.Vote `json:"header"` Valid bool `json:"v"` Local bool `json:"l"` // set to true if block crossed local threshold Invalid bool `json:"i"` Hare bool `json:"h"` Data bool `json:"d"` }
func (*Block) MarshalLogObject ¶
func (b *Block) MarshalLogObject(encoder zapcore.ObjectEncoder) error
type Layer ¶
type Layer struct { Layer types.LayerID `json:"lid"` Verified bool `json:"v"` Opinion types.Hash32 `json:"opinion"` Blocks []Block `json:"blocks"` }
func (*Layer) FirstValid ¶
FirstValid returns first block that crossed positive tortoise threshold, or if layer didn't accumulate enough weight yet - use hare result.
func (*Layer) MarshalLogObject ¶
func (l *Layer) MarshalLogObject(encoder zapcore.ObjectEncoder) error
Click to show internal directories.
Click to hide internal directories.