lnwallet: make BlockChainIO.GetUTXO take cancel chan

Use quit channels as cancel chan for call to GetUTXO.
This commit is contained in:
Johan T. Halseth
2018-08-24 15:31:57 +02:00
parent beb5d14ed9
commit 10070ecab7
8 changed files with 12 additions and 8 deletions

View File

@@ -181,7 +181,8 @@ func (m *mockChain) addUtxo(op wire.OutPoint, out *wire.TxOut) {
m.utxos[op] = *out
m.Unlock()
}
func (m *mockChain) GetUtxo(op *wire.OutPoint, _ []byte, _ uint32) (*wire.TxOut, error) {
func (m *mockChain) GetUtxo(op *wire.OutPoint, _ []byte, _ uint32,
_ <-chan struct{}) (*wire.TxOut, error) {
m.RLock()
defer m.RUnlock()