mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Permissioned Domains (XLS-80d) (#5161)
This commit is contained in:
@@ -203,6 +203,15 @@ Env::balance(Account const& account, Issue const& issue) const
|
||||
return {amount, lookup(issue.account).name()};
|
||||
}
|
||||
|
||||
std::uint32_t
|
||||
Env::ownerCount(Account const& account) const
|
||||
{
|
||||
auto const sle = le(account);
|
||||
if (!sle)
|
||||
Throw<std::runtime_error>("missing account root");
|
||||
return sle->getFieldU32(sfOwnerCount);
|
||||
}
|
||||
|
||||
std::uint32_t
|
||||
Env::seq(Account const& account) const
|
||||
{
|
||||
@@ -503,7 +512,8 @@ Env::autofill(JTx& jt)
|
||||
}
|
||||
catch (parse_error const&)
|
||||
{
|
||||
test.log << "parse failed:\n" << pretty(jv) << std::endl;
|
||||
if (!parseFailureExpected_)
|
||||
test.log << "parse failed:\n" << pretty(jv) << std::endl;
|
||||
Rethrow();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user