Commit Graph

13695 Commits

Author SHA1 Message Date
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
Richard Holland
17726c8141 remove js tests for hooks 2022-12-16 13:53:35 +00:00
Richard Holland
81bcb621a7 ttINVOKE 2022-12-16 13:40:27 +00:00
Richard Holland
8a0635396a ttInvoke part 1 2022-12-16 13:40:23 +00:00
Richard Holland
44425f14f6 Balance Rewards amendment (compiling not tested) 2022-12-16 11:55:53 +00:00
Richard Holland
d48ac760d4 set earliest seq to 1 2022-12-16 11:54:37 +00:00
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