mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-27 07:05:54 +00:00
fix cursor issue with account_tx stored procedure
This commit is contained in:
@@ -572,10 +572,19 @@ PostgresBackend::fetchAccountTransactions(
|
||||
if (hash.parseHex(hashHex.at("hash").as_string().c_str() + 2))
|
||||
hashes.push_back(hash);
|
||||
}
|
||||
if (responseObj.contains("cursor"))
|
||||
{
|
||||
return {
|
||||
fetchTransactions(hashes),
|
||||
{{responseObj.at("cursor").at("ledger_sequence").as_int64(),
|
||||
responseObj.at("cursor")
|
||||
.at("transaction_index")
|
||||
.as_int64()}}};
|
||||
}
|
||||
return {fetchTransactions(hashes), {}};
|
||||
}
|
||||
return {{}, {}};
|
||||
}
|
||||
} // namespace Backend
|
||||
|
||||
void
|
||||
PostgresBackend::open()
|
||||
|
||||
Reference in New Issue
Block a user