lntest: skip zeroConf ListUnspent for neutrino
This commit is contained in:
parent
19d6cc00e5
commit
ca1e9dcecb
@ -1314,6 +1314,12 @@ func (n *NetworkHarness) sendCoins(ctx context.Context, amt btcutil.Amount,
|
|||||||
// Now, wait for ListUnspent to show the unconfirmed transaction
|
// Now, wait for ListUnspent to show the unconfirmed transaction
|
||||||
// containing the correct pkscript.
|
// containing the correct pkscript.
|
||||||
err = WaitNoError(func() error {
|
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{}
|
req := &lnrpc.ListUnspentRequest{}
|
||||||
resp, err := target.ListUnspent(ctx, req)
|
resp, err := target.ListUnspent(ctx, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user