Commit Graph

12 Commits

Author SHA1 Message Date
CJ Cobb
eb1ea28e27 Database read throttle (#242)
Track current outstanding read requests to the database. When the configured limit is exceeded, reject new RPCs and return rpcTOO_BUSY
2022-09-23 15:43:03 -05:00
ledhed2222
6bf8c5bc4e Add NFT-specific data stores and add nft_info API (#98) 2022-07-26 15:01:14 -04:00
CJ Cobb
f84733cb20 refactor publish sequence logic for read only 2022-03-03 08:24:01 -08:00
natenichols
d016253264 Make database reads async
* yield on db read using asio
* PostgresBackend fetches multiple transactions or objects in parallel
2022-02-16 09:36:51 -05:00
CJ Cobb
6e6f47421d Postgres fixes (#84)
* Postgres fixes

* Create partial index for ledger_diffs, to avoid indexing the first
  ledger's objects

* Don't write duplicate keys to successor table

* default to 4 markers when syncing cache

* remove isFirst from writeLedger interface
2022-01-07 14:48:48 -05:00
CJ Cobb
c7e31aff56 Add state data cache and successor table. Remove keys table
* Adds a cache for the most recently validated ledger state
* Replaces the keys table with successor table
* Adds support for ledger diffs in the database
* Removes BackendIndexer
2021-12-20 14:40:23 -05:00
CJ Cobb
cc76ece6f2 add date to transaction tables 2021-09-07 10:46:10 -04:00
CJ Cobb
ea5f9162b7 remove unused offers code 2021-08-06 12:32:06 -04:00
CJ Cobb
7040860d8d add forward flag. not handled yet 2021-07-16 02:12:13 +00:00
CJ Cobb
68c96fdc60 fix account_tx iteration 2021-07-15 20:12:20 +00:00
Nathan Nichols
37abec1401 Achieve parity with rippled API 2021-07-06 14:00:20 +00:00
CJ Cobb
056e170a56 Cleanup, documentation, rename some things, cmake changes 2021-06-23 15:04:06 +00:00