chainntnfs: declare common ErrChainNotifierShuttingDown for all backends

This commit is contained in:
Wilmer Paulino
2018-12-10 18:25:41 -08:00
parent 50650d054e
commit be2c321c8c
4 changed files with 20 additions and 33 deletions

View File

@@ -1,6 +1,7 @@
package chainntnfs
import (
"errors"
"fmt"
"sync"
@@ -9,6 +10,12 @@ import (
"github.com/btcsuite/btcd/wire"
)
var (
// ErrChainNotifierShuttingDown is used when we are trying to
// measure a spend notification when notifier is already stopped.
ErrChainNotifierShuttingDown = errors.New("chain notifier shutting down")
)
// TxConfStatus denotes the status of a transaction's lookup.
type TxConfStatus uint8