mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Don't use getAccountState as a quick way to check if an account
exists in a ledger. It's much heavier than needed.
This commit is contained in:
@@ -190,6 +190,11 @@ void Ledger::setAccepted()
|
||||
setImmutable();
|
||||
}
|
||||
|
||||
bool Ledger::hasAccount(const RippleAddress& accountID)
|
||||
{
|
||||
return mAccountStateMap->hasItem(Ledger::getAccountRootIndex(accountID));
|
||||
}
|
||||
|
||||
AccountState::pointer Ledger::getAccountState(const RippleAddress& accountID)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
|
||||
Reference in New Issue
Block a user