mirror of
https://github.com/XRPLF/clio.git
synced 2026-07-27 09:00:27 +00:00
add nft_history and mark certain APIs as clio-only to improve error (#255)
This commit is contained in:
@@ -651,6 +651,9 @@ CassandraBackend::fetchNFTTransactions(
|
||||
static_cast<std::uint32_t>(lgrSeq),
|
||||
static_cast<std::uint32_t>(txnIdx)};
|
||||
|
||||
// Only modify if forward because forward query
|
||||
// (selectNFTTxForward_) orders by ledger/tx sequence >= whereas
|
||||
// reverse query (selectNFTTx_) orders by ledger/tx sequence <.
|
||||
if (forward)
|
||||
++cursor->transactionIndex;
|
||||
}
|
||||
@@ -732,6 +735,9 @@ CassandraBackend::fetchAccountTransactions(
|
||||
static_cast<std::uint32_t>(lgrSeq),
|
||||
static_cast<std::uint32_t>(txnIdx)};
|
||||
|
||||
// Only modify if forward because forward query
|
||||
// (selectAccountTxForward_) orders by ledger/tx sequence >= whereas
|
||||
// reverse query (selectAccountTx_) orders by ledger/tx sequence <.
|
||||
if (forward)
|
||||
++cursor->transactionIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user