mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
multi: update to new BitcoindClient API
This commit is contained in:
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue