Skip to content

Commit 848b9bb

Browse files
Merge branch 'ripple/confidential-transfer' into AuditorTest
2 parents 107af86 + 9d0c854 commit 848b9bb

File tree

797 files changed

+4189
-6965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

797 files changed

+4189
-6965
lines changed

.cmake-format.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ _help_parse: Options affecting listfile parsing
22
parse:
33
_help_additional_commands:
44
- Specify structure for custom cmake functions
5+
additional_commands:
6+
target_protobuf_sources:
7+
pargs:
8+
- target
9+
- prefix
10+
kwargs:
11+
PROTOS: "*"
12+
LANGUAGE: cpp
13+
IMPORT_DIRS: "*"
14+
GENERATE_EXTENSIONS: "*"
15+
PLUGIN: "*"
516
_help_override_spec:
617
- Override configurations per-command where available
718
override_spec: {}
@@ -159,7 +170,7 @@ markup:
159170
canonicalize_hashrulers: true
160171
_help_enable_markup:
161172
- enable comment markup parsing and reflow
162-
enable_markup: true
173+
enable_markup: false
163174
_help_lint: Options affecting the linter
164175
lint:
165176
_help_disabled_codes:

.github/CODEOWNERS

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/scripts/levelization/results/loops.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ Loop: test.jtx test.toplevel
44
Loop: test.jtx test.unit_test
55
test.unit_test == test.jtx
66

7-
Loop: xrpld.app xrpld.core
8-
xrpld.app > xrpld.core
9-
107
Loop: xrpld.app xrpld.overlay
118
xrpld.overlay > xrpld.app
129

1310
Loop: xrpld.app xrpld.peerfinder
14-
xrpld.peerfinder ~= xrpld.app
11+
xrpld.peerfinder == xrpld.app
1512

1613
Loop: xrpld.app xrpld.rpc
1714
xrpld.rpc > xrpld.app

