Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: 2021/07/17 13:27:01 Could not find Channel of Channel Creation wuQmvp #48

Closed
lschmierer opened this issue Jul 17, 2021 · 5 comments

Comments

@lschmierer
Copy link
Contributor

lschmierer commented Jul 17, 2021

I tried creating a channel using boltzcli create channel 1000000 25 and subsequently transacted the specified amount (1005340 sats) to 3J7yf1k5JmgAs83ArzRrLcaacSHBp2ktpj.
https://mempool.space/tx/2ef8bc6939fac6ec283e0c7f42117b1d9d82196c63c6bdb9b115c9722f539286

Although the transaction is confirmed, no channel is opened to my node.

Why is no channel created?
How can I recover my funds using boltz-lnd?

boltzcli swapinfo wuQmvp output:

{
  "swap": {
    "id": "wuQmvp",
    "state": "PENDING",
    "error": "",
    "status": "invoice.pending",
    "privateKey": "<redacted>",
    "preimage": "<redacted>",
    "redeemScript": "a914941c1f600998347865dcd6413e371687c51e3bf98763210350f408f3ac2cf94c98e71b50bbffeb0ddf4812aa47ff32ae5d36a8a4334bae8367037c8d0ab1752102c4e998abcf12a7b0ec0761dcb6f617773d26ee244eb5af39bbef0fc0a44ae97868ac",
    "invoice": "lnbc10m1ps0945tpp5qhfyj83aj80gq8j9r5xpq22vw4vx40pfuv5p5vc4rge4pjlkrqssdpggd5xzmnwv4kzqsmjv4shg6t0dcsxvun0d5syy4zrcqzpgxqyz57csp5z42dzqmtkthtdgkl3alkcuar2dx59zv72p7vet0egnxtgzjwal2s9qyyssqe8ayphakwxge290wnasf3yea3lx67w25cw4wuxfg3qkt9ml9nuz3m63fmxua6p8vdgk0nyqzms0c3fu6nzmrvps0uk7mgy7d4lnxdlsqkwn6mz",
    "lockupAddress": "3J7yf1k5JmgAs83ArzRrLcaacSHBp2ktpj",
    "expectedAmount": "1005340",
    "timeoutBlockHeight": 691580,
    "lockupTransactionId": "",
    "refundTransactionId": ""
  },
  "channelCreation": {
    "swapId": "wuQmvp",
    "status": "none",
    "inboundLiquidity": 25,
    "private": false,
    "fundingTransactionId": "",
    "fundingTransactionVout": 0
  },
  "reverseSwap": null
}

Logs

INFO : 2021/07/17 13:09:31 Creating a public Channel Creation with 25% inbound liquidity for 1000000 satoshis
INFO : 2021/07/17 13:09:31 Verified redeem script and address of Channel Creation wuQmvp
INFO : 2021/07/17 13:09:31 Listening to events of Channel Creation wuQmvp
INFO : 2021/07/17 13:09:31 Subscribing to invoice events of Channel Creation wuQmvp
INFO : 2021/07/17 13:09:31 Connected to LND invoice event stream: 05d2491e3d91de801e451d0c10294c75586abc29e3281a33151a3350cbf61821
INFO : 2021/07/17 13:09:31 Created new Channel Creation wuQmvp: {
  "Id": "wuQmvp",
  "State": "PENDING",
  "Error": "",
  "Status": "invoice.set",
  "PrivateKey": "<redacted>",
  "Preimage": "<redacted>",
  "RedeemScript": "a914941c1f600998347865dcd6413e371687c51e3bf98763210350f408f3ac2cf94c98e71b50bbffeb0ddf4812aa47ff32ae5d36a8a4334bae8367037c8d0ab1752102c4e998abcf12a7b0ec0761dcb6f617773d26ee244eb5af39bbef0fc0a44ae97868ac",
  "Invoice": "lnbc10m1ps0945tpp5qhfyj83aj80gq8j9r5xpq22vw4vx40pfuv5p5vc4rge4pjlkrqssdpggd5xzmnwv4kzqsmjv4shg6t0dcsxvun0d5syy4zrcqzpgxqyz57csp5z42dzqmtkthtdgkl3alkcuar2dx59zv72p7vet0egnxtgzjwal2s9qyyssqe8ayphakwxge290wnasf3yea3lx67w25cw4wuxfg3qkt9ml9nuz3m63fmxua6p8vdgk0nyqzms0c3fu6nzmrvps0uk7mgy7d4lnxdlsqkwn6mz",
  "Address": "3J7yf1k5JmgAs83ArzRrLcaacSHBp2ktpj",
  "ExpectedAmount": 1005340,
  "TimeoutBlockHeight": 691580,
  "LockupTransactionId": "",
  "RefundTransactionId": ""
}
{
  "SwapId": "wuQmvp",
  "Status": "none",
  "InboundLiquidity": 25,
  "Private": false,
  "FundingTransactionId": "",
  "FundingTransactionVout": 0
}
INFO : 2021/07/17 13:14:26 Channel Creation wuQmvp status update: transaction.mempool
INFO : 2021/07/17 13:14:27 Connected to Boltz LND node: 026165850492521f4ac8abd9bd8088123446d126f648ca35e60f88177dc149ceb2@104.196.200.39:9735
INFO : 2021/07/17 13:26:57 Channel Creation wuQmvp status update: transaction.confirmed
INFO : 2021/07/17 13:27:00 Already connected to Boltz LND node: 026165850492521f4ac8abd9bd8088123446d126f648ca35e60f88177dc149ceb2@104.196.200.39:9735
INFO : 2021/07/17 13:27:00 Channel Creation wuQmvp status update: invoice.pending
ERROR: 2021/07/17 13:27:01 Could not find Channel of Channel Creation wuQmvp
@lschmierer
Copy link
Contributor Author

