Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockHeader ¶ added in v0.1.11
type BlockHeader struct { Ticket *Ticket // 1 unique per block/miner: should be a valid VRF // ParentWeight BigInt // 6 identical for all blocks in same tipset Height uint64 // 7 identical for all blocks in same tipset }
func (*BlockHeader) LastTicket ¶ added in v0.1.11
func (blk *BlockHeader) LastTicket() *Ticket
type ExpTipSet ¶ added in v0.1.11
type ExpTipSet struct { Cids []cid.Cid Blocks []*BlockHeader Height uint64 }
type TipSet ¶ added in v0.1.11
type TipSet struct {
// contains filtered or unexported fields
}
func ChainGetTipSetByHeight ¶ added in v0.1.11
ChainGetTipSetByHeight lotus ChainGetTipSetByHeight api
func NewTipSet ¶ added in v0.1.11
func NewTipSet(blks []*BlockHeader) (*TipSet, error)
func (*TipSet) Blocks ¶ added in v0.1.11
func (ts *TipSet) Blocks() []*BlockHeader
func (*TipSet) MarshalJSON ¶ added in v0.1.11
func (*TipSet) MinTicketBlock ¶ added in v0.1.11
func (ts *TipSet) MinTicketBlock() *BlockHeader
func (*TipSet) UnmarshalJSON ¶ added in v0.1.11
Click to show internal directories.
Click to hide internal directories.