.github/scripts/levelization/results/ordering.txt

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ libxrpl.nodestore > xrpl.protocol
1717
libxrpl.protocol > xrpl.basics
1818
libxrpl.protocol > xrpl.json
1919
libxrpl.protocol > xrpl.protocol
20+
libxrpl.rdb > xrpl.basics
21+
libxrpl.rdb > xrpl.rdb
2022
libxrpl.resource > xrpl.basics
2123
libxrpl.resource > xrpl.json
2224
libxrpl.resource > xrpl.resource
2325
libxrpl.server > xrpl.basics
2426
libxrpl.server > xrpl.json
2527
libxrpl.server > xrpl.protocol
28+
libxrpl.server > xrpl.rdb
2629
libxrpl.server > xrpl.server
2730
libxrpl.shamap > xrpl.basics
2831
libxrpl.shamap > xrpl.protocol
@@ -41,7 +44,9 @@ test.app > xrpl.json
4144
test.app > xrpl.ledger
4245
test.app > xrpl.nodestore
4346
test.app > xrpl.protocol
47+
test.app > xrpl.rdb
4448
test.app > xrpl.resource
49+
test.app > xrpl.server
4550
test.basics > test.jtx
4651
test.basics > test.unit_test
4752
test.basics > xrpl.basics
@@ -67,6 +72,7 @@ test.core > xrpl.basics
6772
test.core > xrpl.core
6873
test.core > xrpld.core
6974
test.core > xrpl.json
75+
test.core > xrpl.rdb
7076
test.core > xrpl.server
7177
test.csf > xrpl.basics
7278
test.csf > xrpld.consensus
@@ -95,8 +101,8 @@ test.nodestore > test.jtx
95101
test.nodestore > test.toplevel
96102
test.nodestore > test.unit_test
97103
test.nodestore > xrpl.basics
98-
test.nodestore > xrpld.core
99104
test.nodestore > xrpl.nodestore
105+
test.nodestore > xrpl.rdb
100106
test.overlay > test.jtx
101107
test.overlay > test.toplevel
102108
test.overlay > test.unit_test
@@ -153,6 +159,8 @@ tests.libxrpl > xrpl.json
153159
tests.libxrpl > xrpl.net
154160
xrpl.core > xrpl.basics
155161
xrpl.core > xrpl.json
162+
xrpl.core > xrpl.ledger
163+
xrpl.core > xrpl.protocol
156164
xrpl.json > xrpl.basics
157165
xrpl.ledger > xrpl.basics
158166
xrpl.ledger > xrpl.protocol
@@ -161,12 +169,17 @@ xrpl.nodestore > xrpl.basics
161169
xrpl.nodestore > xrpl.protocol
162170
xrpl.protocol > xrpl.basics
163171
xrpl.protocol > xrpl.json
172+
xrpl.rdb > xrpl.basics
173+
xrpl.rdb > xrpl.core
174+
xrpl.rdb > xrpl.protocol
164175
xrpl.resource > xrpl.basics
165176
xrpl.resource > xrpl.json
166177
xrpl.resource > xrpl.protocol
167178
xrpl.server > xrpl.basics
179+
xrpl.server > xrpl.core
168180
xrpl.server > xrpl.json
169181
xrpl.server > xrpl.protocol
182+
xrpl.server > xrpl.rdb
170183
xrpl.shamap > xrpl.basics
171184
xrpl.shamap > xrpl.nodestore
172185
xrpl.shamap > xrpl.protocol
@@ -175,12 +188,15 @@ xrpld.app > xrpl.basics
175188
xrpld.app > xrpl.core
176189
xrpld.app > xrpld.conditions
177190
xrpld.app > xrpld.consensus
191+
xrpld.app > xrpld.core
178192
xrpld.app > xrpl.json
179193
xrpld.app > xrpl.ledger
180194
xrpld.app > xrpl.net
181195
xrpld.app > xrpl.nodestore
182196
xrpld.app > xrpl.protocol
197+
xrpld.app > xrpl.rdb
183198
xrpld.app > xrpl.resource
199+
xrpld.app > xrpl.server
184200
xrpld.app > xrpl.shamap
185201
xrpld.conditions > xrpl.basics
186202
xrpld.conditions > xrpl.protocol
@@ -192,17 +208,20 @@ xrpld.core > xrpl.core
192208
xrpld.core > xrpl.json
193209
xrpld.core > xrpl.net
194210
xrpld.core > xrpl.protocol
211+
xrpld.core > xrpl.rdb
195212
xrpld.overlay > xrpl.basics
196213
xrpld.overlay > xrpl.core
197214
xrpld.overlay > xrpld.core
198215
xrpld.overlay > xrpld.peerfinder
199216
xrpld.overlay > xrpl.json
200217
xrpld.overlay > xrpl.protocol
218+
xrpld.overlay > xrpl.rdb
201219
xrpld.overlay > xrpl.resource
202220
xrpld.overlay > xrpl.server
203221
xrpld.peerfinder > xrpl.basics
204222
xrpld.peerfinder > xrpld.core
205223
xrpld.peerfinder > xrpl.protocol
224+
xrpld.peerfinder > xrpl.rdb
206225
xrpld.perflog > xrpl.basics
207226
xrpld.perflog > xrpl.core
208227
xrpld.perflog > xrpld.rpc
@@ -215,6 +234,7 @@ xrpld.rpc > xrpl.ledger
215234
xrpld.rpc > xrpl.net
216235
xrpld.rpc > xrpl.nodestore
217236
xrpld.rpc > xrpl.protocol
237+
xrpld.rpc > xrpl.rdb
218238
xrpld.rpc > xrpl.resource
219239
xrpld.rpc > xrpl.server
220240
xrpld.shamap > xrpl.shamap

.github/scripts/rename/include.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
# Exit the script as soon as an error occurs.
4+
set -e
5+
6+
# This script checks whether there are no new include guards introduced by a new
7+
# PR, as header files should use "#pragma once" instead. The script assumes any
8+
# include guards will use "XRPL_" as prefix.
9+
# Usage: .github/scripts/rename/include.sh <repository directory>
10+
11+
if [ "$#" -ne 1 ]; then
12+
echo "Usage: $0 <repository directory>"
13+
exit 1
14+
fi
15+
16+
DIRECTORY=$1
17+
echo "Processing directory: ${DIRECTORY}"
18+
if [ ! -d "${DIRECTORY}" ]; then
19+
echo "Error: Directory '${DIRECTORY}' does not exist."
20+
exit 1
21+
fi
22+
23+
find "${DIRECTORY}" -type f \( -name "*.h" -o -name "*.hpp" -o -name "*.ipp" \) | while read -r FILE; do
24+
echo "Processing file: ${FILE}"
25+
if grep -q "#ifndef XRPL_" "${FILE}"; then
26+
echo "Please replace all include guards by #pragma once."
27+
exit 1
28+
fi
29+
done
30+
echo "Checking complete."

