mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
return no offers when an owner directory is not found (#176)
This commit is contained in:
@@ -58,6 +58,12 @@ doAccountChannels(Context const& context)
|
||||
if (auto const status = getAccount(request, accountID); status)
|
||||
return status;
|
||||
|
||||
auto rawAcct = context.backend->fetchLedgerObject(
|
||||
ripple::keylet::account(accountID).key, lgrInfo.seq, context.yield);
|
||||
|
||||
if (!rawAcct)
|
||||
return Status{Error::rpcACT_NOT_FOUND, "accountNotFound"};
|
||||
|
||||
ripple::AccountID destAccount;
|
||||
if (auto const status =
|
||||
getAccount(request, destAccount, JS(destination_account));
|
||||
|
||||
Reference in New Issue
Block a user