multi: update to new BitcoindClient API

This commit is contained in:
Wilmer Paulino 2018-09-12 15:57:05 -07:00 committed by Olaoluwa Osuntokun
parent 64681214f4
commit 2fa64dd6ff
3 changed files with 3 additions and 5 deletions

@ -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
} }

@ -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.

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