lnwallet: make BlockChainIO.GetUTXO take cancel chan
Use quit channels as cancel chan for call to GetUTXO.
This commit is contained in:
8 files changed
+12
-8
No files matched your search
@@ -38,7 +38,7 @@ func (b *BtcWallet) GetBestBlock() (*chainhash.Hash, int32, error) {
|
||||
//
|
||||
// This method is a part of the lnwallet.BlockChainIO interface.
|
||||
func (b *BtcWallet) GetUtxo(op *wire.OutPoint, pkScript []byte,
|
||||
heightHint uint32) (*wire.TxOut, error) {
|
||||
heightHint uint32, cancel <-chan struct{}) (*wire.TxOut, error) {
|
||||
|
||||
switch backend := b.chain.(type) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user