Commit Graph

34 Commits

Author SHA1 Message Date
undertome
115b93298d Make DOSGuard config loading more resilient (#103) 2022-02-24 15:58:46 -08:00
undertome
c03b72ad51 Advance DOSGuard (#96)
* Add C++20 features
* Make whitelist const
2022-02-18 17:43:02 -05:00
Nathan Nichols
6567a5cc7d capture websocket session as shared_ptr (#99)
* capture websocket session as shared_ptr
2022-02-18 17:40:13 -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
CJ Cobb
bc131f666a General purpose function to retry on database timeout 2022-01-25 20:10:28 +00:00
Michael Legleux
bdfd07f154 clang-format (#86)
* clang-format

* ignore clang-format commit; run clang-format in github actions
2022-01-24 15:26:53 -05:00
Nathan Nichols
c3c248734f Unwrap result when forwarding (#78)
* fix error formatting for forwarded responses

* unwrap result when forwarding successful responses
2022-01-05 15:06:47 -05:00
CJ Cobb
49c7c9989f Forward client IP to rippled when proxying (#77) 2022-01-05 14:51:00 -05:00
Nathan Nichols
41e412302b Report RPC counts in server_info (#72) 2022-01-05 12:58:17 -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
Nathan Nichols
e930ff04df Refactors subscription manager (#52)
* Replaces mutexes with asio strands
2021-12-14 11:24:10 -05:00
Nathan Nichols
a449b7de54 Handle case where params is null (#65)
* if request does not have parameters, set params to empty [{}]
2021-12-08 15:51:00 -08:00
Nathan Nichols
1059f99823 rebases ssl source 2021-10-06 16:29:03 -04:00
Nathan Nichols
0795ff1d6a rebases ETLSource 2021-10-06 16:29:03 -04:00
Nathan Nichols
7bd4e5e3ce rebases Listener 2021-10-06 16:29:03 -04:00
Edward Hennis
e67ea1afb6 Fix missing override 2021-10-04 18:38:43 -04:00
CJ Cobb
5121efe1d6 change peekNodes() to getNodes() 2021-10-02 08:47:36 -04:00
CJ Cobb
c47fd1449d remove usused file 2021-09-24 12:14:21 -04:00
CJ Cobb
96c72eec49 remove rippled license 2021-09-24 12:13:11 -04:00
CJ Cobb
6b3091a456 Add server_info. Make forwardToRippled return optional 2021-09-21 12:15:10 -04:00
CJ Cobb
5f23a5803b Add missing call to dosGuard_.add 2021-09-14 14:26:54 -04:00
CJ Cobb
9ef54da0ef Implement transaction_entry 2021-09-14 12:10:36 -04:00
CJ Cobb
01aed9f6e8 Add date to transactions table.
* Add date to account_tx response
* Add support for signer_lists to account_info
* Add support for converting seeds to accounts
* Add urlgravatar to account_info
2021-09-09 15:25:54 -04:00
CJ Cobb
553be19882 add date field to tx response 2021-09-07 10:25:11 -04:00
CJ Cobb
f625385f38 don't send transaction more than once on books stream 2021-08-31 16:00:15 -04:00
CJ Cobb
b591c71053 add delivered_amount and owner_funds to streams 2021-08-30 17:10:58 -04:00
CJ Cobb
ce9a2af33c refactor to make WsSession thread safe 2021-08-30 14:21:16 -04:00
CJ Cobb
f4b7a88d95 clean up subscriptions code
* change the way sessions are removed from SubscriptionManager
* make the locking more fine grained
* add a mutex to WsSession to protect concurrent access to the websocket
2021-08-24 17:48:04 -04:00
CJ Cobb
a268b4d0c9 publish modified books. Fix move nullptr from move bug 2021-08-23 17:29:49 -04:00
CJ Cobb
d65bbfc841 first half of support for books stream 2021-08-23 14:44:46 -04:00
CJ Cobb
56e81eb1d8 reorg 2021-08-02 15:54:37 -04:00
CJ Cobb
63a66b00a6 support forward flag for cassandra 2021-07-16 18:37:17 +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