Repository navigation
Releases
v0.36.1-beta
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 listaddresseslists funded and unused addresses with their
labels, wallet key locators and expiry. Repeat--labelto match any of
several exact labels. Use--include-depositsto see each address's
visible deposits, and--filterto select a deposit state.
PR #1317 -
loop suggestswapspreviews the next bitcoin easy autoloop swap. If it
cannot suggest a swap, the RPC returnseasy_autoloop_reason, including
AUTO_REASON_BELOW_MINIMUMorAUTO_REASON_NO_ELIGIBLE_CHANNEL.
Thedisqualifiedmap identifies skipped channels with reasons including
AUTO_REASON_CHANNEL_INACTIVEandAUTO_REASON_PEER_EXCLUDED. When
in-flight fee reservations fill the remaining budget, the dry run reportsAUTO_REASON_BUDGET_INSUFFICIENT.
PR #1301
Breaking Changes
-
Bitcoin easy autoloop now honors the client minimum and maximum swap amounts
set withloop setparams --minamtand--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 listdepositsreturns 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 whenloopdshuts 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_BUSYerrors 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 sweephtlcwait
for the swap's storedhtlc_confsbefore 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
v0.36.0-beta
New Features
-
Static Address now derives fresh receive and change addresses while retaining
per-deposit address ownership across restarts for discovery, recovery, and
signing.loop static depositcreates a new address and prints an
lncli sendcoinscommand for manual funding, with fee selection through
--sat_per_vbyteor--conf_target. Deposit listings identify the receiving
address. Existing receive addresses remain usable. Automation that sends to
a saved address can keep using it, while change can arrive at a different
address owned by the same client.
PR #1218 -
Static Address startup reconciles legacy/root, receive, and change key
counters after an lnd wallet restore. The legacy/root counter also advances
past every persisted static loop-in HTLC key, so restored wallets don't reuse
the root key or earlier HTLC keys. Counters behind persisted Loop keys are
advanced; synchronized or ahead counters are unchanged, with no new addresses
created. Wallet-watch restoration and key-counter recovery log their progress
and can be interrupted during startup. -
Static Address funding fees are split across all static-address outputs,
including deposits to different addresses not yet discovered by loopd. -
Static loop-ins retain original unconfirmed funding transactions so a
wallet-visible mined replacement can prove the original HTLC cannot confirm
after restart. Migration 26 adds the funding-transaction snapshots; older
swaps without them continue monitoring rather than treating missing wallet
history as proof that deposits can be released.
Breaking Changes
-
loop static openchannelnow defaults to anchor channels. Remove
--channel_type=tweaklessfrom scripts to use the new default. RPC callers
that specifySTATIC_REMOTE_KEYmust omit the commitment type or select a
supported type. Opening a public anchor channel requires an on-chain
reserve in the funding node's lnd wallet.
PR #1306 -
Calling
NewStaticAddressnow derives and returns a fresh receive address
instead of reusing the address associated with the client's L402.
Integrations must not assume repeated calls are idempotent or return the
same address. The RPC now requires the
swap:executepermission instead ofswap:read, including for address-only
calls. The RPC also requiresloop:in. Operators using permission-scoped
macaroons should check that they grant both operations.
The deprecatedStaticAddressSummaryResponse.static_addressfield remains
the legacy/root address for compatibility and must not be treated as the
current receive address; callNewStaticAddressto derive a fresh one.
The CLI labels this fieldlegacy_root_addressinloop static summary
output; the RPC field name remains unchanged.
PR #1218 -
The multi-address migration now rejects databases with existing deposits unless
exactly one legacy static address is available to establish their ownership.
Its guard uses ordinary schema permissions and does not require PostgreSQL's
database-levelTEMPORARYprivilege.If this migration fails and startup reports
Dirty database version 24, stop
loopd and back up the database. Verify that migration 24 rolled back, including
the absence of thedeposits.static_address_idcolumn, and correct the cause
before retrying. For a permission failure in an earlier build, use the
corrected migration; for ambiguous ownership, seek assistance repairing the
ownership data without deleting address rows. Only for this verified,
rolled-back migration 24 failure, reset its migration marker:UPDATE schema_migrations SET version = 23, dirty = false WHERE version = 24 AND dirty = true;
Then restart loopd. Do not apply this reset to another failed migration or a
database whose schema changes have not been rolled back.
Bug Fixes
-
Reject static Loop In server responses with missing or extra HTLC nonces
before signing, preventing a client crash from an incomplete nonce list.
PR #1300 -
A static Loop In that releases its deposits a second time after its payment
deadline, at its HTLC expiry or when the server rejects the swap, now only
releases deposits that are still looping in for it. Before, it could move a
deposit that another Loop In, a withdrawal or a channel open had taken in the
meantime back toDeposited, and retried forever once the deposit was spent.
A static Loop In also no longer locks a deposit that another Loop In is
already using, and a failed lock no longer resets deposits that a withdrawal
or a channel open has taken.
PR #1279 -
A static Loop In no longer releases its deposits when pushing its HTLC
signatures to the server fails or when loopd restarts during signing. The
server may have received the signatures and can publish the HTLC, so the
client continues monitoring for confirmation or payment. At the payment
deadline or HTLC expiry, release depends on deposit ownership and wallet
evidence. If the outcome is uncertain, monitoring can continue past expiry.
PR #1291 -
The static address Loop In timeout sweep now spends the exact HTLC output
confirmed on chain, including server-published backup fee variants.
Previously it always targeted the standard fee variant, so a confirmed high
fee or extremely high fee HTLC transaction could not be swept back after the
HTLC timed out. Sweeps that would leave a dust output are no longer signed.
PR #1269 -
Fractional static loop-ins defer change-address persistence and wallet imports
until the server response and local checks succeed, avoiding unused address
rows and watches on rejected requests or excessive fees. -
Static Address key recovery uses lnd's coin type for each network, including
coin type 1 on simnet, so synchronized startups consume no additional keys. -
Persist confirmed static withdrawal accounting before finalizing deposits.
Other persistence failures, for example a busy database, are retried with a
growing delay until finalization succeeds, and a withdrawal that is still
pending at shutdown is recovered on restart; missing history still allows
confirmed deposits to finalize, with a warning. -
Reject static channel opens without confirmed deposits, empty withdrawal
inputs, and fee rates that overflow conversion before locking or signing. -
Recover static loop-in ownership using persisted swap order, keeping ambiguous
deposits locked without preventing startup. Recovered owners retain every
restored input for release and finalization. Cooperative change validation
rejects incomplete original-input metadata. -
Finish risk-rejected static loop-ins once a confirmed funding conflict makes
release safe, and retain HTLC monitoring after a reorg while deposits remain
locked for timeout recovery. -
Preserve legacy root-address change accounting for static withdrawals that
confirm after upgrading to multi-address support, including withdrawals whose
destination is the root address. -
Completed withdrawal and channel-opening MuSig2 sessions are excluded from
explicit cleanup, preventing spurious warnings after successful signing. -
Fee bumps of pending Static Address withdrawals reuse their change address
across restarts, including legacy root-address change. -
Shutdown during standalone startup waits for listener initialization to
finish, preventing a late Ctrl-C from leaving a REST listener running. -
Static Address deposit timeout sweeps now sign with the deposit key's
locator. After an lnd wallet restore, root-address timeout sweeps previously
produced an invalid signature until lnd re-derived the root key. -
Static-address unspent listings refresh before reading wallet outputs and
exclude inactive historical deposits, preventing stale results after
replacement, reorg, or spending. -
Static-address issuance waiters now honor context cancellation while root
creation and address issuance remain serialized and retryable. -
Validate each selected static deposit's CSV expiry against the actual HTLC
expiry before signing. -
Preserve pending loop-in ownership of deposits during expiry and restart
recovery. Release only deposits still owned by the swap, after a positive
unspent-input or confirmed-conflict check rules out a confirmed HTLC.
Recover abandoned initialization locks at startup, retry temporary wallet
lookup failures, and finish timed-out swaps after their deposits are reused.
Check live swap claims before releasing deposits with stale legacy mappings.
Missing wallet history alone does not release deposits. -
Follow replacement static deposit expiry sweeps after a chain reorganization
instead of waiting for the old transaction until loopd restarts. -
Static Address loop-in sweep requests are now rejected unless the server
provides exactly one prevout for every sweep input. A duplicate or missing
prevout previously crashedloopdwhile computing the sweep signature
hashes.
Maintenance
-
The regtest guide documents how to refresh the Loop server image and
configure Bitcoin RPC and TLS when running the server separately.
PR #1299 -
Log the candidate swap hashes when startup keeps an ambiguously owned
static deposit locked, so the conflicting claims can be investigated. -
Static Address startup now avoids reimporting wallet scripts that lnd already
watches, address lookups remain responsive while new addresses are issued,
and root creation can recover from a failed wallet import.
Wallet-impor...
v0.35.4-beta
Bug Fixes
-
Reject incomplete static-address loop-in signing responses without crashing
the daemon.
PR #1282 -
Reject invalid static-address loop-in fee quotes before creating invoices.
PR #1281 -
Reject invalid loop-in fee quotes before creating invoices.
PR #1284 -
The
postgres.maxconnectionsoption now limits the number of open
connections to the Postgres server. It was ignored before, so concurrent
requests could open more connections than the server accepts. If the option
isn't set, loopd now opens at most 25 connections. Migration connections
are returned to the pool.
PR #1262 -
A static address loop-in whose HTLC had already spent its deposits no
longer gives up the deposits when the server rejects the confirmation risk
wait, also when the rejection is handled again after a restart. The client
keeps the deposits locked and sweeps the HTLC timeout path once the HTLC
times out. Without an observed HTLC confirmation, the client only keeps the
deposits if lnd's wallet shows that the HTLC transaction spent them.
Otherwise, for example when a deposit's funding transaction was replaced
and lnd doesn't list an HTLC transaction, the rejection fails the swap and
releases the deposits, as in v0.35.3.
PR #1278
PR #1288 -
Setting a P2PKH or P2SH address or a raw public key as the autoloop
destination no longer crashes loopd. The address is now decoded for the
active network, and a raw public key is rejected. Instant Out also rejects
raw public keys as destinations, matching Loop Out.
PR #1280 -
Autoloop, Instant Out, static address withdrawals and manual HTLC sweeps now
reject destination addresses of another network, as Loop Out already did. If
the saved autoloop destination belongs to another network, loopd removes it
at startup, and autoloop pays to wallet addresses.
PR #1280
Maintenance
Contributors (Alphabetical Order)
- Boris Nagaev
- claravanstaden
- Slyghtning
v0.35.3-beta
New Features
- Loop Out accepts bLIP 39 blinded invoices when the server supplies a separate
payment address for swap RPC authentication. The address is persisted for
restart and cooperative sweeping. Blinded payments use LND's routing without
destination-based routing plugins.
PR #1255
Breaking Changes
Bug Fixes
-
Retain active static-address deposits while a withdrawal publishes and
records its result, preventing wallet reconciliation from removing spent
inputs before a slow Neutrino publication returns. Defer new expiry checks
for these inputs until publication finishes.
PR #1176 -
A sweep batch that cannot construct its transaction now logs the failure and
retries without stoppingloopd. New sweeps use another batch until the
failing one constructs a transaction.
Presigned co-signer timeouts also retry without stopping other batches.
PR #1270 -
Disable MPTCP listeners by default, restoring plain TCP for
loopdand
mitigating the demonstrated CVE-2026-98432 exploit path on vulnerable Linux
kernels. Existing binaries can apply the same mitigation with
GODEBUG=multipathtcp=0and a restart. A patched kernel is still required to
fix the underlying vulnerability.
PR #1271 -
Bound the static Loop In risk decision replay cache to prevent unbounded
memory growth from swap server notifications for unknown swaps. Cached
decisions retain only a copy of the validated swap hash, without unknown
protobuf fields or oversized backing buffers.
PR #1264
Maintenance
- Update the regtest environment to use Docker Compose v2 when available,
falling back todocker-compose, and pull the etcd image from
bitnamilegacyso the environment can start.
PR #1263
Contributors (Alphabetical Order)
- Alex Bosworth
- Boris Nagaev
- Slyghtning
- sputn1ck
- ziggie
v0.35.2-beta
Bug Fixes
-
Update
github.com/klauspost/compressto v1.18.7 in the root and
looprpcmodules, including the fix for an out-of-bounds read in
s2.NewDict. -
A MuSig2 Loop In no longer reveals the internal key of its HTLC to the
server when the swap invoice is canceled. The key is only shared once the
invoice is paid. -
A Loop In now cancels its swap invoice before it refunds an expired HTLC,
and refunds only once lnd confirmed that the invoice can no longer be
paid. Previously the invoice stayed payable until the refund confirmed, so
a late payment could settle while the HTLC was being refunded. -
A static address loop-in whose HTLC was published without payment now
refunds the HTLC after it expires. The swap could get stuck retrying a
deposit state transition forever and never publish the refund. -
Loop-in quotes for selected static address deposits now resolve the
deposits in the set of currently tracked deposits instead of the rendered
deposit listing. Every selected deposit must be unique, tracked and in the
deposited state. -
ListUnspentDepositsnow refreshes the static address deposits before it
lists the wallet outputs, and only lists deposits that are currently
tracked as deposited. An output that disappeared during the refresh could
previously still be listed, with a stale confirmation count. -
Static address loop-ins now store their times in UTC. On Postgres outside
UTC, these times read back shifted, which moved the payment deadline:
later east of UTC, and already over west of UTC, so the invoice was
cancelled straight away. Times stored before upgrading keep their local
time, so a swap's state andloop monitornow follow the order in which
its updates were stored instead of their times.
Maintenance
-
utils.MuSig2Signnow takes the signers' raw 32-byte private keys and derives their public keys itself, instead of separate private and public key slices. Out-of-range keys are reduced modulo the secp256k1 group order, while keys that reduce to zero and calls with fewer than two signers are rejected. Go callers of this exported helper need to be updated. -
Raise the minimum Go version to 1.27.3 and move the build and release
toolchain to match. Go 1.27.3 carries the fix for CVE-2026-111943, which
distrusts a set of intermediate certificates incrypto/x509. Release
binaries are statically linked, so they only pick up the new trust
decision when rebuilt with a patched toolchain. Update golangci-lint to
v2.15.0 for Go 1.27.3 support and regenerate the protobuf bindings.
Contributors (Alphabetical Order)
- Boris Nagaev
- claravanstaden
- claudell
- dependabot[bot]
- Slyghtning
v0.35.1-beta
New Features
-
Instant Out now validates server invoices against a caller-approved maximum
swap fee. -
Static Address deposits and loop-ins now report their on-chain cost. A
deposit's cost is its share of the fee of the transaction that funded it: the
fee is split across the transaction's deposit outputs by value, so it is
counted once even if the deposits are used in different swaps, and if the
transaction also paid someone else, its whole fee is charged to the deposits.
Change that a partial loop-in or withdrawal sends back to the static address
costs nothing. If the client wallet doesn't know the funding fee, for example
for a deposit funded by an external wallet, the deposit's cost is unknown. The
newcost_onchainandcost_onchain_statusfields of
ListStaticAddressDepositsshow a deposit's cost, also before it confirms. To
add up the cost of deposits, use these deposits, since the deposits of swaps
and withdrawals can include the same deposit. A static loop-in's
cost_onchain, which was previously always zero, is the sum of the costs of
the deposits it spent, including a deposit's whole fee share when only part of
it is looped in. A swap that wasn't paid but whose htlc spent its deposits has
the cost once its htlc timed out, also if it failed after publishing its htlc
timeout sweep, but fees of the htlc timeout path are not included. Any other
failed swap reports an unknown cost. The newcost_onchain_statusfield in
ListStaticAddressSwapssays whether the cost is complete, partial (only some
funding fees are known), unknown (none are known, or the swap spent no
deposits) or pending (the cost of a deposit hasn't been determined yet, so
only the known funding fees are included).loop monitordoesn't show the
status: it reports an unknown cost as zero and a partial or pending cost as
its known part. loopd looks up a deposit's cost within about 10 seconds of
finding it, and the cost of existing deposits shortly after the first start
after upgrading. If lnd isn't synced to the chain or the lookup fails, the
cost stays pending and loopd tries again while it runs. In the rare case that
a swap takes back deposits that a later swap had already taken, their cost is
reported for the later swap if it was paid, and otherwise for neither swap. A
retried swap from before deposits were mapped to swaps can report an unknown
cost.
Issue #1174
Breaking Changes
-
Instant Out requests must now set
max_swap_fee_sat. Requests that omit the
fee cap are rejected; an explicit zero cap remains valid. Direct users of
Manager.NewInstantOutmust pass the fee cap as a required argument. -
Raise the minimum supported LND version to v0.19.0-beta. Since v0.33.3,
loopdcould not buy its L402 token on older LND, which rejected the
payment withtimeout_seconds must be specified, so aloopdwithout a
paid token could not use the Loop server.
Bug Fixes
-
Sweep batch selection now filters out batches with an incompatible signing
mode before attempting admission, avoiding spurious warnings when regular
and presigned sweeps are pending together. -
A presigned sweep batch that can't admit a sweep because its co-signers did
not sign in time now logs the rejection at info level instead of as a
warning. Such sweeps are offered to another batch or a new one. Rejections
during shutdown are logged at info level too; other presigning failures
remain warnings. -
Static Address loop-in sweep signing requests and their authenticated
responses are now processed concurrently, preventing slow connections from
delaying later responses until the server times them out. Sweep work is
bounded, and server-provided prevouts are validated before signing. -
Instant Out now attempts to cancel server-side swaps when client
initialization fails, allowing locked reservations to be released without
waiting for the server timeout. -
Static Address loop-in requests now fail promptly after the manager exits,
including shutdown and initialization failures. -
Static-address loop-in quotes and manual outpoint initiation now reject
deposits that are too close to expiry before contacting the Loop server. -
Static Address deposit reconciliation now preserves authoritative
first-confirmation heights while lnd is catching up, preventing premature
expiry decisions from mismatched wallet and block-notification heights. -
Rapid reservation funding confirmations no longer cause initialization to
time out while waiting for an intermediate client state. -
Loop In commands now parse
--route_hintsas a single JSON array and pass
every route and hop through unchanged. -
loopd --versioninside the official Docker images now reports the commit
it was built from instead of an empty string. -
The official
linux/arm64Docker images now contain arm64 binaries and an
arm64 userspace. Every published platform was previously built for amd64, so
loopdfailed withexec format erroron ARM hosts.
Issue #1211 -
When a Loop Out prepayment cannot be routed, the client now reports the
failure to the server as a prepay routing failure. It was previously
reported as a failure to route the swap invoice. -
A fee bump of a static address withdrawal without an address now pays
the address of the withdrawal it replaces. It paid a new wallet address
before, and the client never recognized its confirmation, so the deposits
stayed in the withdrawing state. A fee bump to a different address is
rejected. -
A Loop In whose initiation fails now cancels its probe invoice. A probe
payment that reached the node after the failure was previously held for
hours, until shortly before its expiry. The probe watcher and failure
cleanup share successful cancellation results to avoid duplicate requests.
Cancellation failures are logged, and a failed attempt does not prevent
the other caller from trying.
Maintenance
-
Update
github.com/moby/sys/userto v0.4.1 inlooprpcand synchronize
the root module with its required version.
PR #1250 -
Align the standalone
looprpcmodule's OpenTelemetry SDK and OTLP trace
exporters at v1.45.0, matching the versions used by the root module.
Refresh the generated REST bindings and OpenAPI specification for the
required grpc-gateway upgrade.
PR #1235 -
Update the
looprpcgRPC dependency to v1.83.2 and synchronize the
root module with its required dependencies.
PR #1227 -
Update the
swapserverrpcgRPC dependency to v1.83.2 and synchronize
the root module with its required dependencies.
PR #1226 -
Update the OpenTelemetry OTLP gRPC trace exporter from v1.20.0 to
v1.45.0 and refresh its required dependencies.
PR #1230 -
Update the OpenTelemetry OTLP trace exporter from v1.29.0 to v1.45.0
and refresh its required dependencies.
PR #1231 -
Update the OpenTelemetry SDK and its related API modules to v1.45.0.
PR #1232 -
The Docker image build now verifies that every platform of the image index
holds binaries for the architecture it advertises, and gives a release its
tag only once that check has passed.
Issue #1211 -
The regtest environment now runs LND v0.21.0-beta, the version Loop is built
against, instead of v0.18.5-beta.
Contributors (Alphabetical Order)
- Alex Bosworth
- Boris Nagaev
- claravanstaden
- dependabot[bot]
- saubyk
- Slyghtning
- Suheb