lschmierer commented Jul 17, 2021

Boltz tried paying the invoice on an preexisting channel with another node instead of creating a new channel.

{
    "memo": "Channel Creation from BTC",
    "r_preimage": null,
    "r_hash": "05d2491e3d91de801e451d0c10294c75586abc29e3281a33151a3350cbf61821",
    "value": "1000000",
    "value_msat": "1000000000",
    "settled": false,
    "creation_date": "1626527371",
    "settle_date": "0",
    "payment_request": "lnbc10m1ps0945tpp5qhfyj83aj80gq8j9r5xpq22vw4vx40pfuv5p5vc4rge4pjlkrqssdpggd5xzmnwv4kzqsmjv4shg6t0dcsxvun0d5syy4zrcqzpgxqyz57csp5z42dzqmtkthtdgkl3alkcuar2dx59zv72p7vet0egnxtgzjwal2s9qyyssqe8ayphakwxge290wnasf3yea3lx67w25cw4wuxfg3qkt9ml9nuz3m63fmxua6p8vdgk0nyqzms0c3fu6nzmrvps0uk7mgy7d4lnxdlsqkwn6mz",
    "description_hash": null,
    "expiry": "87000",
    "fallback_addr": "",
    "cltv_expiry": "40",
    "route_hints": [
    ],
    "private": false,
    "add_index": "13",
    "settle_index": "0",
    "amt_paid": "1000000000",
    "amt_paid_sat": "1000000",
    "amt_paid_msat": "1000000000",
    "state": "ACCEPTED",
    "htlcs": [
        {
            "chan_id": "759313934151385089",
            "htlc_index": "6",
            "amt_msat": "1000000000",
            "accept_height": 691438,
            "accept_time": "1626528421",
            "resolve_time": "0",
            "expiry_height": 691481,
            "state": "ACCEPTED",
            "custom_records": {
            },
            "mpp_total_amt_msat": "1000000000",
            "amp": null
        }
    ],
    "features": {
        "9": {
            "name": "tlv-onion",
            "is_required": false,
            "is_known": true
        },
        "14": {
            "name": "payment-addr",
            "is_required": true,
            "is_known": true
        },
        "17": {
            "name": "multi-path-payments",
            "is_required": false,
            "is_known": true
        }
    },
    "is_keysend": false,
    "payment_addr": "1554d1036bb2eeb6a2df8f7f6c73a3534d42899e507cccadf944ccb40a4eefd5",
    "is_amp": false
}

I cancelled the invoice. How can I get the refund with boltz-lnd?

boltzcli swapinfo wuQmvp now gives a server error.

{
  "swap": {
    "id": "wuQmvp",
    "state": "SERVER_ERROR",
    "error": "",
    "status": "invoice.failedToPay",
    "privateKey": "<redacted>",
    "preimage": "<redacted>",
    "redeemScript": "a914941c1f600998347865dcd6413e371687c51e3bf98763210350f408f3ac2cf94c98e71b50bbffeb0ddf4812aa47ff32ae5d36a8a4334bae8367037c8d0ab1752102c4e998abcf12a7b0ec0761dcb6f617773d26ee244eb5af39bbef0fc0a44ae97868ac",
    "invoice": "lnbc10m1ps0945tpp5qhfyj83aj80gq8j9r5xpq22vw4vx40pfuv5p5vc4rge4pjlkrqssdpggd5xzmnwv4kzqsmjv4shg6t0dcsxvun0d5syy4zrcqzpgxqyz57csp5z42dzqmtkthtdgkl3alkcuar2dx59zv72p7vet0egnxtgzjwal2s9qyyssqe8ayphakwxge290wnasf3yea3lx67w25cw4wuxfg3qkt9ml9nuz3m63fmxua6p8vdgk0nyqzms0c3fu6nzmrvps0uk7mgy7d4lnxdlsqkwn6mz",
    "lockupAddress": "3J7yf1k5JmgAs83ArzRrLcaacSHBp2ktpj",
    "expectedAmount": "1005340",
    "timeoutBlockHeight": 691580,
    "lockupTransactionId": "",
    "refundTransactionId": ""
  },
  "channelCreation": {
    "swapId": "wuQmvp",
    "status": "none",
    "inboundLiquidity": 25,
    "private": false,
    "fundingTransactionId": "",
    "fundingTransactionVout": 0
  },
  "reverseSwap": null
}

@michael1011
Copy link
Member

Why is no channel created?

Good question. I will look into what happened from our point of view and get back to you.

How can I recover my funds using boltz-lnd?

Just keep the application running. boltz-lnd will automatically refund to the onchain wallet of LND after timeoutBlockHeight passed. Block number 691580 in your case.

I removed some of the values in your first message. Those are the ones needed to refund and could have been used to steal your funds. The swapinfo command gives you all information about the swap in the database, including the keys and other sensitive information.

@lschmierer
Copy link
Contributor Author

lschmierer commented Jul 18, 2021

Thank you very much, I am feeling quiet embarrassed for pasting my secrets 🙈

Any idea why the channel was not created? Is that an issue on Boltz server-side?

One question: Was I supposed to manually send BTC to the lockupAddress or should boltz-lnd have taken care of this?

@michael1011
Copy link
Member

Is that an issue on Boltz server-side?

Yes, it was a server-side issue. I am still trying to fully understand what went wrong. Once I fix the issue, I'll get back to you.

One question: Was I supposed to manually send BTC to the lockupAddress or should boltz-lnd have taken care of this?

You were supposed to send the onchain BTC yourself. boltz-lnd does not send any onchain funds from your LND wallet.

@jackstar12
Copy link
Member

Channel creations have been deprecated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants