Commit Graph

12612 Commits

Author SHA1 Message Date
Richard Holland
9325e11b14 examples and tests WIP 2022-02-18 12:43:56 +00:00
Richard Holland
e0fa4b4f1f fix emission insertion 2022-02-18 10:30:45 +00:00
Richard Holland
34957bb7ec change sfcodes in etxn_details to match https://github.com/ripple/rippled/pull/4089 2022-02-18 10:07:22 +00:00
Richard Holland
de58b028d9 fix hook and cbak definition detection bug 2022-02-18 09:36:32 +00:00
Richard Holland
059722f4fc relax some conditions for beta 2022-02-17 17:36:28 +00:00
Richard Holland
457fc23cfb add type checking to hook and cbak on sethook, untested, compiling 2022-02-17 15:23:41 +00:00
Richard Holland
3f4f4893f4 namespace destruction rewrite, bug fix 2022-02-16 16:50:52 +00:00
Richard Holland
deedf21202 fix a bug where hooks would be deleted unless a corresponding hooksetobj was present 2022-02-16 10:57:54 +00:00
Richard Holland
4ea9187352 bugs in state update 2022-02-11 12:54:57 +00:00
Richard Holland
f185f6418e state change update to persist changes between hook executions in the same otxn, not compiling 2022-02-08 14:00:39 +00:00
Richard Holland
7596d8bbd0 fix and simplify hook-state 2022-02-08 10:00:04 +00:00
Richard Holland
249c127890 fix create->install fallthrough bug 2022-02-07 12:52:13 +00:00
Richard Holland
7928363c24 empty hook bug fixes 2022-02-07 12:14:13 +00:00
Richard Holland
f331e7ab62 rewrite sethook cleanly 2022-02-07 11:06:33 +00:00
Richard Holland
6adb9ae6f7 cleanup sethook, begin adding hooks logcodes 2022-02-03 15:20:21 +00:00
Richard Holland
664c77489d sfcodes for xls20 and hooks 2022-01-31 11:36:55 +00:00
Richard Holland
d4ad147bf3 relocate hook api whitelist to applyhook 2022-01-25 12:38:34 +00:00
Nik Bougalis
000e0b093e Set version to 1.8.4 2022-01-25 12:38:34 +00:00
Nik Bougalis
a394641037 Adjust pathfinding configuration defaults:
The pathfinding engine built into the code has several configurable
parameters to adjust the depth of the paths indexed and explored.

These parameters can dramatically impact the performance and memory
consumption of a server; higher values can result in resource usage
increasing exponentially.

These default values were decided early and somewhat arbitrarily at
a time when the network and the size of the network state were much
smaller.

This commit adjusts the default values to reduce the depth of paths
to more reasonable levels; unless explicitly overriden, the changes
mean that pathfinding operations will return fewer, shallower paths
than previous versions of the software.
2022-01-25 12:38:34 +00:00
seelabs
1e414ca96e Adjust mutex scope in walkMapParallel:
This commit corrects a technical flaw that was introduced with commit
7c12f01358: as written, a mutex that is
intended to help provide synchronization for multiple threads as they
are each walking the map, is declared so that each thread is passed a
dangling reference to a unique mutex.

This commit hoists the mutex outside the thread creation loop, so all
threads use a single mutex and eliminating the dangling reference.
2022-01-25 12:38:34 +00:00
Nik Bougalis
39f6792106 Set version to 1.8.3 2022-01-25 12:38:34 +00:00
Nik Bougalis
7a124727dd Provide sensible default values for nodestore cache:
The nodestore includes a built-in cache to reduce the disk I/O
load but, by default, this cache was not initialized unless it
was explicitly configured by the server operator.

This commit introduces sensible defaults based on the server's
configured node size.

It remains possible to completely disable the cache if desired
by explicitly configuring it the cache size and age parameters
to 0:

    [node_db]
    ...
    cache_size = 0
    cache_age = 0
2022-01-25 12:38:34 +00:00
Nik Bougalis
763b482bee Adjust number of concurrent ledger data jobs 2022-01-25 12:38:34 +00:00
Nik Bougalis
3ee8a9c683 Detect CVE-2021-3520 when decompressing using LZ4 2022-01-25 12:38:34 +00:00
Mark Travis
bc96da7c53 Parallel ledger loader & I/O performance improvements:
- Only duplicate records from archive to writable during online_delete.
- Log duration of nodestore reads.
- Include nodestore counters in perf_log output.
- Remove gratuitous nodestore activity counting.
- Report initial sync duration in server_info and perfLog.
- Report state_accounting in perfLog.
- Make state_accounting durations more accurate.
- Parallel ledger loader.
- Config parameter to load ledgers on start.
2022-01-25 12:38:34 +00:00
JoelKatz
399c209384 Two small SHAMapSync improvements:
1) Don't acquire so many nodes per pass. It's likely
far more than we need.

2) Right-size the finishedReads_ vector on passes other
than just the first.
2022-01-25 12:38:34 +00:00
Richard Holland
7ef0af3474 remove debug printfs 2022-01-20 10:47:12 +00:00
Richard Holland
e14373756f working! 2022-01-18 10:33:00 +00:00
Richard Holland
3b5a335599 bugfix 2022-01-17 15:27:50 +00:00
Richard Holland
943b4acfee compiling, untested 2022-01-17 12:45:26 +00:00
Richard Holland
6a3a6e68bf further conversion to wasmedge, still not compiling 2022-01-14 12:58:59 +00:00
Richard Holland
7cefb339e7 started conversion to wasmedge, not finished, not compiling 2022-01-13 15:40:15 +00:00
Richard Holland
912b60bfce compiling 2022-01-13 08:56:19 +00:00
Richard Holland
ec22906e78 forward porting part 1 2022-01-11 13:33:23 +00:00
Richard Holland
3697f7b69c Merge remote-tracking branch 'ripple/develop' into develop 2022-01-11 10:12:22 +00:00
Richard Holland
b33c91f761 Hooks-chaining alpha
This is a squash of 241 commits from https://github.com/XRPL-Labs/xrpld-hooks/tree/hooks-chaining
Ready for forward porting to rippled 1.8.3
2022-01-11 10:06:38 +00:00
manojsdoshi
89766c5f21 Set version to 1.8.2 2021-12-20 14:50:58 -08:00
manojsdoshi
4ec11e692b Set version to 1.8.2-rc1 2021-12-16 23:23:25 -08:00
Michael Legleux
d02f0e11c5 Quiet builds and disable unity build 2021-12-16 22:45:38 -08:00
natenichols
e28989638d Enforce account RPC limits by account objects traversed 2021-12-16 11:57:08 -08:00
CJ Cobb
915fe31274 log request and duration for every RPC call 2021-12-15 12:12:28 -08:00
Mark Travis
db720a59e4 Log resource limit disconnections. 2021-12-15 11:26:13 -08:00
CJ Cobb
72752b1ee0 make cassandra io threads configurable 2021-12-15 11:25:32 -08:00
Mark Travis
c663f1f62b Make tx() function against a read-only postgres instance. 2021-12-15 11:25:10 -08:00
Scott Schurr
d54f6278bb Improve names returned by server_info counters 2021-12-15 11:21:51 -08:00
Mark Travis
fc04336caa Reporting mode always returns age in server_info. 2021-12-15 11:18:58 -08:00
CJ Cobb
47376a0cc3 Only forward to p2p nodes that are in sync 2021-12-15 11:18:07 -08:00
Nik Bougalis
45aa0142a6 Improve full & compressed inner node deserialization 2021-12-14 17:49:20 -08:00
Edward Hennis
e3acb61d57 Increase TxQ default minimum and target sizes 2021-12-14 17:47:48 -08:00
Edward Hennis
8fa33795a3 Reduce TxQ logging severity in several places 2021-12-14 17:47:48 -08:00