|
rippled
|

Public Member Functions | |
| RandomAccountParams (std::uint32_t trustAmount=100, std::uint32_t initialBalance=50) | |
| void | maybeSetTransferRate (jtx::Env &env, jtx::Account const &acc) |
| void | setInitialBalance (jtx::Env &env, jtx::Account const &acc, jtx::Account const &peer, Currency const ¤cy) const |
| void | maybeSetInitialBalance (jtx::Env &env, jtx::Account const &acc, jtx::Account const &peer, Currency const ¤cy) |
| void | setupTrustLines (jtx::Env &env, jtx::Account const &acc1, jtx::Account const &acc2, Currency const ¤cy) |
Private Member Functions | |
| bool | shouldSet () |
| void | maybeInsertQuality (Json::Value &jv, QualityDirection qDir) |
| void | setupTrustLine (jtx::Env &env, jtx::Account const &acc, jtx::Account const &peer, Currency const ¤cy) |
Private Attributes | |
| beast::xor_shift_engine | engine_ |
| std::uint32_t const | trustAmount_ |
| std::uint32_t const | initialBalance_ |
| std::uniform_real_distribution | zeroOneDist_ {0.0, 1.0} |
| std::uniform_real_distribution | transferRateDist_ {1.0, 2.0} |
| std::uniform_real_distribution | qualityPercentDist_ {80, 120} |
Static Private Attributes | |
| static constexpr double | probChangeDefault_ = 0.75 |
| static constexpr double | probRedeem_ = 0.5 |
Definition at line 84 of file TheoreticalQuality_test.cpp.
|
explicit |
Definition at line 139 of file TheoreticalQuality_test.cpp.
|
private |
Definition at line 104 of file TheoreticalQuality_test.cpp.
|
private |
Definition at line 110 of file TheoreticalQuality_test.cpp.
|
private |
Definition at line 123 of file TheoreticalQuality_test.cpp.
| void xrpl::test::RandomAccountParams::maybeSetTransferRate | ( | jtx::Env & | env, |
| jtx::Account const & | acc | ||
| ) |
Definition at line 144 of file TheoreticalQuality_test.cpp.
| void xrpl::test::RandomAccountParams::setInitialBalance | ( | jtx::Env & | env, |
| jtx::Account const & | acc, | ||
| jtx::Account const & | peer, | ||
| Currency const & | currency | ||
| ) | const |
Definition at line 152 of file TheoreticalQuality_test.cpp.
| void xrpl::test::RandomAccountParams::maybeSetInitialBalance | ( | jtx::Env & | env, |
| jtx::Account const & | acc, | ||
| jtx::Account const & | peer, | ||
| Currency const & | currency | ||
| ) |
Definition at line 170 of file TheoreticalQuality_test.cpp.
| void xrpl::test::RandomAccountParams::setupTrustLines | ( | jtx::Env & | env, |
| jtx::Account const & | acc1, | ||
| jtx::Account const & | acc2, | ||
| Currency const & | currency | ||
| ) |
Definition at line 185 of file TheoreticalQuality_test.cpp.
|
private |
Definition at line 86 of file TheoreticalQuality_test.cpp.
|
private |
Definition at line 87 of file TheoreticalQuality_test.cpp.
|
private |
Definition at line 93 of file TheoreticalQuality_test.cpp.
|
staticconstexprprivate |
Definition at line 96 of file TheoreticalQuality_test.cpp.
|
staticconstexprprivate |
Definition at line 98 of file TheoreticalQuality_test.cpp.
|
private |
Definition at line 99 of file TheoreticalQuality_test.cpp.
|
private |
Definition at line 100 of file TheoreticalQuality_test.cpp.
|
private |
Definition at line 101 of file TheoreticalQuality_test.cpp.