mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
chore: Set ColumnLimit to 120 in clang-format (#6288)
This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
This commit is contained in:
@@ -7,23 +7,15 @@ namespace xrpl {
|
||||
namespace test {
|
||||
namespace jtx {
|
||||
|
||||
std::unordered_map<std::pair<std::string, KeyType>, Account, beast::uhash<>>
|
||||
Account::cache_;
|
||||
std::unordered_map<std::pair<std::string, KeyType>, Account, beast::uhash<>> Account::cache_;
|
||||
|
||||
Account const Account::master(
|
||||
"master",
|
||||
generateKeyPair(KeyType::secp256k1, generateSeed("masterpassphrase")),
|
||||
Account::privateCtorTag{});
|
||||
|
||||
Account::Account(
|
||||
std::string name,
|
||||
std::pair<PublicKey, SecretKey> const& keys,
|
||||
Account::privateCtorTag)
|
||||
: name_(std::move(name))
|
||||
, pk_(keys.first)
|
||||
, sk_(keys.second)
|
||||
, id_(calcAccountID(pk_))
|
||||
, human_(toBase58(id_))
|
||||
Account::Account(std::string name, std::pair<PublicKey, SecretKey> const& keys, Account::privateCtorTag)
|
||||
: name_(std::move(name)), pk_(keys.first), sk_(keys.second), id_(calcAccountID(pk_)), human_(toBase58(id_))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -54,16 +46,12 @@ Account::fromCache(AcctStringType stringType, std::string name, KeyType type)
|
||||
return r.first->second;
|
||||
}
|
||||
|
||||
Account::Account(std::string name, KeyType type)
|
||||
: Account(fromCache(Account::other, std::move(name), type))
|
||||
Account::Account(std::string name, KeyType type) : Account(fromCache(Account::other, std::move(name), type))
|
||||
{
|
||||
}
|
||||
|
||||
Account::Account(AcctStringType stringType, std::string base58SeedStr)
|
||||
: Account(fromCache(
|
||||
Account::base58Seed,
|
||||
std::move(base58SeedStr),
|
||||
KeyType::secp256k1))
|
||||
: Account(fromCache(Account::base58Seed, std::move(base58SeedStr), KeyType::secp256k1))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user