Versions in this module Expand all Collapse all v0 v0.9.0 Jan 15, 2021 Changes in this version + const IndexMessagesField + const IndexParentsField + var BlocksPerEpoch = uint64(constants.ExpectedLeadersPerEpoch) + var EmptyTSK = TipSetKey + var MaxWinCount = 3 * int64(BlocksPerEpoch) + var UndefTipSet = &TipSet + func CidArrsContains(a []cid.Cid, b cid.Cid) bool + func CidArrsEqual(a, b []cid.Cid) bool + func CidArrsSubset(a, b []cid.Cid) bool + func ReverseFullBlock(chain []*FullTipSet) + type BeaconEntry struct + Data []byte + Round uint64 + func (t *BeaconEntry) MarshalCBOR(w io.Writer) error + func (t *BeaconEntry) UnmarshalCBOR(r io.Reader) error + type Block struct + BLSAggregate *crypto.Signature + BeaconEntries []*BeaconEntry + BlockSig *crypto.Signature + ElectionProof *ElectionProof + ForkSignaling uint64 + Height abi.ChainEpoch + Messages cid.Cid + Miner address.Address + ParentBaseFee abi.TokenAmount + ParentMessageReceipts cid.Cid + ParentStateRoot cid.Cid + ParentWeight fbig.Int + Parents TipSetKey + Ticket Ticket + Timestamp uint64 + WinPoStProof []PoStProof + func DecodeBlock(b []byte) (*Block, error) + func (b *Block) Cid() cid.Cid + func (b *Block) Equals(other *Block) bool + func (b *Block) LastTicket() *Ticket + func (b *Block) Serialize() ([]byte, error) + func (b *Block) SignatureData() []byte + func (b *Block) String() string + func (b *Block) ToNode() node.Node + func (b *Block) ToStorageBlock() (blocks.Block, error) + func (t *Block) MarshalCBOR(w io.Writer) error + func (t *Block) UnmarshalCBOR(r io.Reader) error + type BlockMessagesInfo struct + Block *Block + BlsMessages []types.ChainMsg + SecpkMessages []types.ChainMsg + type BlockMsg struct + BlsMessages []cid.Cid + Header *Block + SecpkMessages []cid.Cid + func (bm *BlockMsg) Cid() cid.Cid + func (bm *BlockMsg) Serialize() ([]byte, error) + func (t *BlockMsg) MarshalCBOR(w io.Writer) error + func (t *BlockMsg) UnmarshalCBOR(r io.Reader) error + type CISlice []*ChainInfo + func (cis CISlice) Len() int + func (cis CISlice) Less(i, j int) bool + func (cis CISlice) Swap(i, j int) + type ChainInfo struct + Head *TipSet + Sender peer.ID + Source peer.ID + func NewChainInfo(source peer.ID, sender peer.ID, head *TipSet) *ChainInfo + func (i *ChainInfo) String() string + type ElectionProof struct + VRFProof VRFPi + WinCount int64 + func (ep *ElectionProof) ComputeWinCount(power abi.StoragePower, totalPower abi.StoragePower) int64 + func (t *ElectionProof) MarshalCBOR(w io.Writer) error + func (t *ElectionProof) UnmarshalCBOR(r io.Reader) error + type FullBlock struct + BLSMessages []*types.UnsignedMessage + Header *Block + SECPMessages []*types.SignedMessage + func (fb *FullBlock) Cid() cid.Cid + type FullTipSet struct + Blocks []*FullBlock + func NewFullTipSet(blks []*FullBlock) *FullTipSet + func (fts *FullTipSet) Cids() []cid.Cid + func (fts *FullTipSet) TipSet() *TipSet + type MiningBaseInfo struct + BeaconEntries []BeaconEntry + EligibleForMining bool + MinerPower abi.StoragePower + NetworkPower abi.StoragePower + PrevBeaconEntry BeaconEntry + SectorSize abi.SectorSize + Sectors []builtin.SectorInfo + WorkerKey address.Address + type PoStProof struct + PoStProof abi.RegisteredPoStProof + ProofBytes []byte + func FromAbiProof(abiProof builtin.PoStProof) PoStProof + func FromAbiProofArr(abiProof []builtin.PoStProof) []PoStProof + func (p PoStProof) AsAbiProof() builtin.PoStProof + func (t *PoStProof) MarshalCBOR(w io.Writer) error + func (t *PoStProof) UnmarshalCBOR(r io.Reader) error + type Ticket struct + VRFProof VRFPi + func (t *Ticket) Compare(o *Ticket) int + func (t *Ticket) Less(o *Ticket) bool + func (t *Ticket) MarshalCBOR(w io.Writer) error + func (t *Ticket) Quality() float64 + func (t *Ticket) UnmarshalCBOR(r io.Reader) error + func (t Ticket) String() string + type TipSet struct + func NewTipSet(blocks ...*Block) (*TipSet, error) + func RequireNewTipSet(t *testing.T, blks ...*Block) *TipSet + func (ts *TipSet) At(i int) *Block + func (ts *TipSet) Blocks() []*Block + func (ts *TipSet) Defined() bool + func (ts *TipSet) EnsureHeight() abi.ChainEpoch + func (ts *TipSet) EnsureParents() TipSetKey + func (ts *TipSet) Equals(ts2 *TipSet) bool + func (ts *TipSet) Height() (abi.ChainEpoch, error) + func (ts *TipSet) IsChildOf(parent *TipSet) bool + func (ts *TipSet) Key() TipSetKey + func (ts *TipSet) Len() int + func (ts *TipSet) MarshalJSON() ([]byte, error) + func (ts *TipSet) MinTicket() Ticket + func (ts *TipSet) MinTicketBlock() *Block + func (ts *TipSet) MinTimestamp() uint64 + func (ts *TipSet) ParentWeight() (fbig.Int, error) + func (ts *TipSet) Parents() (TipSetKey, error) + func (ts *TipSet) ToSlice() []*Block + func (ts *TipSet) UnmarshalJSON(b []byte) error + func (ts TipSet) String() string + type TipSetKey struct + func NewTipSetKey(cids ...cid.Cid) TipSetKey + func TipSetKeyFromBytes(encoded []byte) (TipSetKey, error) + func (tipsetKey *TipSetKey) UnmarshalCBOR(r io.Reader) error + func (tipsetKey *TipSetKey) UnmarshalJSON(b []byte) error + func (tipsetKey TipSetKey) Bytes() []byte + func (tipsetKey TipSetKey) Cids() []cid.Cid + func (tipsetKey TipSetKey) ContainsAll(other TipSetKey) bool + func (tipsetKey TipSetKey) Equals(other TipSetKey) bool + func (tipsetKey TipSetKey) Has(id cid.Cid) bool + func (tipsetKey TipSetKey) IsEmpty() bool + func (tipsetKey TipSetKey) MarshalCBOR(w io.Writer) error + func (tipsetKey TipSetKey) MarshalJSON() ([]byte, error) + func (tipsetKey TipSetKey) String() string + type VRFPi []byte + func (p VRFPi) Digest() [32]byte