github.com/MetalBlockchain/metalgo@v1.11.9/snow/engine/common/bootstrap_tracker.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package common
     5  
     6  import "github.com/MetalBlockchain/metalgo/ids"
     7  
     8  // BootstrapTracker describes the standard interface for tracking the status of
     9  // a subnet bootstrapping
    10  type BootstrapTracker interface {
    11  	// Returns true iff done bootstrapping
    12  	IsBootstrapped() bool
    13  
    14  	// Bootstrapped marks the named chain as being bootstrapped
    15  	Bootstrapped(chainID ids.ID)
    16  
    17  	OnBootstrapCompleted() chan struct{}
    18  }