multi: update to new BitcoindClient API

This commit is contained in:
Wilmer Paulino authored and Olaoluwa Osuntokun committed 2018-09-12 21:05:19 -07:00
1 parent 64681214f4
commit 2fa64dd6ff
3 files changed
+3 -5

No files matched your search

+1 -2
View File
@@ -6,7 +6,6 @@ import (
"strings" "strings"
"sync" "sync"
"sync/atomic" "sync/atomic"
"time"
"github.com/btcsuite/btcd/btcjson" "github.com/btcsuite/btcd/btcjson"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/chaincfg/chainhash"
@@ -115,7 +114,7 @@ func New(chainConn *chain.BitcoindConn, spendHintCache chainntnfs.SpendHintCache
quit: make(chan struct{}), quit: make(chan struct{}),
} }
notifier.chainConn = chainConn.NewBitcoindClient(time.Unix(0, 0)) notifier.chainConn = chainConn.NewBitcoindClient()
return notifier return notifier
} }
+1 -1
View File
@@ -335,7 +335,7 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB,
bitcoindConn, hintCache, hintCache, bitcoindConn, hintCache, hintCache,
) )
cc.chainView = chainview.NewBitcoindFilteredChainView(bitcoindConn) 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 // If we're not in regtest mode, then we'll attempt to use a
// proper fee estimator for testnet. // proper fee estimator for testnet.
+1 -2
View File
@@ -6,7 +6,6 @@ import (
"fmt" "fmt"
"sync" "sync"
"sync/atomic" "sync/atomic"
"time"
"github.com/btcsuite/btcd/btcjson" "github.com/btcsuite/btcd/btcjson"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/chaincfg/chainhash"
@@ -71,7 +70,7 @@ func NewBitcoindFilteredChainView(
quit: make(chan struct{}), quit: make(chan struct{}),
} }
chainView.chainClient = chainConn.NewBitcoindClient(time.Unix(0, 0)) chainView.chainClient = chainConn.NewBitcoindClient()
chainView.blockQueue = newBlockEventQueue() chainView.blockQueue = newBlockEventQueue()
return chainView return chainView