Commit Graph

13695 Commits

Author SHA1 Message Date
Ed Hennis
e836375d99 Don't load trust lines that can't participate in path finding
* "A path is considered invalid if and only if it enters and exits an
  address node through trust lines where No Ripple has been enabled for
  that address." (https://xrpl.org/rippling.html#specifics)
* When loading trust lines for an account "Alice" which was reached
  via a trust line that has the No Ripple flag set on Alice's side, do
  not use or cache any of Alice's trust lines which have the No Ripple
  flag set on Alice's side. For typical "end-user" accounts, this will
  return no trust lines.
2022-05-10 13:34:12 -07:00
Scott Schurr
aa4a5b7fe9 Adjust log levels to reflect actual severity (fixes #3996) 2022-05-10 13:34:12 -07:00
Mark Travis
5aedb0e07a Allow server to stabilize after online delete health check failure 2022-05-10 13:34:12 -07:00
greg7mdp
dfe69f1b76 Fix strict aliasing test failures with newer MSVC compilers 2022-05-10 13:34:12 -07:00
greg7mdp
87d06a2571 Check triggers cmake error unnecessarily 2022-05-10 13:34:12 -07:00
Nik Bougalis
7ca1f78446 Ensure that rngfill returns the requested amount of randomness:
One of the two versions of the `rngfill` function accepts a pointer
to a buffer and a size (in bytes). The function aims to fill the
provided `buffer` with `size` random bytes. It does this in chunks
of 8 bytes, for long as possible, and then fills any left-over gap
one byte at a time.

To avoid an annoying and incorrect warning about a potential buffer
overflow in the "trailing write", commit 78bc2727f7
used a `#pragma` to instruct the compiler to not generate the incorrect
diagnostic. Unfortunately, this change _also_ eliminated the trailing
write code, which means that, under some cases, the `rngfill` function
would generate between 1 and 7 fewer random bytes than requested.

This problem would only manifest on builds that do not define `__GNUC__`
which, as of this writing, means MSVC.
2022-05-10 13:34:12 -07:00
Richard Holland
0bb38809be preliminary support for "second execution as weak" feature 2022-05-10 11:39:05 +00:00
Richard Holland
7dbfa071b1 split nonce into two apis, modify etxn_fee, add ledger_last_time, various other fee fixes 2022-05-09 13:01:54 +00:00
Richard Holland
ec78ef7ddb tsh tests / update setregularkey tsh 2022-05-09 08:13:50 +00:00
Nik Bougalis
b68a66928c Adjust the aggressiveness of the ledger acquisition engine:
Several hard-coded parameters control the behavior of the ledger
acquisition engine. The values of many of these parameters where
set by intuition and have complex and non-intuitive interactions
with each other and other parts of the code.

An earlier commit attempted to adjust several of these parameters
to improve syncing performance; initial testing was promising but
a number of operators reported experiencing syncing and stability
issues with their servers. As a result, this commit reverts parts
of commit 18235067af.

This commit further adjusts some tunables so as to increase the
aggressiveness of the ledger acquisition engine.
2022-05-06 11:38:19 -07:00
Nik Bougalis
245174c42c Adjust thread count calculation and request bundling:
This commit addresses minor bugs introduced with commit
6faaa91850:

- The number of threads used by the database engine was
  incorrectly clamped to the lower possible value, such
  that the database was effectively operating in single
  threaded mode.

- The number of requests to extract at once was so high
  that it could result in increased latency. The bundle
  size is now limited to 4 and can be adjusted by a new
  configuration option `rq_bundle` in the `[node_db]`
  stanza. This is an advanced tunable and adjusting it
  should not be needed.
2022-05-06 11:38:18 -07:00
Richard Holland
74b0f20108 fixed BUFFER_EQUAL for O2? 2022-05-06 11:01:39 +00:00
Richard Holland
92e1e6f3ab leb128 overflow fix 2022-05-06 10:20:12 +00:00
Richard Holland
67188dd121 guard logging again 2022-05-06 09:23:20 +00:00
Richard Holland
70fa3bf690 fix sethook logging (i.e. yuck) 2022-05-06 09:12:19 +00:00
Richard Holland
87a31e3cf1 improve the interface to guard checker 2022-05-06 08:59:46 +00:00
Richard Holland
636715fd20 refactor, guard_check, compiling but crash on validateGuards stream output (probably need a proxy class) 2022-05-05 18:38:47 +00:00
Richard Holland
b189908c10 fix overly zealous guard check 2022-04-28 15:16:45 +00:00
Richard Holland
4b3be856ea edge case bug 2022-04-26 14:11:43 +00:00
Richard Holland
3dab797fa2 add error message, address isAddable xrp edgecases 2022-04-22 10:36:53 +00:00
Richard Holland
5d231e2fcd add sfLockCount and isAddable 2022-04-22 09:45:04 +00:00
Richard Holland
c99370e9f0 todo: strict codesec and export checks when hook cleaner developed 2022-04-21 12:25:51 +00:00
Richard Holland
90d14368e6 building 2022-04-21 12:17:01 +00:00
Richard Holland
8861467437 large refactor for weak/strong tsh, not compiling 2022-04-21 11:24:59 +00:00
Richard Holland
3439888aef tsh collect call, compiling not tested 2022-04-19 12:04:27 +00:00
Richard Holland
d59c1cac7f reorder log codes 2022-04-19 08:24:13 +00:00
Richard Holland
bc2ad5bd8c more log codes 2022-04-14 12:53:41 +00:00
Richard Holland
611ddbb7fa bug fix 2022-04-14 10:01:12 +00:00
Richard Holland
230bd0cfba Merge remote-tracking branch 'origin/develop' into PaychanAndEscrowForTokens 2022-04-11 09:57:50 +00:00
Richard Holland
eb95f06ebc update claim serialization format 2022-04-11 09:52:20 +00:00
Richard Holland
ff6cc9ee8c escrow bug fixes, escrow create/finish/cancel working 2022-04-08 13:25:58 +00:00
Richard Holland
9b85d891ca fix logging to use journals 2022-04-08 11:13:39 +00:00
Richard Holland
d7fdf35e83 major refactor templates for trustTransfer and lock 2022-04-08 10:14:38 +00:00
Richard Holland
76b57a4e88 templates 2022-04-07 16:28:30 +00:00
Richard Holland
1b80bf77a8 debugging, bug fixes 2022-04-07 10:32:10 +00:00
manojsdoshi
7c66747d27 Set version to 1.9.0 2022-04-06 20:28:46 -07:00
manojsdoshi
cdd37a2a05 Set version to 1.9.0-rc1 2022-04-06 16:35:48 -07:00
manojsdoshi
c66be3e6cf Set version to 1.9.0-b3 2022-04-06 13:30:56 -07:00
Nik Bougalis
70779f6850 Introduce NFT support (XLS020) 2022-04-06 13:29:48 -07:00
greg7mdp
525aaecbca Fix build issue on M1 macs 2022-04-06 13:29:39 -07:00
Michael Legleux
9d3cd718e4 Do not install coreutils-single on rocky build image 2022-04-06 13:29:00 -07:00
Michael Legleux
656e9fe180 Upload rippled-reporting packages to Artifactory 2022-04-06 13:28:47 -07:00
Michael Legleux
8aa617d972 Fix failing Clio build 2022-04-06 13:28:10 -07:00
Richard Holland
ff19b91503 compiling 2022-04-06 19:38:09 +00:00
Richard Holland
dfc8503e56 Merge branch 'PaychanAndEscrowForTokens' of github.com:RichardAH/rippled into PaychanAndEscrowForTokens 2022-04-05 15:32:48 +00:00
Richard Holland
580f9a5097 more refactoring 2022-04-05 15:32:05 +00:00
RichardAH
54a96422ea Merge branch 'ripple:develop' into PaychanAndEscrowForTokens 2022-04-05 14:41:20 +02:00
Richard Holland
cd4f73104e move all trustline lock and unlock logic to view, untested 2022-04-05 10:57:11 +00:00
Richard Holland
166b4a76d4 bug fixes, testing 2022-04-04 12:37:15 +00:00
Richard Holland
d7f6007690 preliminary paychan IOU support, compiling, not tested 2022-04-01 12:52:56 +00:00