github.com/decred/dcrlnd@v0.7.6/chainntnfs/interface_dev.go (about)

     1  //go:build dev
     2  // +build dev
     3  
     4  package chainntnfs
     5  
     6  import "github.com/decred/dcrd/chaincfg/chainhash"
     7  
     8  // TestChainNotifier enables the use of methods that are only present during
     9  // testing for ChainNotifiers.
    10  type TestChainNotifier interface {
    11  	ChainNotifier
    12  
    13  	// UnsafeStart enables notifiers to start up with a specific best block.
    14  	// Used for testing.
    15  	UnsafeStart(int64, *chainhash.Hash, int64, func() error) error
    16  }