mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Introduce Credentials support (XLS-70d): (#5103)
Amendment:
- Credentials
New Transactions:
- CredentialCreate
- CredentialAccept
- CredentialDelete
Modified Transactions:
- DepositPreauth
- Payment
- EscrowFinish
- PaymentChannelClaim
- AccountDelete
New Object:
- Credential
Modified Object:
- DepositPreauth
API updates:
- ledger_entry
- account_objects
- ledger_data
- deposit_authorized
Read full spec: https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0070d-credentials
This commit is contained in:
@@ -50,6 +50,15 @@ checkArraySize(Json::Value const& val, unsigned int size)
|
||||
return val.isArray() && val.size() == size;
|
||||
}
|
||||
|
||||
std::uint32_t
|
||||
ownerCount(Env const& env, Account const& account)
|
||||
{
|
||||
std::uint32_t ret{0};
|
||||
if (auto const sleAccount = env.le(account))
|
||||
ret = sleAccount->getFieldU32(sfOwnerCount);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Path finding */
|
||||
/******************************************************************************/
|
||||
void
|
||||
@@ -385,4 +394,4 @@ allpe(AccountID const& a, Issue const& iss)
|
||||
|
||||
} // namespace jtx
|
||||
} // namespace test
|
||||
} // namespace ripple
|
||||
} // namespace ripple
|
||||
|
||||
Reference in New Issue
Block a user