github lncapital/torq v4.0.0-rc.1
v4.0.0-rc.1 pg18

pre-releaseone hour ago

!!! THIS IS A PRE RELEASE DO NOT RUN IN PRODUCTION !!!

⚠️ Breaking changes

  • PostgreSQL 18 and TimescaleDB 2.x are required. Migration 190 refuses to run on older versions.
    Follow docs/migration-pg14-to-pg18.md before upgrading.
  • Fedi gateway support is removed, along with its settings, columns and the settled_htlc table.
  • CLN payment history is re-fetched. The upgrade deletes the existing CLN payment rows and the poller
    reloads them in the new format.
  • Invoice column renamed. In the invoices table, amtPaid is now amountPaid. Saved views are migrated
    automatically.

New

  • Splicing: splices are supported, with a direction selector.
  • Payment attempts: every payment, rebalance and move-funds attempt is recorded, so retries are
    visible. This uses the new payment_route_attempt table.
  • Import/export: new torq export and torq import CLI commands. An import is rejected if the export
    was taken on a newer version.
  • gRPC API: adds ListChannels and GetWalletBalance, and returns separate status codes for the
    different kinds of "unavailable".
  • CLI: adds --version.
  • Metrics: additional Prometheus metrics.

Fixes

  • Channel balances:
    • Paid multipart invoices are split across the correct channels.
    • Only settled invoice HTLCs count.
    • The latest balance change times are fixed, and now work for CLN too.
  • HTLCs:
    • CLN HTLCs are linked to their invoices and payments, and their outcomes are stored.
    • HTLC id 0 is treated as a valid id.
    • Several HTLC cache fixes: the window, keys, pending HTLCs, resolved and closed channels, and a
      nil-timestamp panic.
  • Rebalancer:
    • Safe with several runners at once.
    • Fixes runners that got stranded, never cancelled or kept running.
    • Manual rebalances are fixed.
    • Concurrency is validated.
  • Payments:
    • Writes are atomic.
    • Fixes negative on-chain fees and wrong MPP attribution.
    • Invoices are decoded locally, and an invoice for the wrong network is rejected.
  • Database: retries the TimescaleDB chunk-creation deadlock.
  • Kraken websocket: reconnects and resubscribes reliably, and shuts down cleanly.
  • Tags:
    • Kept per node when the cache is rebuilt.
    • Deleted tags are removed from the cache.
  • Startup:
    • Torq no longer starts if the cache fails to initialise.
    • Channel peers stay active at startup.
  • Other: fixed mempool fee timeouts, event-trigger eviction, and SetTorqGrpcApi wiping settings.

Internal

  • Toolchain: Go 1.27.4 and nixpkgs 26.05.
  • Dependencies:
    • The LND Go module is dropped; zpay32 is now part of the codebase.
    • Moved to the btcd v0.27 modules.
    • Replaced gorilla/websocket with coder/websocket.
  • Database cleanup: removed unused columns, functions and indexes, and added better HTLC indexes.
  • Package updates.

Don't miss a new torq release

NewReleases is sending notifications on new releases.