Files
rippled/src
Vito 6e26766681 refactor: Avoid repeated sfPaymentRemaining lookups in makeRegularPayment
Cache the sfPaymentRemaining proxy once instead of re-fetching it at
each of the three places it's read in the loop condition, the final-
payment assert, and the overpayment guard. It's a write-through proxy,
so it still reflects doPayment's mutations each iteration.

Also explicitly zero-initialize totalPaid so the starting baseline
isn't left implicit.
2026-07-16 12:53:07 +02:00
..