mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-08 19:26:45 +00:00
Merge branch 'ximinez/lending-XLS-66-2' into ximinez/lending-XLS-66-ongoing
This commit is contained in:
@@ -303,7 +303,7 @@ public:
|
||||
// offers unfunded.
|
||||
// b. Carol's remaining 800 offers are consumed as unfunded.
|
||||
// c. 199 of alice's XRP(1) to USD(3) offers are consumed.
|
||||
// A book step is allowed to consume a maxium of 1000 offers
|
||||
// A book step is allowed to consume a maximum of 1000 offers
|
||||
// at a given quality, and that limit is now reached.
|
||||
// d. Now the strand is dry, even though there are still funded
|
||||
// XRP(1) to USD(3) offers available.
|
||||
@@ -384,7 +384,7 @@ public:
|
||||
// offers unfunded.
|
||||
// b. Carol's remaining 800 offers are consumed as unfunded.
|
||||
// c. 199 of alice's XRP(1) to USD(3) offers are consumed.
|
||||
// A book step is allowed to consume a maxium of 1000 offers
|
||||
// A book step is allowed to consume a maximum of 1000 offers
|
||||
// at a given quality, and that limit is now reached.
|
||||
// d. Now the strand is dry, even though there are still funded
|
||||
// XRP(1) to USD(3) offers available. Bob has spent 400 EUR and
|
||||
|
||||
@@ -1298,7 +1298,7 @@ public:
|
||||
testNegativeBalance(FeatureBitset features)
|
||||
{
|
||||
// This test creates an offer test for negative balance
|
||||
// with transfer fees and miniscule funds.
|
||||
// with transfer fees and minuscule funds.
|
||||
testcase("Negative Balance");
|
||||
|
||||
using namespace jtx;
|
||||
|
||||
@@ -254,7 +254,7 @@ class RCLValidations_test : public beast::unit_test::suite
|
||||
BEAST_EXPECT(trie.branchSupport(ledg_258) == 4);
|
||||
|
||||
// Move three of the s258 ledgers to s259, which splits the trie
|
||||
// due to the 256 ancestory limit
|
||||
// due to the 256 ancestry limit
|
||||
BEAST_EXPECT(trie.remove(ledg_258, 3));
|
||||
trie.insert(ledg_259, 3);
|
||||
trie.getPreferred(1);
|
||||
@@ -275,7 +275,7 @@ class RCLValidations_test : public beast::unit_test::suite
|
||||
// then verify the remove call works
|
||||
// past bug: remove had assumed the first child of a node in the trie
|
||||
// which matches is the *only* child in the trie which matches.
|
||||
// This is **NOT** true with the limited 256 ledger ancestory
|
||||
// This is **NOT** true with the limited 256 ledger ancestry
|
||||
// quirk of RCLValidation and prevents deleting the old support
|
||||
// for ledger 257
|
||||
|
||||
|
||||
@@ -3821,7 +3821,7 @@ public:
|
||||
return result;
|
||||
};
|
||||
|
||||
testcase("straightfoward positive case");
|
||||
testcase("straightforward positive case");
|
||||
{
|
||||
// Queue up some transactions at a too-low fee.
|
||||
auto aliceSeq = env.seq(alice);
|
||||
|
||||
@@ -18,14 +18,14 @@ namespace csf {
|
||||
- Comparison : T a, b; bool res = a < b
|
||||
- Addition: T a, b; T c = a + b;
|
||||
- Multiplication : T a, std::size_t b; T c = a * b;
|
||||
- Divison: T a; std::size_t b; T c = a/b;
|
||||
- Division: T a; std::size_t b; T c = a/b;
|
||||
|
||||
|
||||
*/
|
||||
template <class T, class Compare = std::less<T>>
|
||||
class Histogram
|
||||
{
|
||||
// TODO: Consider logarithimic bins around expected median if this becomes
|
||||
// TODO: Consider logarithmic bins around expected median if this becomes
|
||||
// unscaleable
|
||||
std::map<T, std::size_t, Compare> counts_;
|
||||
std::size_t samples = 0;
|
||||
|
||||
@@ -31,7 +31,7 @@ struct Rate
|
||||
/** Submits transactions to a specified peer
|
||||
|
||||
Submits successive transactions beginning at start, then spaced according
|
||||
to succesive calls of distribution(), until stop.
|
||||
to successive calls of distribution(), until stop.
|
||||
|
||||
@tparam Distribution is a `UniformRandomBitGenerator` from the STL that
|
||||
is used by random distributions to generate random samples
|
||||
|
||||
Reference in New Issue
Block a user