test: update chainnotifier mock to fwd notifications for matching txs
package test
import (
+ "bytes"
"sync"
"time"
@@ -111,10 +112,12 @@ func (c *mockChainNotifier) RegisterConfirmationsNtfn(ctx context.Context,
select {
case m := <-c.lnd.ConfChannel:
+ if bytes.Equal(m.Tx.TxOut[0].PkScript, pkScript) {
select {
case confChan <- m:
case <-ctx.Done():
}
+ }
case <-ctx.Done():
}
}()
