13722 Commits

Author SHA1 Message Date
Richard Holland
9a826cc54e change min ledger seq to 3 2022-12-14 08:08:03 +00:00
CJ Cobb
df1300fb37 Catch transaction deserialization error in doLedgerGrpc (#4323)
* Allow clio to extract ledgers with transactions that can no longer be
  deserialized. The problem transactions will be skipped.
2022-12-13 17:09:53 -08:00
Scott Determan
648d6c3e2f Fix clang 15 warnings: (#4325)
Clang warned about the code removed in this patch with the warning:
```
warning: out-of-line definition of constexpr static data member is
redundant in C++17 and is deprecated [-Wdeprecated]
```
2022-12-13 16:21:22 -08:00
Scott Determan
47ffc392d7 Work around gdb bug by changing a template parameter: (#4332)
There's a bug in gdb where unsigned template parameters cause issues with
RTTI. This patch changes a template parameter from `size_t` to `int` to
work around this gdb bug.
2022-12-13 16:13:54 -08:00
Alloy Networks
0362e935af Reduce default reserves to 10/2 (#4329)
Reduce the reserve requirements from 20/5 to 10/2 in line with the current network votes. The requirements of 10/2 have been on the network long enough that new nodes should not still have the old reserve amount.

Co-authored-by: Richard Holland <richard.holland@starstone.co.nz>
2022-12-13 10:56:35 -08:00
Richard Holland
3107787cad more wasmedge build stuff 2022-12-13 13:52:59 +00:00
Richard Holland
26522c1427 fix wasmedge cmake 2022-12-13 12:37:30 +00:00
Richard Holland
1b70420276 fix zero ips bug 2022-12-13 10:29:36 +00:00
Richard Holland
b0ebd8e3eb update to wasmedge 0.11 (untested) 2022-12-13 10:19:08 +00:00
Richard Holland
f467ce5fa6 change desired starting amendments to default yes 2022-12-12 15:39:23 +00:00
Richard Holland
f2d54f8427 change config filename defaults 2022-12-12 15:11:06 +00:00
Richard Holland
61ff4fab49 add xahaud release builder 2022-12-12 13:51:06 +00:00
Richard Holland
8a7fa7111d add wasms for hook tests 2022-12-12 13:49:50 +00:00
Richard Holland
a915eab15b change version string, remove bootstrap servers 2022-12-12 13:48:51 +00:00
Richard Holland
d9e03f9ffb state_set (release_marker) 2022-12-12 11:54:00 +00:00
Richard Holland
e4aa7db5cb increase size of hook state to 256 bytes, parameters too, change the reserve requirement to 1:1 for hook state, allow weak execution on rollback if hook_again was specified, add further state_set tests 2022-12-11 13:03:08 +00:00
Richard Holland
90949b8a59 start of state api testing 2022-12-10 14:19:20 +00:00
Ed Hennis
a79fa2026b Update GitHub Actions to ubuntu-latest: (#4357)
* Per actions/runner-images#6002, ubuntu-18.04 is being deprecated. If
  latest ever fails in the future, we'll need to fix the jobs anyway, so
  catch it early.

* Use long option names

* Force clang-format to ubuntu-20.04 because LLVM 10 is not available for 22.04
2022-12-08 20:41:50 -08:00
Gregory Popovitch
c1e7fe2d93 Prevent unnecessary shared_ptr copies by accepting a value in SHAMapInnerNode::setChild (#4266)
* Do a move instead of a copy in `SHAMapInnerNode::setChild`

* Create the value directly in the call
2022-12-08 20:15:21 -08:00
Nik Bougalis
4a5ad4cfac Update affiliation: Nikolaos D Bougalis (#4360) 2022-12-08 16:30:05 -08:00
Richard Holland
59b9074d03 otxn_type test 2022-12-06 13:53:47 +00:00
Richard Holland
3d59072c97 otxn_slot test 2022-12-06 13:28:43 +00:00
Richard Holland
307c748394 add otxn_id test 2022-12-06 12:45:29 +00:00
Richard Holland
7ca435d8f7 remove otxn_field_txt api (old api that should have been removed earlier) 2022-12-06 11:19:28 +00:00
Richard Holland
7f71535773 add util_keylet tests for new functionality, clean up 2022-12-06 11:10:19 +00:00
Richard Holland
1d6daf71de add slot_type test, allow util_keylet to accept a 3 character ascii currency code for KEYLET_LINE 2022-12-06 10:57:47 +00:00
Richard Holland
cf3c9205f6 slot_subfield test 2022-12-02 13:08:56 +00:00
Richard Holland
ed974de37b slot_subarray test, fix get_free_slot bug 2022-12-01 11:42:01 +00:00
Richard Holland
5d19a162f6 slot_size test 2022-11-29 11:37:56 +00:00
Richard Holland
7f72ef014b slot_set bug fixes, slot_set test 2022-11-29 11:25:28 +00:00
Richard Holland
b3de176b56 remove slot_id, trace_slot, redundant apis 2022-11-29 09:39:04 +00:00
Elliot Lee
ffd453f7dd Set version to 1.10.0-rc1 2022-11-28 14:12:16 -08:00
Scott Determan
518fb6d208 Improve move semantics in Expected (#4326)
* Improve move semantics in Expected:

This patch unconditionally moves an `Unexpected<U>` value parameter as
long as `U` is not a reference. If `U` is a reference the code should
not compile. An error type that holds a reference is a strange use-case,
and an overload is not provided. If it is required in the future it can
be added.

The `Expected(U r)` overload should take a forwarding ref.

* Replace enable_if with concepts in Expected
2022-11-28 14:01:54 -08:00
Elliot Lee
093055c039 README - add link to ripple-server mailing list (#3890) 2022-11-28 13:57:38 -08:00
Ed Hennis
b7ac73c8e4 Don't try to read SLE with key 0 from the ledger:
* May resolve #4341
2022-11-28 13:55:29 -08:00
J. Scott Branson
004ec2d201 Update Linux Build Instructions (#4018)
* Removed a reference to the default number of workers varying based on whether a node has validation enabled. Workers default to the number of processor cores + 2: https://github.com/ripple/rippled/blob/develop/src/ripple/core/impl/JobQueue.cpp#L166

* Protobuf v2 and Ubuntu 16.04 are no longer supported.

* Updated protobuf version as v3 is now supported, fixed typos, automatically sent number of processors when building boost & rippled.
2022-11-28 13:49:38 -08:00
Richard Holland
070e6032f1 two more slot api tests 2022-11-28 12:00:04 +00:00
Richard Holland
36a500e95b unit test for slot 2022-11-28 10:43:38 +00:00
Richard Holland
a76cb3b9c5 fix util_keylet test 2022-11-27 09:03:30 +00:00
Richard Holland
1855635cf8 util_verify test cases 2022-11-25 15:34:46 +00:00
Richard Holland
380e6a850a add test for util_keylet, bug fixes 2022-11-25 13:42:35 +00:00
Richard Holland
bdc87cb33b add uint256 support to various keylets in util_keylet 2022-11-24 16:39:35 +00:00
Richard Holland
aea437ca76 sto_ api tests finished 2022-11-22 13:27:29 +00:00
Richard Holland
3b44333a98 sto_subfield and subarray tests (not working yet) 2022-11-22 11:49:24 +00:00
Richard Holland
2f85e56b4d sto_erase now overloads sto_emplace, sto_validate test 2022-11-22 11:10:42 +00:00
Richard Holland
91447e7c21 sto_emplace test working 2022-11-22 10:06:56 +00:00
Richard Holland
854ae819aa sto_emplace testcase 2022-11-21 13:50:21 +00:00
Richard Holland
2273ed9d3e add unit test for util_sha512h, fix bounds check on read buffer 2022-11-18 15:09:51 +00:00
Richard Holland
e2286ef565 unit test for util_raddr 2022-11-18 14:51:26 +00:00
Richard Holland
c8e1824a2b remove hook_namespace api, add unit test for util_accid 2022-11-18 14:20:15 +00:00