mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add units to all fee calculations:
* Uses existing XRPAmount with units for drops, and a new TaggedFee for fee units (LoadFeeTrack), and fee levels (TxQ). * Resolves #2451
This commit is contained in:
@@ -69,7 +69,8 @@ class CashDiff_test : public beast::unit_test::suite
|
||||
oldProbe = newProbe;
|
||||
newProbe = oldProbe * 10;
|
||||
e10 += 1;
|
||||
} while (newProbe > oldProbe);
|
||||
} while (newProbe > oldProbe &&
|
||||
newProbe < std::numeric_limits<std::int64_t>::max());
|
||||
}
|
||||
{
|
||||
// Test XRP.
|
||||
@@ -92,7 +93,8 @@ class CashDiff_test : public beast::unit_test::suite
|
||||
oldProbe = newProbe;
|
||||
newProbe = oldProbe * 10;
|
||||
e10 += 1;
|
||||
} while (newProbe > oldProbe);
|
||||
} while (newProbe > oldProbe &&
|
||||
newProbe < std::numeric_limits<std::int64_t>::max());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user