Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy interface {
Sync(currentHeight int64, latestHeight int64, worker SyncBlockWorker) ([][]command.Command, SyncedHeight, error)
}
type SyncedHeight ¶
type SyncedHeight = int64
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Simple sync strategy by using a window of n concurrent block syncs at a time
func (*Window) Sync ¶
func (window *Window) Sync( currentHeight int64, latestHeight int64, worker SyncBlockWorker, ) ([][]command.Command, SyncedHeight, error)
Click to show internal directories.
Click to hide internal directories.