lntest: skip zeroConf ListUnspent for neutrino

This commit is contained in:
Johan T. Halseth 2019-05-24 14:17:49 +02:00
parent 19d6cc00e5
commit ca1e9dcecb
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -1314,6 +1314,12 @@ func (n *NetworkHarness) sendCoins(ctx context.Context, amt btcutil.Amount,
// Now, wait for ListUnspent to show the unconfirmed transaction
// containing the correct pkscript.
err = WaitNoError(func() error {
// Since neutrino doesn't support unconfirmed outputs, skip
// this check.
if target.cfg.BackendCfg.Name() == "neutrino" {
return nil
}
req := &lnrpc.ListUnspentRequest{}
resp, err := target.ListUnspent(ctx, req)
if err != nil {