gecko/snow/engine/common/bootstrapable.go

22 lines
634 B
Go
Raw Normal View History

2020-03-10 12:20:34 -07:00
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package common
import (
"github.com/ava-labs/gecko/ids"
)
// Bootstrapable defines the functionality required to support bootstrapping
type Bootstrapable interface {
// Returns the set of containerIDs that are accepted, but have no accepted
// children.
CurrentAcceptedFrontier() ids.Set
// Returns the subset of containerIDs that are accepted by this chain.
FilterAccepted(containerIDs ids.Set) (acceptedContainerIDs ids.Set)
// Force the provided containers to be accepted.
ForceAccepted(acceptedContainerIDs ids.Set)
}