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

itest: add new testCustomChannelsHtlcSuccess itest #901

Merged
merged 7 commits into from
Nov 26, 2024

Commits on Nov 26, 2024

  1. build: update to latest tapd

    Roasbeef committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    ab2e5ec View commit details
    Browse the repository at this point in the history
  2. itest: log pid of new nodes

    Roasbeef committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    8cb323d View commit details
    Browse the repository at this point in the history
  3. itest: add assertSpendableBalance helper func

    This will report balance that we can 100% spend.
    Roasbeef committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    a1797f1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ca96cea View commit details
    Browse the repository at this point in the history
  5. itest: update payInvoiceWithAssets to take optional pay status

    This is useful as sometimes we just want to return once the HTLC has
    been accepted, like when we're paying hodl invoices.
    Roasbeef committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    7225f16 View commit details
    Browse the repository at this point in the history
  6. itest: add new testCustomChannelsHtlcForceClose itest

    In this commit, we add a new itest that tests the 4 sweeping cases for
    HTLCs:
      * local success
      * remote success
      * local timeout
      * remote timeout
    
    To test this, we have Alice load up her commitment transaction with 4
    HTLCs (2 incoming, 2 outgoing) using hodl invoices. Then we force close
    her commitment transaction. In this scenario, she needs to broadcast a
    second level transaction to ultimately timeout, while Bob can sweep
    directly from the commitment transaction.
    Roasbeef committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    3817918 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f79f326 View commit details
    Browse the repository at this point in the history