chainntnfs: declare common ErrChainNotifierShuttingDown for all backends

This commit is contained in:
Wilmer Paulino committed 2019-01-21 13:58:52 -08:00
1 parent 50650d054e
commit be2c321c8c
4 files changed
+20 -33

No files matched your search

+7
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