Documentation ¶
Index ¶
- Constants
- type BSOptions
- type BSTipSet
- type BlockSync
- func (bs *BlockSync) AddPeer(p peer.ID)
- func (bs *BlockSync) FetchMessagesByCids(ctx context.Context, cids []cid.Cid) ([]*types.Message, error)
- func (bs *BlockSync) FetchSignedMessagesByCids(ctx context.Context, cids []cid.Cid) ([]*types.SignedMessage, error)
- func (bs *BlockSync) GetBlock(ctx context.Context, c cid.Cid) (*types.BlockHeader, error)
- func (bs *BlockSync) GetBlocks(ctx context.Context, tsk types.TipSetKey, count int) ([]*types.TipSet, error)
- func (bs *BlockSync) GetChainMessages(ctx context.Context, h *types.TipSet, count uint64) ([]*BSTipSet, error)
- func (bs *BlockSync) GetFullTipSet(ctx context.Context, p peer.ID, tsk types.TipSetKey) (*store.FullTipSet, error)
- func (bs *BlockSync) RemovePeer(p peer.ID)
- type BlockSyncRequest
- type BlockSyncResponse
- type BlockSyncService
- type NewStreamFunc
Constants ¶
View Source
const ( BSOptBlocks = 1 << 0 BSOptMessages = 1 << 1 )
View Source
const BlockSyncProtocolID = "/fil/sync/blk/0.0.1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BSOptions ¶
func ParseBSOptions ¶
type BSTipSet ¶
type BSTipSet struct { Blocks []*types.BlockHeader BlsMessages []*types.Message BlsMsgIncludes [][]uint64 SecpkMessages []*types.SignedMessage SecpkMsgIncludes [][]uint64 }
type BlockSync ¶
type BlockSync struct {
// contains filtered or unexported fields
}
func NewBlockSyncClient ¶
func NewBlockSyncClient(bserv dtypes.ChainBlockService, h host.Host, pmgr peermgr.MaybePeerMgr) *BlockSync
func (*BlockSync) FetchMessagesByCids ¶
func (*BlockSync) FetchSignedMessagesByCids ¶
func (*BlockSync) GetChainMessages ¶
func (*BlockSync) GetFullTipSet ¶
func (*BlockSync) RemovePeer ¶
type BlockSyncRequest ¶
func (*BlockSyncRequest) MarshalCBOR ¶
func (t *BlockSyncRequest) MarshalCBOR(w io.Writer) error
func (*BlockSyncRequest) UnmarshalCBOR ¶
func (t *BlockSyncRequest) UnmarshalCBOR(r io.Reader) error
type BlockSyncResponse ¶
func (*BlockSyncResponse) MarshalCBOR ¶
func (t *BlockSyncResponse) MarshalCBOR(w io.Writer) error
func (*BlockSyncResponse) UnmarshalCBOR ¶
func (t *BlockSyncResponse) UnmarshalCBOR(r io.Reader) error
type BlockSyncService ¶
type BlockSyncService struct {
// contains filtered or unexported fields
}
func NewBlockSyncService ¶
func NewBlockSyncService(cs *store.ChainStore) *BlockSyncService
func (*BlockSyncService) HandleStream ¶
func (bss *BlockSyncService) HandleStream(s inet.Stream)
Click to show internal directories.
Click to hide internal directories.