mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
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. |
||
|---|---|---|
| .. | ||
| images | ||
| release-notes | ||
| accounts.md | ||
| benchmark_db_backends.md | ||
| compatibility.md | ||
| compile.md | ||
| config-lnd-integrated.md | ||
| config-lnd-remote.md | ||
| custom-path.md | ||
| example-nginx.conf | ||
| letsencrypt.md | ||
| remote.md | ||
| testing.md | ||
| troubleshooting.md | ||
| WALKTHROUGH.md | ||