interface.go 272 Bytes
Newer Older
1 2 3
package strategy

import (
Jeromy's avatar
Jeromy committed
4
	bstore "github.com/jbenet/go-ipfs/blocks/blockstore"
5 6
)

7
type Strategy interface {
8 9 10
	// Seed initializes the decider to a deterministic state
	Seed(int64)

Jeromy's avatar
Jeromy committed
11
	GetTasks(bandwidth int, ledgers *LedgerManager, bs bstore.Blockstore) ([]*Task, error)
12
}