Commit Graph

12901 Commits

Author SHA1 Message Date
Richard Holland
d5590d23d1 remove float_exponent test 2022-11-11 15:12:45 +00:00
Richard Holland
1457ecf976 prune float_mantissa_set, float_exponent_set, float_sign_set, these are not needed, use float_set 2022-11-11 14:54:42 +00:00
Richard Holland
771af44e09 fix multiplication by using cpp_int 2022-11-11 13:44:11 +00:00
Richard Holland
467d8bd3ee replace float_exponent with macro 2022-11-07 17:00:41 +00:00
Richard Holland
ec1fb35ad4 more float testing and bug fixes 2022-11-07 13:53:32 +00:00
Richard Holland
5b6bb6a11b more float api testing, some rewrites of float routines, currently division is broken 2022-11-04 13:46:10 +00:00
Richard Holland
19c6e262b2 more hookapi float test cases 2022-11-03 11:09:26 +00:00
Richard Holland
4d739368c6 float_sum test 2022-11-01 13:34:48 +00:00
Richard Holland
c09f91f36e rewrite float_root, fix bug in float_sum, start of float unit tests 2022-11-01 13:23:42 +00:00
Richard Holland
82e9601712 sethook structure testing done, move on to hook api testing 2022-10-25 12:51:40 +00:00
Richard Holland
44513d3fc5 minor bug fixes with hook grants, grants testcases 2022-10-25 11:03:34 +00:00
Richard Holland
239c5bbf62 parameter and grants testing 2022-10-21 13:01:54 +00:00
Richard Holland
e4c3b14b1e further improve parameter management on update operation 2022-10-21 08:18:29 +00:00
Richard Holland
9ba518f0da fix hso update, to make it more intuitive 2022-10-20 15:31:14 +00:00
Richard Holland
15fd4b11c2 fix update hook bug 2022-10-20 12:15:54 +00:00
Richard Holland
8ebf358c9a nsdelete and delete test cases 2022-10-20 09:25:32 +00:00
Richard Holland
0f72472980 fix for https://github.com/XRPL-Labs/xrpld-hooks/issues/59 2022-10-20 08:37:15 +00:00
Richard Holland
ba24a3e72c more glassbox tests 2022-10-14 14:37:51 +00:00
Richard Holland
071d584cb0 start adding glassbox tests 2022-10-14 11:15:09 +00:00
Richard Holland
223606aacb more unit tests for hooks, still wip 2022-10-13 12:37:47 +00:00
Richard Holland
09a4087256 more hooks unit testing params/grants 2022-10-13 09:11:03 +00:00
Richard Holland
f1cbeca57d params and grants tests, fix param validation 2022-10-11 12:52:08 +00:00
Richard Holland
01e7793df1 more test cases 2022-10-11 11:34:54 +00:00
Richard Holland
2a57c89176 more hook unit test tooling 2022-10-10 12:48:52 +00:00
Richard Holland
f5a0c951fe support inline wat2wasm in sethook unit tests 2022-10-10 09:36:40 +00:00
Richard Holland
a399cd2425 allow guard checker to work with stdin 2022-10-10 08:17:57 +00:00
Richard Holland
23da73a472 more hooks unit tests 2022-10-07 12:49:16 +00:00
Richard Holland
105cd06d7e add more hook unit tests, and test wasm checker 2022-10-07 11:41:33 +00:00
Richard Holland
eff650c922 initial wasm builder for unit testing 2022-10-07 09:01:00 +00:00
Richard Holland
8662adcff8 start of some js str_concat/find tests 2022-10-06 10:43:38 +00:00
Richard Holland
80ab5ce731 remove str_format 2022-10-06 10:20:19 +00:00
Richard Holland
28a4a50f0f str_concat finished, not tested 2022-10-06 10:09:06 +00:00
Richard Holland
04a938377d initial version of hook str api 2022-10-06 08:11:49 +00:00
Richard Holland
e99ffe29a3 https://github.com/XRPL-Labs/xrpld-hooks/issues/51 2022-09-19 12:48:09 +00:00
Richard Holland
2273fe99a2 update readme 2022-09-19 12:22:03 +00:00
Richard Holland
cafa3484f4 tfStrongTSH for NFTs 2022-09-16 12:51:24 +00:00
Richard Holland
feee395231 further fix to sfHookNamespaces managment 2022-09-01 11:27:00 +00:00
Richard Holland
73bf8f3fff add lockedbalance and lockcount to account_lines rpc 2022-08-30 11:11:31 +00:00
Richard Holland
ce09f9a4c6 make sfStateCount absent when it is 0 2022-08-30 09:32:10 +00:00
Richard Holland
d81cc2104b revise destroyNamespace logic 2022-08-30 09:15:28 +00:00
Richard Holland
267ad3703e fixup for compat with 193 2022-08-29 11:12:08 +00:00
Richard Holland
0e0355cf36 Merge remote-tracking branch 'ripple/develop' into develop 2022-08-29 10:52:04 +00:00
Richard Holland
5123736c51 start writing unit tests for SetHook 2022-08-29 10:42:19 +00:00
Richard Holland
8d85c87233 [FOLD] Rename error code OVERFLOW to XFL_OVERFLOW 2022-08-29 10:36:56 +00:00
Richard Holland
27167bb866 [FOLD] First round of review changes 2022-08-29 10:25:22 +00:00
Richard Holland
5a75d067e7 Merge branch 'develop' of github.com:XRPL-Labs/xrpld-hooks into develop 2022-08-29 09:34:03 +00:00
Richard Holland
37e2a12bf5 fix tracelog display bug 2022-08-29 09:33:44 +00:00
Nik Bougalis
fe05b8c4fe Set version to 1.10.0-b1 2022-08-25 08:49:18 -07:00
Nik Bougalis
7b3507bb87 Improve wrapper around OpenSSL RAND 2022-08-25 08:49:17 -07:00
Nik Bougalis
0ecfc7cb1a Improve self-signed certificate generation:
When starting, the code generates a new ephemeral private key and
a corresponding certificate to go along with it. This process can
take time and, while this is unlikely to matter for normal server
operations, it can have a significant impact for unit testing and
development. Profiling data suggests that ~20% of the time needed
for a unit test run can be attributed to this.

This commit does several things:

1. It restructures the code so that a new self-signed certificate
   and its corresponding private key are only initialized once at
   startup; this has minimal impact on the operation of a regular
   server.
2. It provides new default DH parameters. This doesn't impact the
   security of the connection, but those who compile from scratch
   can generate new parameters if they so choose.
3. It properly sets the version number in the certificate, fixing
   issue #4007; thanks to @donovanhide for the report.
4. It uses SHA-256 instead of SHA-1 as the hash algorithm for the
   certificate and adds some X.509 extensions as well as a random
   128-bit serial number.
5. It rounds the certificate's "start of validity" period so that
   the server's precise startup time cannot be easily deduced and
   limits the validity period to two years, down from ten years.
6. It removes some CBC-based ciphers from the default cipher list
   to avoid some potential security issues, such as CVE-2016-2107
   and CVE-2013-0169.
2022-08-25 08:49:17 -07:00