mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-24 07:30:30 +00:00
Address a comment
This commit is contained in:
@@ -1133,7 +1133,7 @@ ValidVault::finalize(
|
||||
|
||||
// A loan set must create exactly one loan object; the interest
|
||||
// it books is the only permitted change to assets outstanding.
|
||||
if (beforeLoan_.empty() && afterLoan_.size() != 1)
|
||||
if (afterLoan_.size() != 1 || !beforeLoan_.empty())
|
||||
{
|
||||
JLOG(j.fatal()) << //
|
||||
"Invariant failed: loan set must create exactly one loan";
|
||||
|
||||
Reference in New Issue
Block a user