Commit Graph

13827 Commits

Author SHA1 Message Date
Scott Schurr
6f8750316c RPC tooBusy response has 503 HTTP status if "ripplerpc": "3.0": (#4143)
Fixes #4005

Makes it possible for internal RPC Error Codes to associate
themselves with a non-OK (200) HTTP status code.  There are
quite a number of RPC responses in addition to tooBusy that
now have non-OK HTTP status codes.

The new return HTTP return codes are only enabled by including
"ripplerpc": "3.0" or higher in the original request.
Otherwise the historical value, 200, continues to be returned.
This ensures that this is not a breaking change.
2023-01-03 09:24:45 -08:00
dangell7
4f94f07b2b add ic signClaim 2023-01-01 22:46:57 -05:00
dangell7
3c0aaab21b add IC to tecUNFUNDED 2023-01-01 22:46:18 -05:00
dangell7
2bad9bde04 change check from xrp to native + error handle 2023-01-01 22:45:46 -05:00
dangell7
cbee151d2d fix: format error 2022-12-27 21:29:41 -05:00
dangell7
e899147a4e erge branch 'icv2-super' of github.com:Transia-RnD/rippled into icv2-super 2022-12-27 19:48:30 -05:00
dangell7
24c51a51a6 update error handling & fix xrp issue 2022-12-27 19:45:24 -05:00
Denis Angell
c463bd8ccc Merge branch 'develop' into icv2-super 2022-12-27 19:28:48 -05:00
Chenna Keshava B S
c11472ed0b Remove inacessible code paths and outdated data format wchar_t 2022-12-23 13:10:10 +00:00
seelabs
eb6d770981 Support for boost 1.80.0:
Boost intrusive renamed the `comp()` function -> `get_comp()`
2022-12-23 13:09:30 +00:00
Michael Legleux
72ec634a25 Pin postgres, zlib, krb5, libuv and cassandra to stable versions 2022-12-23 13:07:07 +00:00
Ikko Ashimine
6b9c2826fc Fix typo in detail/Node.h
minumum -> minimum
2022-12-23 13:06:50 +00:00
seelabs
0913a3c596 Allow gcc 12 compilation:
Compiling with gcc 12 on manjaro (arch variant) had compilation errors
without adding an additional include file.
2022-12-23 13:06:30 +00:00
RichardAH
3284ab1804 featureDisallowIncoming: Opt-out of incoming Checks, PayChans, NFTokenOffers and Trustlines (#4336)
featureDisallowIncoming is a new amendment that would allow users to opt-out of incoming Checks, Payment Channels, NFTokenOffers, and trust lines. This commit includes tests.

Adds four new AccountSet Flags:
1. asfDisallowIncomingNFTOffer
2. asfDisallowIncomingCheck
3. asfDisallowIncomingPayChan
4. asfDisallowIncomingTrustline
2022-12-23 13:04:49 +00:00
CJ Cobb
167a7b3a5b 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-23 12:51:54 +00:00
Scott Determan
3c1f84f09e 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-23 12:51:41 +00:00
Scott Determan
74f1228d4a 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-23 12:51:28 +00:00
Gregory Popovitch
d46664df0f 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-23 12:50:33 +00:00
Elliot Lee
c912b939d6 Set version to 1.10.0-rc1 2022-12-23 12:50:28 +00:00
Scott Determan
9fc1a786dc 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-12-23 12:48:55 +00:00
Ed Hennis
63f80ea033 Don't try to read SLE with key 0 from the ledger:
* May resolve #4341
2022-12-23 12:48:44 +00:00
Richard Holland
8682d40eca reminder 2022-12-23 11:35:58 +00:00
Richard Holland
68f0e4baf5 make reward hook work with gov hook voted reward value 2022-12-22 13:36:07 +00:00
Richard Holland
e8e4bf7bf3 make ttINVOKE much more flexible 2022-12-22 11:42:59 +00:00
Richard Holland
7aa49cdf19 ensure that emitted txns don't need to specify network id 2022-12-21 22:29:18 +00:00
John Freeman
fda9e9a7ee Fix Doxygen workflow (#4372) 2022-12-21 10:41:16 -08:00
Richard Holland
4b2b6a871a update defs.json 2022-12-21 18:14:12 +00:00
Richard Holland
8b298ab3c0 more gov hook bug fixes 2022-12-21 14:37:15 +00:00
Richard Holland
171568ded7 gov hook updates, tested initial distribution some voting 2022-12-21 14:07:15 +00:00
Richard Holland
0a6708c673 allow small data as int64 again on state api 2022-12-21 12:31:39 +00:00
Richard Holland
42da01d87c xpop_history bug 2022-12-21 11:43:57 +00:00
Richard Holland
4c8542ad06 add headers for hook compilation 2022-12-21 11:38:56 +00:00
Richard Holland
3943c1c44c governance hook finished, compiling, not tested 2022-12-21 11:30:22 +00:00
Richard Holland
08374421ce add KEYLET_HOOK_DEFINITION to util_keylet 2022-12-21 11:29:47 +00:00
Richard Holland
9050e78d45 first version of the governance hook, almost finished. compiling, not tested 2022-12-20 17:39:34 +00:00
Richard Holland
0ef979a17b change HookOn to uint256 2022-12-20 10:55:28 +00:00
RichardAH
d8a84e9530 featureDisallowIncoming: Opt-out of incoming Checks, PayChans, NFTokenOffers and Trustlines (#4336)
featureDisallowIncoming is a new amendment that would allow users to opt-out of incoming Checks, Payment Channels, NFTokenOffers, and trust lines. This commit includes tests.

Adds four new AccountSet Flags:
1. asfDisallowIncomingNFTOffer
2. asfDisallowIncomingCheck
3. asfDisallowIncomingPayChan
4. asfDisallowIncomingTrustline
2022-12-19 17:35:35 -08:00
Richard Holland
39ecdb6795 Add NetworkID field to Transaction common fields, enforced when network id > 1024 2022-12-19 16:48:40 +00:00
Richard Holland
05f961c77c first half of XPOP_HISTORY 2022-12-19 16:45:13 +00:00
Richard Holland
cc1d374e11 fix js test rig 2022-12-19 16:36:12 +00:00
Richard Holland
6e001cf0bf enforce cmdline quorum when provided 2022-12-18 13:34:04 +00:00
Richard Holland
339b40bfb4 filter for ttclaimreward until hookon is expanded to 256bits 2022-12-17 17:02:18 +00:00
Richard Holland
97fa694188 definitions.json 2022-12-17 16:03:35 +00:00
Richard Holland
fef1f53c8b add reward time to BalanceRewards amendment 2022-12-17 15:09:50 +00:00
Richard Holland
4ab2e77d53 time based rewards 2022-12-17 15:06:20 +00:00
Richard Holland
fcf8a61368 first version of reward_hook, needs more testing 2022-12-17 10:58:33 +00:00
Richard Holland
c118705a38 bug fix on ClaimReward tx template 2022-12-17 10:20:47 +00:00
Richard Holland
35bf8bef5a update featureBalanceRewards to operate on metdata (compiling not tested) 2022-12-17 09:33:14 +00:00
Richard Holland
979f44d080 bug fix 2022-12-16 19:56:54 +00:00
John Freeman
c3a9f3dbf3 Use the Conan package manager (#4367)
Introduces a conanfile.py (and a Conan recipe for RocksDB) to enable building the package with Conan, choosing more recent default versions of dependencies. It removes almost all of the CMake build files related to dependencies, and the configurations for Travis CI and GitLab CI. A new set of cross-platform build instructions are written in BUILD.md.

Includes example GitHub Actions workflow for each of Linux, macOS, Windows.

* Test on macos-12

We use the <concepts> library which was not added to Apple Clang until
version 13.1.6. The default Clang on macos-11 (the sometimes current
version of macos-latest) is 13.0.0, and the default Clang on macos-12 is
14.0.0.

Closes #4223.
2022-12-16 10:46:22 -08:00