lightning-terminal/docs
Viktor Torstensson ae74392433
accounts: add a configurable maximum account payment size
Add an opt-in cap on the total amount a single account payment may
debit, including routing fees, enforced at the account interceptor for
both SendPaymentV2 and SendToRouteV2. When the new
accounts.max-payment-size-msat config option is set to a non-zero
value, payments whose amount plus fees exceeds it are rejected with
ErrPaymentExceedsMaxSize before the balance check and before any funds
are reserved.

For SendPaymentV2, the configured fee limit is included in the capped
amount. For SendToRouteV2, the route's stated fee is included.

This gives operators a guard rail against a compromised or misbehaving
account macaroon draining its balance in a single large payment. The
cap defaults to 0 (disabled), preserving existing behaviour, and is a
first step towards the finer-grained per-account spending controls
requested in the issue.
2026-08-07 00:04:20 +02:00
..
images doc: rename doc directory to docs 2024-06-11 11:25:00 -04:00
release-notes accounts: add a configurable maximum account payment size 2026-08-07 00:04:20 +02:00
accounts.md docs fix spelling issues (#862) 2024-12-26 10:20:13 +01:00
benchmark_db_backends.md docs: update benchmarking docs with firewalldb pkg 2026-05-14 11:39:04 +02:00
compatibility.md docs: update compatibility notes 2026-06-26 22:45:21 +02:00
compile.md docs: note that FreeBSD users need gmake to build 2026-05-01 19:11:05 +05:30
config-lnd-integrated.md docs fix spelling issues (#862) 2024-12-26 10:20:13 +01:00
config-lnd-remote.md doc: rename doc directory to docs 2024-06-11 11:25:00 -04:00
custom-path.md doc: rename doc directory to docs 2024-06-11 11:25:00 -04:00
example-nginx.conf doc: rename doc directory to docs 2024-06-11 11:25:00 -04:00
letsencrypt.md doc: rename doc directory to docs 2024-06-11 11:25:00 -04:00
remote.md doc: rename doc directory to docs 2024-06-11 11:25:00 -04:00
testing.md doc: rename doc directory to docs 2024-06-11 11:25:00 -04:00
troubleshooting.md doc: rename doc directory to docs 2024-06-11 11:25:00 -04:00
WALKTHROUGH.md docs fix spelling issues (#862) 2024-12-26 10:20:13 +01:00