jb55 / clightning-dumpkeys

Dump funding wallet private keys from your clightning node
Other
20 stars 7 forks source link

Following instuctions from the readme fails when importing private key #1

Closed wanderer closed 5 years ago

wanderer commented 5 years ago

if you follow the instructions in the readme on importing your private key, it will fail.

According to the readme the description.json should look like this.

[
  {
    "desc": "combo(xprv ... /*)",
    "keypool": true,
    "timestamp": "now",
    "watchonly": false,
    "internal": false,
    "range": [0, 1000]
  }
]

when trying to import it with bitcoin-cli -rpcwallet=clightning importmulti "$(cat ./descriptors.json)" '{"rescan": false}' results in

[
  {
    "success": false,
    "error": {
      "code": -8,
      "message": "Keys can only be imported to the keypool when private keys are disabled"
    }
  }
]
jb55 commented 5 years ago

you're right, it's missing the watchonly argument on the createwallet step. thanks!