github lightninglabs/loop v0.36.1-beta

one hour ago

New Features

  • Static addresses support local labels. Set a label when creating an address,
    or update or clear it later. Deposit, withdrawal and static Loop In listings
    report both the receiving address label and the lnd funding transaction label.
    Change addresses inherit the distinct labels of the input addresses, joined
    with commas up to the label length limit.
    PR #1178

  • loop static listaddresses lists funded and unused addresses with their
    labels, wallet key locators and expiry. Repeat --label to match any of
    several exact labels. Use --include-deposits to see each address's
    visible deposits, and --filter to select a deposit state.
    PR #1317

  • loop suggestswaps previews the next bitcoin easy autoloop swap. If it
    cannot suggest a swap, the RPC returns easy_autoloop_reason, including
    AUTO_REASON_BELOW_MINIMUM or AUTO_REASON_NO_ELIGIBLE_CHANNEL.
    The disqualified map identifies skipped channels with reasons including
    AUTO_REASON_CHANNEL_INACTIVE and AUTO_REASON_PEER_EXCLUDED. When
    in-flight fee reservations fill the remaining budget, the dry run reports AUTO_REASON_BUDGET_INSUFFICIENT.
    PR #1301

Breaking Changes

  • Bitcoin easy autoloop now honors the client minimum and maximum swap amounts
    set with loop setparams --minamt and --maxamt. A higher minimum can
    mean fewer, larger swaps. Retries stop before going below that minimum.
    Easy autoloop reports an error if the configured limits conflict with the
    server's limits. Asset easy autoloop continues to use the server's limits.
    PR #1307

  • Bitcoin easy autoloop caps a Loop Out on the selected channel so its fee
    limit fits the remaining budget. If that leaves less than the minimum swap
    size, it waits. An in-flight swap reserves the full miner-fee allowance.
    Exceptionally high miner fees can still push actual spending over budget.
    Asset easy autoloop continues to check only that some budget remains.
    PR #1308

Bug Fixes

  • loop static listdeposits returns an error for an unrecognized deposit
    state, including --filter failed. Previously it listed every state.
    PR #1317

  • Static address Loop In, withdrawal and channel-open managers continue
    serving requests after an earlier caller disconnects. Previously an
    interrupted CLI request could leave the manager blocked until restart.
    PR #1314

  • Loop Out recovery can resume multiple unfinished swaps reported in quick
    succession. Recovery retries also stop when loopd shuts down.
    PR #1315

  • SQLite write transactions acquire the write lock at the start, allowing
    concurrent writers to wait for the busy timeout. This fixes immediate
    SQLITE_BUSY errors when recording updates such as a static Loop In
    confirmation risk decision.
    PR #1303

  • Static Loop In tracks the HTLC transaction that spends the swap's deposits
    and checks its confirmation by transaction ID. An unrelated payment to the
    same script can no longer send the deposits into an unsuccessful timeout
    sweep.
    PR #1293

  • Automatic Loop Out recovery and database-backed loop out sweephtlc wait
    for the swap's stored htlc_confs before signing. Automatic recovery also
    checks the HTLC value and requires more than 20 blocks before expiry to
    reveal a new preimage. A swap that already revealed its preimage or
    completed can still recover extra funds at any value and height.
    PR #1290

  • Running Loop Outs sweep their own HTLCs and record the preimage reveal.
    This prevents automatic recovery from revealing a preimage without the
    running swap recording it, which could cause the swap to be abandoned.
    PR #1294

Maintenance

  • Fixed a goroutine leak in the sweep batcher's presigned dust-change test.
    PR #1303

Contributors (Alphabetical Order)

  • Alex Bosworth
  • Boris Nagaev
  • claravanstaden
  • Gustavo Stingelin
  • Keyan
  • Slyghtning

Don't miss a new loop release

NewReleases is sending notifications on new releases.