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:
Edward Hennis
2019-02-14 18:59:07 -05:00
parent 1901b981f3
commit e3b5b808c5
87 changed files with 2195 additions and 681 deletions

View File

@@ -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());
}
}