.github/scripts/strategy-matrix/generate.py

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -51,138 +51,122 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
5151
# Only generate a subset of configurations in PRs.
5252
if not all:
5353
# Debian:
54-
# - Bookworm using GCC 13: Release and Unity on linux/amd64, set
55-
# the reference fee to 500.
56-
# - Bookworm using GCC 15: Debug and no Unity on linux/amd64, enable
57-
# code coverage (which will be done below).
58-
# - Bookworm using Clang 16: Debug and no Unity on linux/arm64,
59-
# enable voidstar.
60-
# - Bookworm using Clang 17: Release and no Unity on linux/amd64,
61-
# set the reference fee to 1000.
62-
# - Bookworm using Clang 20: Debug and Unity on linux/amd64.
54+
# - Bookworm using GCC 13: Release on linux/amd64, set the reference
55+
# fee to 500.
56+
# - Bookworm using GCC 15: Debug on linux/amd64, enable code
57+
# coverage (which will be done below).
58+
# - Bookworm using Clang 16: Debug on linux/arm64, enable voidstar.
59+
# - Bookworm using Clang 17: Release on linux/amd64, set the
60+
# reference fee to 1000.
61+
# - Bookworm using Clang 20: Debug on linux/amd64.
6362
if os["distro_name"] == "debian":
6463
skip = True
6564
if os["distro_version"] == "bookworm":
6665
if (
6766
f"{os['compiler_name']}-{os['compiler_version']}" == "gcc-13"
6867
and build_type == "Release"
69-
and "-Dunity=ON" in cmake_args
7068
and architecture["platform"] == "linux/amd64"
7169
):
7270
cmake_args = f"-DUNIT_TEST_REFERENCE_FEE=500 {cmake_args}"
7371
skip = False
7472
if (
7573
f"{os['compiler_name']}-{os['compiler_version']}" == "gcc-15"
7674
and build_type == "Debug"
77-
and "-Dunity=OFF" in cmake_args
7875
and architecture["platform"] == "linux/amd64"
7976
):
8077
skip = False
8178
if (
8279
f"{os['compiler_name']}-{os['compiler_version']}" == "clang-16"
8380
and build_type == "Debug"
84-
and "-Dunity=OFF" in cmake_args
8581
and architecture["platform"] == "linux/arm64"
8682
):
8783
cmake_args = f"-Dvoidstar=ON {cmake_args}"
8884
skip = False
8985
if (
9086
f"{os['compiler_name']}-{os['compiler_version']}" == "clang-17"
9187
and build_type == "Release"
92-
and "-Dunity=ON" in cmake_args
9388
and architecture["platform"] == "linux/amd64"
9489
):
9590
cmake_args = f"-DUNIT_TEST_REFERENCE_FEE=1000 {cmake_args}"
9691
skip = False
9792
if (
9893
f"{os['compiler_name']}-{os['compiler_version']}" == "clang-20"
9994
and build_type == "Debug"
100-
and "-Dunity=ON" in cmake_args
10195
and architecture["platform"] == "linux/amd64"
10296
):
10397
skip = False
10498
if skip:
10599
continue
106100

107101
# RHEL:
108-
# - 9 using GCC 12: Debug and Unity on linux/amd64.
109-
# - 10 using Clang: Release and no Unity on linux/amd64.
102+
# - 9 using GCC 12: Debug on linux/amd64.
103+
# - 10 using Clang: Release on linux/amd64.
110104
if os["distro_name"] == "rhel":
111105
skip = True
112106
if os["distro_version"] == "9":
113107
if (
114108
f"{os['compiler_name']}-{os['compiler_version']}" == "gcc-12"
115109
and build_type == "Debug"
116-
and "-Dunity=ON" in cmake_args
117110
and architecture["platform"] == "linux/amd64"
118111
):
119112
skip = False
120113
elif os["distro_version"] == "10":
121114
if (
122115
f"{os['compiler_name']}-{os['compiler_version']}" == "clang-any"
123116
and build_type == "Release"
124-
and "-Dunity=OFF" in cmake_args
125117
and architecture["platform"] == "linux/amd64"
126118
):
127119
skip = False
128120
if skip:
129121
continue
130122

