darosior / lightning-qt

bitcoin-qt for lightningd
BSD 3-Clause Clear License
36 stars 8 forks source link

"Could not pay invoice. Maybe you should open a channel with the payee" #5

Closed rsbondi closed 5 years ago

rsbondi commented 5 years ago

I get this error when trying to pay. Setup is regtest. lightningd v0.7.0-341-g7e7358e. The invoice has all the proper values when decoded in the GUI.

I can go to the cli with the same invoice:

pay lnbcrt130n1pw0jf2kpp5gxvpplw2lxqtkvey52kd0cu2f82plzfzmenfj9fygf276jz0y9dqdq0dd5kcmrfdcsxjaqcqp9jfhl0s6e3l5al0es8fq4slv5sgqauskd9urxc7rtx66mhcrxk2fqecz3d7aayvsnccuw4xvgg9g6awl7h0um42zy86a2ye5x7qsafzspj2j6dg null "killin it"
{
  "jsonrpc": "2.0",
  "id": "pay",
  "result": {
    "id": 2,
    "payment_hash": "419810fdcaf980bb3324a2acd7e38a49d41f8922de669915244255ed484f215a",
    "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199",
    "msatoshi": 13000,
    "amount_msat": "13000msat",
    "msatoshi_sent": 13002,
    "amount_sent_msat": "13002msat",
    "created_at": 1559831911,
    "status": "complete",
    "payment_preimage": "c576f431cf57361505c45100f62ea82dd5bddf14adfad1a85bf41ff580252897",
    "bolt11": "lnbcrt130n1pw0jf2kpp5gxvpplw2lxqtkvey52kd0cu2f82plzfzmenfj9fygf276jz0y9dqdq0dd5kcmrfdcsxjaqcqp9jfhl0s6e3l5al0es8fq4slv5sgqauskd9urxc7rtx66mhcrxk2fqecz3d7aayvsnccuw4xvgg9g6awl7h0um42zy86a2ye5x7qsafzspj2j6dg"
  }
}

getinfo output

{
  "jsonrpc": "2.0",
  "id": "getinfo",
  "result": {
    "id": "022c8c57d6379bf1d60290bbfa62ff98e6de43d4651c448ed4c59197020fb6f868",
    "alias": "WEIRDWATCH",
    "color": "022c8c",
    "num_peers": 2,
    "num_pending_channels": 0,
    "num_active_channels": 2,
    "num_inactive_channels": 0,
    "address": [
      {
        "type": "ipv6",
        "address": "2605:6000:1021:846b:7d1c:d000:21a8:209f",
        "port": 9735
      }
    ],
    "binding": [
      {
        "type": "ipv6",
        "address": "::",
        "port": 9735
      },
      {
        "type": "ipv4",
        "address": "0.0.0.0",
        "port": 9735
      }
    ],
    "version": "v0.7.0-341-g7e7358e",
    "blockheight": 1070,
    "network": "regtest",
    "msatoshi_fees_collected": 0,
    "fees_collected_msat": "0msat"
  }
}
darosior commented 5 years ago

Thank you for the report, I'll investigate. It's weird though : lightning-qt does (/should do) the exact same thing as you did with the CLI