!!! THIS IS A PRE RELEASE DO NOT RUN IN PRODUCTION !!!
⚠️ Breaking changes
- Note the breaking changes from v4.0.0-rc.1, most importantly PostgreSQL 18 and TimescaleDB 2.x
being required. See the rc.1 release notes before upgrading. - gRPC API: the TagPeer method is renamed to TagNode, and its peer_public_key field is renamed to
public_key (same field number, so the wire format is unchanged). Clients must update the
method and field name when regenerating code.
New
- Tagging: TagNode can tag any node Torq knows, not only peers.
Fixes
- Payments list: failed route attempts are counted when the payment is stored
(route_attempt_failure_count, backfilled from payment_route_attempt). Loading the list for
about 60k payments went from 7.5s to 0.13s. - Splicing: CLN splices of channels opened before cln_channel_id existed are detected by
matching the peer. Previously such a channel stayed Open with no balance, which made
ListChannels fail with UNAVAILABLE. - Routing policies:
- A new LND channel takes its policy from routing_policy. Before, it cached the pending amount
and CSV delay as max HTLC and time lock delta, which could send wrong values to LND. - Policies that arrive before the channel state is cached are kept and applied later.
- A CLN channel direction missing from gossip is filled from listpeerchannels.
- Fixed a nil dereference on a nil LND channel edge update.
- A new LND channel takes its policy from routing_policy. Before, it cached the pending amount
- Peers and nodes:
- LND channel updates no longer mark a node as connected.
- Peers are marked connected only after their node row exists.
- A disconnected peer is removed from the cache on disconnect, for CLN and LND.
- Disconnecting a CLN peer that isn't connected reports it as already disconnected, like LND.
- The gRPC DisconnectPeer skips a node without a public key.
- Torq connects to an LSP channel requester unless it is already a connected peer.
- Channel peers are derived from the channel cache, so a peer with an open channel stays when
another channel closes. Only opening and open channels count. - Deleting a Torq Node no longer removes it from the generic node caches.
- Registering nodes in parallel at startup no longer causes a unique-violation error per node.
- Forwards table: channels without forwards in the range show the correct Torq Node, alias,
public key and color. Before, they showed the first node of the channel and logged "No empty
nodeId (0)". - Websocket:
- Progress reports no longer block payments after a disconnect.
- The /ws endpoint skips gzip.
- A read error now ends the read loop. Before, it could loop on a dead connection and start a
goroutine per iteration. - Malformed JSON gets an error reply without also processing an empty request.
- Writes time out after 10s.
- Kraken websocket:
- Close no longer hangs after a reconnect.
- Fixed a data race on connections and subscriptions.
- The old connection is closed on reconnect.
- All subscriptions are resubscribed, not just the first private one.
- Excessive system status messages are no longer logged.
Internal
- Toolchain: Go 1.27.4, which fixes GO-2026-6859 (net/http MaxBytesReader header race).
- Dependencies:
- Replaced gorilla/websocket with coder/websocket. The indirect gorilla dependency is pinned to
the commit that fixes GO-2026-6278.
- Replaced gorilla/websocket with coder/websocket. The indirect gorilla dependency is pinned to