itest: rename too specific variables

This commit is contained in:
Oliver Gugger committed 2022-06-29 18:29:00 +02:00
1 parent 7bd19d5cdf
commit 21f69192be
1 file changed
+5 -5
+5 -5
View File
@@ -1043,20 +1043,20 @@ func newAddrWithScript(ctx context.Context, t *testing.T,
node *lntest.HarnessNode, addrType lnrpc.AddressType) (btcutil.Address, node *lntest.HarnessNode, addrType lnrpc.AddressType) (btcutil.Address,
[]byte) { []byte) {
p2wkhResp, err := node.NewAddress(ctx, &lnrpc.NewAddressRequest{ newAddrResp, err := node.NewAddress(ctx, &lnrpc.NewAddressRequest{
Type: addrType, Type: addrType,
}) })
require.NoError(t, err) require.NoError(t, err)
p2wkhAddr, err := btcutil.DecodeAddress( addr, err := btcutil.DecodeAddress(
p2wkhResp.Address, harnessNetParams, newAddrResp.Address, harnessNetParams,
) )
require.NoError(t, err) require.NoError(t, err)
p2wkhPkScript, err := txscript.PayToAddrScript(p2wkhAddr) pkScript, err := txscript.PayToAddrScript(addr)
require.NoError(t, err) require.NoError(t, err)
return p2wkhAddr, p2wkhPkScript return addr, pkScript
} }
// sendToTaprootOutput sends coins to a p2tr output of the given taproot key and // sendToTaprootOutput sends coins to a p2tr output of the given taproot key and