Commit Graph

12968 Commits

Author SHA1 Message Date
Richard Holland
4a8d904ed6 weak tsh bug fix 2022-05-26 09:48:02 +00:00
Richard Holland
cd9af3e58d clean up hook/cbak type detection 2022-05-24 08:53:34 +00:00
Richard Holland
513f87ca70 crash bug 2022-05-23 12:14:57 +00:00
Richard Holland
7216df5829 start updating example hooks 2022-05-23 10:19:57 +00:00
Richard Holland
f74cc56acd state reserve counting 2022-05-23 10:19:44 +00:00
manojsdoshi
e32bc674aa Set version to 1.9.1 2022-05-22 13:18:18 -07:00
Richard Holland
88d747a7f7 hooks--NFT support 2022-05-20 09:25:41 +00:00
Richard Holland
4244a5a245 Merge remote-tracking branch 'ripple/develop' into develop 2022-05-20 08:05:08 +00:00
manojsdoshi
34786abd4f Set version to 1.9.1-rc2 2022-05-19 15:03:26 -07:00
natenichols
d0a813a19d Adding missing include <cassert> in beast/rngfill.h to fix rippled build 2022-05-19 15:02:28 -07:00
Richard Holland
37da7b23f3 correctly bill parameters during sethook create mode, update tests 2022-05-19 11:49:58 +00:00
Richard Holland
74eff62713 fix owner reserves, fee api 2022-05-19 10:40:31 +00:00
Richard Holland
5f4f2baa58 collect call logic bug 2022-05-17 12:35:23 +00:00
Richard Holland
f1a8b086b5 fix reference bug, add aaw test 2022-05-16 12:22:56 +00:00
Richard Holland
003bb9f63b fix txmeta issues 2022-05-16 11:42:25 +00:00
Richard Holland
b01bbcae5c mock txmeta and pass to weakly executed hooks, add meta_slot to access this data 2022-05-16 10:18:01 +00:00
manojsdoshi
25474343a9 Set version to 1.9.1-rc1 2022-05-11 18:21:14 -07:00
Nik Bougalis
670bc22cfa Set version to 1.9.1-b1 2022-05-10 13:34:16 -07:00
Scott Schurr
80bda7cc48 Introduce fixNFTokenDirV1 amendment:
o Fixes an off-by-one when determining which NFTokenPage an
  NFToken belongs on.
o Improves handling of packed sets of 32 NFTs with
  identical low 96-bits.
o Fixes marker handling by the account_nfts RPC command.
o Tightens constraints of NFTokenPage invariant checks.

Adds unit tests to exercise the fixed cases as well as tests
for previously untested functionality.
2022-05-10 13:34:12 -07:00
Devon White
dac080f1c8 Advance ripple.app.rdb 2022-05-10 13:34:12 -07:00
Devon White
767dd4ff3f Address failures in DatabaseDownloader unittest 2022-05-10 13:34:12 -07:00
Richard Holland
01c37fed69 Introduce the ExpandedSignerList amendment:
The amendment increases the maximum sign of an account's signer
list from 8 to 32.

Like all new features, the associated amendment is configured with
a default vote of "no" and server operators will have to vote for
it explicitly if they believe it is useful.
2022-05-10 13:34:12 -07:00
Ed Hennis
04bd5878f1 Track total trustlines and avoid duplications 2022-05-10 13:34:12 -07:00
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