add nft_history and mark certain APIs as clio-only to improve error (#255)

This commit is contained in:
ledhed2222
2022-09-15 21:11:29 -04:00
committed by GitHub
parent 777ae24f62
commit 1764f3524e
12 changed files with 346 additions and 240 deletions

View File

@@ -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;
}