Commit Graph

31 Commits

Author SHA1 Message Date
undertome
c03b72ad51 Advance DOSGuard (#96)
* Add C++20 features
* Make whitelist const
2022-02-18 17:43:02 -05: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
undertome
954adb0e7d Build fix: specify template parameters (#89)
* Build fix: specify template parameters
2022-02-01 14:12:07 -05:00
CJ Cobb
bc131f666a General purpose function to retry on database timeout 2022-01-25 20:10:28 +00:00
CJ Cobb
d6e8e0bcde Bug fixes
* Handle empty ranges in initial download
* Don't skip records in last marker
* Add identifier for timed out Cassandra writes
2022-01-13 18:38:23 +00: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
Nathan Nichols
9c93e948f5 refactor account_tx (#70)
Revert compound partition key to avoid large rows.
2022-01-03 15:47:56 -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
2cb74ae706 fix recursion issue with fetchLedgerPage 2021-10-05 18:30:11 -04:00
CJ Cobb
cc76ece6f2 add date to transaction tables 2021-09-07 10:46:10 -04:00
CJ Cobb
79ac95ae8e fix transaction on db restart bug 2021-08-19 10:28:14 -04:00
CJ Cobb
ea5f9162b7 remove unused offers code 2021-08-06 12:32:06 -04:00
CJ Cobb
56e81eb1d8 reorg 2021-08-02 15:54:37 -04:00
CJ Cobb
97f6081390 delivered amount 2021-07-22 20:30:44 +00:00
CJ Cobb
63a66b00a6 support forward flag for cassandra 2021-07-16 18:37:17 +00: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
CJ Cobb
649ecf4eda avoid wide rows with account_tx 2021-07-14 20:29:55 +00:00
CJ Cobb
cb2975dd41 smaller partitions on keys table 2021-07-13 20:27:26 +00:00
CJ Cobb
1cdd238ad3 bug fix 2021-07-13 18:27:00 +00:00
CJ Cobb
599bd1b655 refactor of cassandra backend, needs testing 2021-07-12 23:12:57 +00:00
CJ Cobb
607ea0a76e refactor 2021-07-09 23:45:01 +00:00
CJ Cobb
8684dba694 checkpoint 2021-07-09 19:54:04 +00:00
Nathan Nichols
37abec1401 Achieve parity with rippled API 2021-07-06 14:00:20 +00:00
CJ Cobb
2eec383b35 cleanup 2021-07-02 15:05:46 +00:00
CJ Cobb
9f8724b7ab write transaction hashes to separate table 2021-06-29 17:33:42 +00:00
CJ Cobb
83b50bc261 simplify fetch ledger range query in Cassandra 2021-06-25 17:51:07 +00:00
CJ Cobb
415b9ccc28 Publish in strand. Catch ReadTimeout in publishLedger 2021-06-25 17:51:07 +00:00
CJ Cobb
416a3cc523 various fixes 2021-06-25 17:36:20 +00:00
CJ Cobb
43374e55bd simulate x ledgers at once 2021-06-24 18:29:19 +00:00
CJ Cobb
056e170a56 Cleanup, documentation, rename some things, cmake changes 2021-06-23 15:04:06 +00:00