multi: update to new BitcoindClient API
This commit is contained in:
1 parent
64681214f4
commit
2fa64dd6ff
3 files changed
+3
-5
No files matched your search
@@ -6,7 +6,6 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/btcsuite/btcd/btcjson"
|
||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||
@@ -115,7 +114,7 @@ func New(chainConn *chain.BitcoindConn, spendHintCache chainntnfs.SpendHintCache
|
||||
quit: make(chan struct{}),
|
||||
}
|
||||
|
||||
notifier.chainConn = chainConn.NewBitcoindClient(time.Unix(0, 0))
|
||||
notifier.chainConn = chainConn.NewBitcoindClient()
|
||||
|
||||
return notifier
|
||||
}
|
||||
|
||||
+1
-1
@@ -335,7 +335,7 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB,
|
||||
bitcoindConn, hintCache, hintCache,
|
||||
)
|
||||
cc.chainView = chainview.NewBitcoindFilteredChainView(bitcoindConn)
|
||||
walletConfig.ChainSource = bitcoindConn.NewBitcoindClient(birthday)
|
||||
walletConfig.ChainSource = bitcoindConn.NewBitcoindClient()
|
||||
|
||||
// If we're not in regtest mode, then we'll attempt to use a
|
||||
// proper fee estimator for testnet.
|
||||
|
||||
@@ -6,7 +6,6 @@ import (
|
||||
"fmt"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/btcsuite/btcd/btcjson"
|
||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||
@@ -71,7 +70,7 @@ func NewBitcoindFilteredChainView(
|
||||
quit: make(chan struct{}),
|
||||
}
|
||||
|
||||
chainView.chainClient = chainConn.NewBitcoindClient(time.Unix(0, 0))
|
||||
chainView.chainClient = chainConn.NewBitcoindClient()
|
||||
chainView.blockQueue = newBlockEventQueue()
|
||||
|
||||
return chainView
|
||||
|
||||
Reference in new issue
Block a user