lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.73k stars 2.09k forks source link

node backend does not support taproot #6872

Closed hihouhou closed 2 years ago

hihouhou commented 2 years ago

Background

with v0.15.1-beta update

Your environment

Steps to reproduce

just start lnd

Expected behaviour

lnd up

Actual behaviour

lnd | 2022-08-30 22:35:21.841 [ERR] LTND: unable to create partial chain control: node backend does not support taproot lnd | 2022-08-30 22:35:21.841 [ERR] LTND: Shutting down because error in main method: error creating wallet config: unable to create partial chain control: node backend does not support taproot lnd | 2022-08-30 22:35:21.864 [INF] LTND: Shutdown complete lnd | lnd | error creating wallet config: unable to create partial chain control: node backend does not support taproot

on your doc :

https://github.com/lightningnetwork/lnd/pull/6798. https://github.com/lightningnetwork/lnd/pull/6826, the officially supported versions of bitcoind are: 21, 22, and 23. nothing about btcd ?

Roasbeef commented 2 years ago

You want this version for btcd: https://github.com/btcsuite/btcd/releases/tag/v0.23.1

Which docs are you referring to?

hihouhou commented 2 years ago

the release was updated 1 mn ago :-) I 'm testing

hihouhou commented 2 years ago

btcd@btcd:/opt/btcd$ ./bin/btcd --version btcd version 0.23.1-beta

but same error, I don't see any option about taproot, am I blind ?

hihouhou commented 2 years ago

You want this version for btcd: https://github.com/btcsuite/btcd/releases/tag/v0.23.1

Which docs are you referring to?

https://github.com/lightningnetwork/lnd/blob/v0.15.1-beta.rc1/docs/release-notes/release-notes-0.15.1.md

hihouhou commented 2 years ago

reminder for me, never update a server before sleeping 🤣

positiveblue commented 2 years ago

What is the output for client.GetBlockChainInfo() when you hit your btcd (v0.23.1) server? Doesn't it include taproot under resp.SoftForks.Bip9SoftForks ?

hihouhou commented 2 years ago

weird with getblockchaininfo method ->{"jsonrpc":"1.0","result":null,"error":{"code":-32603,"message":"limited user not authorized for this method"},"id":"1"} I don't find anything on https://github.com/btcsuite/btcd/blob/master/docs/json_rpc_api.md#JSONAuth but curl works because getinfo :

{
  "jsonrpc": "1.0",
  "result": {
    "version": 230100,
    "protocolversion": 70002,
    "blocks": 751931,
    "timeoffset": -1,
    "connections": 8,
    "proxy": "",
    "difficulty": 28351606743493.773,
    "testnet": false,
    "relayfee": 1e-05,
    "errors": ""
  },
  "error": null,
  "id": "1"
}
hihouhou commented 2 years ago

sorry, It's late for me { "csv": { "status": "active", "bit": 0, "startTime": 0, "start_time": 1462060800, "timeout": 1493596800, "since": 0, "min_activation_height": 0 }, "dummy": { "status": "defined", "bit": 28, "startTime": 0, "start_time": 11991456010, "timeout": 1230767999, "since": 0, "min_activation_height": 0 }, "dummy-min-activation": { "status": "started", "bit": 22, "startTime": 0, "start_time": -62135596800, "timeout": -62135596800, "since": 0, "min_activation_height": 100000 }, "segwit": { "status": "active", "bit": 1, "startTime": 0, "start_time": 1479168000, "timeout": 1510704000, "since": 0, "min_activation_height": 0 }, "taproot": { "status": "active", "bit": 2, "startTime": 0, "start_time": 1619222400, "timeout": 1628640000, "since": 0, "min_activation_height": 709632 } }

hihouhou commented 2 years ago

found!!! I used rpclimited creds....with rpcuser creds it's up ! is it ok about my solution ?

positiveblue commented 2 years ago

It looks ok, taproot key is there so lnd v0.15.1-beta should not complain about it :eyes:

Does it still complain after restarting it pointing to the btcd version 0.23.1-beta?

hihouhou commented 2 years ago

only ok with not rpclimiteduser but rpcuser, you saved my sleep and my server, thank you for the support