Giter Club home page Giter Club logo

Comments (5)

lschmierer avatar lschmierer commented on July 19, 2024

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
}

from boltz-client.

michael1011 avatar michael1011 commented on July 19, 2024

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.

from boltz-client.

lschmierer avatar lschmierer commented on July 19, 2024

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?

from boltz-client.

michael1011 avatar michael1011 commented on July 19, 2024

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.

from boltz-client.

jackstar12 avatar jackstar12 commented on July 19, 2024

Channel creations have been deprecated

from boltz-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.