mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Format first-party source according to .clang-format
This commit is contained in:
committed by
manojsdoshi
parent
65dfc5d19e
commit
50760c6935
@@ -17,29 +17,27 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <test/jtx/rate.h>
|
||||
#include <ripple/protocol/jss.h>
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/protocol/jss.h>
|
||||
#include <stdexcept>
|
||||
#include <test/jtx/rate.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace test {
|
||||
namespace jtx {
|
||||
|
||||
Json::Value
|
||||
rate (Account const& account, double multiplier)
|
||||
rate(Account const& account, double multiplier)
|
||||
{
|
||||
if (multiplier > 4)
|
||||
Throw<std::runtime_error> (
|
||||
"rate multiplier out of range");
|
||||
Throw<std::runtime_error>("rate multiplier out of range");
|
||||
Json::Value jv;
|
||||
jv[jss::Account] = account.human();
|
||||
jv[jss::TransferRate] = std::uint32_t(
|
||||
1000000000 * multiplier);
|
||||
jv[jss::TransferRate] = std::uint32_t(1000000000 * multiplier);
|
||||
jv[jss::TransactionType] = jss::AccountSet;
|
||||
return jv;
|
||||
}
|
||||
|
||||
} // jtx
|
||||
} // test
|
||||
} // ripple
|
||||
} // namespace jtx
|
||||
} // namespace test
|
||||
} // namespace ripple
|
||||
|
||||
Reference in New Issue
Block a user