2018-09-20 13:21:32 +03:00
|
|
|
// +build dev
|
2018-08-17 05:41:32 +03:00
|
|
|
|
2018-08-09 10:05:30 +03:00
|
|
|
package chainntnfs
|
|
|
|
|
|
|
|
import "github.com/btcsuite/btcd/chaincfg/chainhash"
|
|
|
|
|
|
|
|
// TestChainNotifier enables the use of methods that are only present during
|
|
|
|
// testing for ChainNotifiers.
|
|
|
|
type TestChainNotifier interface {
|
|
|
|
ChainNotifier
|
|
|
|
|
|
|
|
// UnsafeStart enables notifiers to start up with a specific best block.
|
|
|
|
// Used for testing.
|
|
|
|
UnsafeStart(int32, *chainhash.Hash, int32, func() error) error
|
|
|
|
}
|