131123
# Ubuntu:
132-
# - Jammy using GCC 12: Debug and no Unity on linux/arm64.
133-
# - Noble using GCC 14: Release and Unity on linux/amd64.
134-
# - Noble using Clang 18: Debug and no Unity on linux/amd64.
135-
# - Noble using Clang 19: Release and Unity on linux/arm64.
124+
# - Jammy using GCC 12: Debug on linux/arm64.
125+
# - Noble using GCC 14: Release on linux/amd64.
126+
# - Noble using Clang 18: Debug on linux/amd64.
127+
# - Noble using Clang 19: Release on linux/arm64.
136128
if os["distro_name"] == "ubuntu":
137129
skip = True
138130
if os["distro_version"] == "jammy":
139131
if (
140132
f"{os['compiler_name']}-{os['compiler_version']}" == "gcc-12"
141133
and build_type == "Debug"
142-
and "-Dunity=OFF" in cmake_args
143134
and architecture["platform"] == "linux/arm64"
144135
):
145136
skip = False
146137
elif os["distro_version"] == "noble":
147138
if (
148139
f"{os['compiler_name']}-{os['compiler_version']}" == "gcc-14"
149140
and build_type == "Release"
150-
and "-Dunity=ON" in cmake_args
151141
and architecture["platform"] == "linux/amd64"
152142
):
153143
skip = False
154144
if (
155145
f"{os['compiler_name']}-{os['compiler_version']}" == "clang-18"
156146
and build_type == "Debug"
157-
and "-Dunity=OFF" in cmake_args
158147
and architecture["platform"] == "linux/amd64"
159148
):
160149
skip = False
161150
if (
162151
f"{os['compiler_name']}-{os['compiler_version']}" == "clang-19"
163152
and build_type == "Release"
164-
and "-Dunity=ON" in cmake_args
165153
and architecture["platform"] == "linux/arm64"
166154
):
167155
skip = False
168156
if skip:
169157
continue
170158

171159
# MacOS:
172-
# - Debug and no Unity on macos/arm64.
160+
# - Debug on macos/arm64.
173161
if os["distro_name"] == "macos" and not (
174-
build_type == "Debug"
175-
and "-Dunity=OFF" in cmake_args
176-
and architecture["platform"] == "macos/arm64"
162+
build_type == "Debug" and architecture["platform"] == "macos/arm64"
177163
):
178164
continue
179165

180166
# Windows:
181-
# - Release and Unity on windows/amd64.
167+
# - Release on windows/amd64.
182168
if os["distro_name"] == "windows" and not (
183-
build_type == "Release"
184-
and "-Dunity=ON" in cmake_args
185-
and architecture["platform"] == "windows/amd64"
169+
build_type == "Release" and architecture["platform"] == "windows/amd64"
186170
):
187171
continue
188172

@@ -209,18 +193,28 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
209193
):
210194
continue
211195

212-
# Enable code coverage for Debian Bookworm using GCC 15 in Debug and no
213-
# Unity on linux/amd64
196+
# Enable code coverage for Debian Bookworm using GCC 15 in Debug on
197+
# linux/amd64
214198
if (
215-
f"{os['compiler_name']}-{os['compiler_version']}" == "gcc-15"
199+
f"{os['distro_name']}-{os['distro_version']}" == "debian-bookworm"
200+
and f"{os['compiler_name']}-{os['compiler_version']}" == "gcc-15"
216201
and build_type == "Debug"
217-
and "-Dunity=OFF" in cmake_args
218202
and architecture["platform"] == "linux/amd64"
219203
):
220-
cmake_args = f"-Dcoverage=ON -Dcoverage_format=xml -DCODE_COVERAGE_VERBOSE=ON -DCMAKE_C_FLAGS=-O0 -DCMAKE_CXX_FLAGS=-O0 {cmake_args}"
204+
cmake_args = f"{cmake_args} -Dcoverage=ON -Dcoverage_format=xml -DCODE_COVERAGE_VERBOSE=ON -DCMAKE_C_FLAGS=-O0 -DCMAKE_CXX_FLAGS=-O0"
205+
206+
# Enable unity build for Ubuntu Jammy using GCC 12 in Debug on
207+
# linux/amd64.
208+
if (
209+
f"{os['distro_name']}-{os['distro_version']}" == "ubuntu-jammy"
210+
and f"{os['compiler_name']}-{os['compiler_version']}" == "gcc-12"
211+
and build_type == "Debug"
212+
and architecture["platform"] == "linux/amd64"
213+
):
214+
cmake_args = f"{cmake_args} -Dunity=ON"
221215

222216
# Generate a unique name for the configuration, e.g. macos-arm64-debug
223-
# or debian-bookworm-gcc-12-amd64-release-unity.
217+
# or debian-bookworm-gcc-12-amd64-release.
224218
config_name = os["distro_name"]
225219
if (n := os["distro_version"]) != "":
226220
config_name += f"-{n}"

.github/scripts/strategy-matrix/linux.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,5 @@
208208
}
209209
],
210210
"build_type": ["Debug", "Release"],
211-
"cmake_args": ["-Dunity=OFF", "-Dunity=ON"]
211+
"cmake_args": [""]
212212
}

0 commit comments

Comments
 (0)