kaspad/domain/consensus/model/testapi/test_reachability_manager.go
2021-02-17 18:00:16 +02:00

17 lines
577 B
Go

package testapi
import (
"github.com/kaspanet/kaspad/domain/consensus/model"
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
)
// TestReachabilityManager adds to the main ReachabilityManager methods required by tests
type TestReachabilityManager interface {
model.ReachabilityManager
SetReachabilityReindexWindow(reindexWindow uint64)
SetReachabilityReindexSlack(reindexSlack uint64)
ReachabilityReindexSlack() uint64
ValidateIntervals(root *externalapi.DomainHash) error
GetAllNodes(root *externalapi.DomainHash) ([]*externalapi.DomainHash, error)
}