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

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