Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockProposer ¶
type BlockProposer interface {
SyncTracker() *types.TargetTracker
SendHello(ci *block.ChainInfo) error
SendOwnBlock(ci *block.ChainInfo) error
SendGossipBlock(ci *block.ChainInfo) error
WaiterForTarget(wk block.TipSetKey) func() error
}
BlockProposer allows callers to propose new blocks for inclusion in the chain.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager sync the chain.
func NewManager ¶
func NewManager(fv syncer.FullBlockValidator, hv syncer.BlockValidator, cs syncer.ChainSelector, s syncer.ChainReaderWriter, m *chain.MessageStore, bsstore blockstore.Blockstore, f syncer.Fetcher, exchangeClient exchange.Client, c clock.Clock, detector *slashing.ConsensusFaultDetector, fork fork.IFork) (Manager, error)
NewManager creates a new chain sync manager.
func (*Manager) BlockProposer ¶
func (m *Manager) BlockProposer() BlockProposer
BlockProposer returns the block proposer.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package exchange contains the ChainExchange server and client components.
|
Package exchange contains the ChainExchange server and client components. |
Click to show internal directories.
Click to hide internal directories.