Skip to content

[cch] lnd settle invoice success , but ckb tlc timeout #1029

@gpBlockchain

Description

@gpBlockchain

commit: adb080f

After the invoice.expiry timeouts, settle_invoice will cause CKB to be unable to retrieve funds via preimage in time.

  1. btc_invoice = lnd[1].addholdinvoice(expiry 5s)
  2. result = fiber[0].send_btc(btc_invoice)
  3. parse_invoice(result["incoming_invoice"]["Fiber"])
    invoice.expiry = 4s
  4. fiber[1].send_payment(result["incoming_invoice"]["Fiber"])
    send success
  5. sleep 10s ,wait fiber invoice == HoldTlcTimeout
  6. lnd[1].settle_invoice(btc_invoice)
    success
  7. fiber[0].get_cch_order(btc_invoice)
    cch order == outgoing_succeeded
    expected : fiber can settle_invoice success

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions