lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.65k stars 2.07k forks source link

[wallet] Cannot create taproot address on lnd simnet #6552

Closed ziggie1984 closed 2 years ago

ziggie1984 commented 2 years ago

Background

when trying to create a p2tr address on simnet after mining >1000 blocks it create the address but also outputs an error:

[lncli] rpc error: code = Unknown desc = -5: Invalid address or key: sb1pgp3k6w08658n6retve7ryksd496d6ry39tnadrj9z0034vzqal0qjq2h2c

not sure whether I just have to mine a few more blocks to make the address wallet? On testnet the same command works

Your environment

Steps to reproduce

Spin up two docker nodes run lnd and try to create a taproot address even after mining >1000 blocks

Expected behaviour

create address and do not show an error or at least explain what the problem is

Actual behaviour

creates the address but also logs an error, when sending to the address the transaction is created and coins are sent but they are not visible on the other node which created the invalid address in the first place

Roasbeef commented 2 years ago

version of btcd, bitcoind, or other backend: btcd v0.20.1-beta

Does the error go away if you're using btcd master? An official tag hasn't yet been created which includes the taproot awareness.

ziggie1984 commented 2 years ago

ok I tried with the master branch of btcd and it worked :)

my btcd version was:

{
  "btcdjsonrpcapi": {
    "versionstring": "1.3.0",
    "major": 1,
    "minor": 3,
    "patch": 0,
    "prerelease": "",
    "buildmetadata": ""
  }
}
{
  "version": 220000,
  "protocolversion": 70002,
  "blocks": 1516,
  "timeoffset": 0,
  "connections": 0,
  "proxy": "",
  "difficulty": 1,
  "testnet": false,
  "relayfee": 0.00001,
  "errors":
ziggie1984 commented 2 years ago

ok it works with v0.22.0-beta version under it will let lnd complain, I will close the issue

ziggie1984 commented 2 years ago

so docker => btcd => dockerfile => version needs to be updated for lnd right ?

Roasbeef commented 2 years ago

^ Yep!