Skip to content

Commit c92a8f2

Browse files
authored
Merge pull request #1273 from ElementsProject/master-ci-fixes
CI fixes from elements-23.x
2 parents 3d2f1c6 + eed08df commit c92a8f2

13 files changed

Lines changed: 77 additions & 28 deletions

File tree

.cirrus.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ task:
167167
task:
168168
name: 'ARM [unit tests, no functional tests] [bullseye]'
169169
<< : *GLOBAL_TASK_TEMPLATE
170-
arm_container:
170+
container:
171171
image: debian:bullseye
172-
cpu: 2
173-
memory: 8G
172+
docker_arguments:
173+
CI_IMAGE_NAME_TAG: debian:bullseye
174+
<< : *CREDITS_TEMPLATE
174175
env:
175176
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
176177
FILE_ENV: "./ci/test/00_setup_env_arm.sh"
177-
QEMU_USER_CMD: "" # Disable qemu and run the test natively
178178

179179
task:
180180
name: 'Win64 [unit tests, no gui tests, no boost::process, no functional tests] [jammy]'

build_msvc/common.init.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<AdditionalOptions>/utf-8 /Zc:__cplusplus /std:c++17 %(AdditionalOptions)</AdditionalOptions>
9191
<DisableSpecificWarnings>4018;4244;4267;4334;4715;4805;4834</DisableSpecificWarnings>
9292
<TreatWarningAsError>true</TreatWarningAsError>
93-
<PreprocessorDefinitions>_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;_SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING;ZMQ_STATIC;NOMINMAX;WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_CONSOLE;_WIN32_WINNT=0x0601;_WIN32_IE=0x0501;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
93+
<PreprocessorDefinitions>_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;SECP256K1_STATIC;_SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING;ZMQ_STATIC;NOMINMAX;WIN32;HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_CONSOLE;_WIN32_WINNT=0x0601;_WIN32_IE=0x0501;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
9494
<AdditionalIncludeDirectories>..\..\src;..\..\src\minisketch\include;..\..\src\univalue\include;..\..\src\secp256k1\include;..\..\src\leveldb\include;..\..\src\leveldb\helpers\memenv;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
9595
</ClCompile>
9696
<Link>

build_msvc/libbitcoin_common/libbitcoin_common.vcxproj.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,17 @@
88
<ConfigurationType>StaticLibrary</ConfigurationType>
99
</PropertyGroup>
1010
<ItemGroup>
11+
<ClCompile Include="..\..\src\pegins.cpp" />
12+
<ClCompile Include="..\..\src\psbt.cpp" />
13+
<ClCompile Include="..\..\src\primitives\bitcoin\transaction.cpp" />
14+
<ClCompile Include="..\..\src\primitives\transaction.cpp" />
1115
@SOURCE_FILES@
1216
</ItemGroup>
17+
<ItemGroup>
18+
<ProjectReference Include="..\libsecp256k1\libsecp256k1.vcxproj">
19+
<Project>{bb493552-3b8c-4a8c-bf69-a6e7a51d2ea6}</Project>
20+
</ProjectReference>
21+
</ItemGroup>
1322
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
1423
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
1524
<Import Project="..\common.vcxproj" />

build_msvc/libbitcoin_node/libbitcoin_node.vcxproj.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@
88
<ConfigurationType>StaticLibrary</ConfigurationType>
99
</PropertyGroup>
1010
<ItemGroup>
11+
<ClCompile Include="..\..\src\primitives\transaction.cpp" />
12+
<ClCompile Include="..\..\src\primitives\bitcoin\transaction.cpp" />
1113
@SOURCE_FILES@
1214
<ClCompile Include="..\..\src\wallet\init.cpp">
1315
<ObjectFileName>$(IntDir)wallet_init.obj</ObjectFileName>
1416
</ClCompile>
1517
</ItemGroup>
18+
<ItemGroup>
19+
<ProjectReference Include="..\libsecp256k1\libsecp256k1.vcxproj">
20+
<Project>{bb493552-3b8c-4a8c-bf69-a6e7a51d2ea6}</Project>
21+
</ProjectReference>
22+
</ItemGroup>
1623
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
1724
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
1825
<Import Project="..\common.vcxproj" />

build_msvc/libbitcoin_wallet/libbitcoin_wallet.vcxproj.in

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,35 @@
88
<ConfigurationType>StaticLibrary</ConfigurationType>
99
</PropertyGroup>
1010
<ItemGroup>
11+
<ClCompile Include="..\..\src\asset.cpp" />
12+
<ClCompile Include="..\..\src\chain.cpp" />
13+
<ClCompile Include="..\..\src\confidential_validation.cpp" />
14+
<ClCompile Include="..\..\src\deploymentstatus.cpp" />
15+
<ClCompile Include="..\..\src\dynafed.cpp" />
16+
<ClCompile Include="..\..\src\mainchainrpc.cpp" />
17+
<ClCompile Include="..\..\src\node\interfaces.cpp" />
18+
<ClCompile Include="..\..\src\node\ui_interface.cpp" />
19+
<ClCompile Include="..\..\src\pegins.cpp" />
20+
<ClCompile Include="..\..\src\pow.cpp" />
21+
<ClCompile Include="..\..\src\primitives\bitcoin\transaction.cpp" />
22+
<ClCompile Include="..\..\src\primitives\pak.cpp" />
23+
<ClCompile Include="..\..\src\rpc\server.cpp" />
24+
<ClCompile Include="..\..\src\script\sigcache.cpp" />
25+
<ClCompile Include="..\..\src\shutdown.cpp" />
26+
<ClCompile Include="..\..\src\sync.cpp" />
27+
<ClCompile Include="..\..\src\validation.cpp" />
28+
<ClCompile Include="..\..\src\versionbits.cpp" />
1129
<ClCompile Include="..\..\src\wallet\bdb.cpp" />
30+
<ClCompile Include="..\..\src\wallet\rpc\elements.cpp" />
1231
<ClCompile Include="..\..\src\wallet\salvage.cpp" />
1332
<ClCompile Include="..\..\src\wallet\sqlite.cpp" />
1433
@SOURCE_FILES@
1534
</ItemGroup>
35+
<ItemGroup>
36+
<ProjectReference Include="..\libsecp256k1\libsecp256k1.vcxproj">
37+
<Project>{bb493552-3b8c-4a8c-bf69-a6e7a51d2ea6}</Project>
38+
</ProjectReference>
39+
</ItemGroup>
1640
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
1741
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
1842
<Import Project="..\common.vcxproj" />

build_msvc/libbitcoinconsensus/libbitcoinconsensus.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</PropertyGroup>
1010
<ItemGroup>
1111
<ClCompile Include="..\..\src\arith_uint256.cpp" />
12+
<ClCompile Include="..\..\src\asset.cpp" />
1213
<ClCompile Include="..\..\src\consensus\merkle.cpp" />
1314
<ClCompile Include="..\..\src\consensus\tx_check.cpp" />
1415
<ClCompile Include="..\..\src\crypto\aes.cpp" />
@@ -22,7 +23,9 @@
2223
<ClCompile Include="..\..\src\crypto\sha512.cpp" />
2324
<ClCompile Include="..\..\src\hash.cpp" />
2425
<ClCompile Include="..\..\src\primitives\block.cpp" />
26+
<ClCompile Include="..\..\src\primitives\confidential.cpp" />
2527
<ClCompile Include="..\..\src\primitives\transaction.cpp" />
28+
<ClCompile Include="..\..\src\primitives\txwitness.cpp" />
2629
<ClCompile Include="..\..\src\pubkey.cpp" />
2730
<ClCompile Include="..\..\src\script\bitcoinconsensus.cpp" />
2831
<ClCompile Include="..\..\src\script\interpreter.cpp" />

build_msvc/libsecp256k1/libsecp256k1.vcxproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@
88
<ConfigurationType>StaticLibrary</ConfigurationType>
99
</PropertyGroup>
1010
<ItemGroup>
11+
<ClCompile Include="..\..\src\secp256k1\src\precomputed_ecmult.c" />
12+
<ClCompile Include="..\..\src\secp256k1\src\precomputed_ecmult_gen.c" />
1113
<ClCompile Include="..\..\src\secp256k1\src\secp256k1.c" />
1214
</ItemGroup>
13-
<ItemDefinitionGroup>
15+
<ItemDefinitionGroup>
1416
<ClCompile>
15-
<PreprocessorDefinitions>ENABLE_MODULE_ECDH;ENABLE_MODULE_RECOVERY;ENABLE_MODULE_EXTRAKEYS;ENABLE_MODULE_SCHNORRSIG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
16-
<AdditionalIncludeDirectories>..\..\src\secp256k1;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
17-
</ClCompile>
17+
<PreprocessorDefinitions>ENABLE_MODULE_GENERATOR;ENABLE_MODULE_RANGEPROOF;ENABLE_MODULE_SURJECTIONPROOF;ECMULT_WINDOW_SIZE=15;ECMULT_GEN_PREC_BITS=8;ENABLE_MODULE_WHITELIST;ENABLE_MODULE_ECDH;ENABLE_MODULE_ECDSA_ADAPTOR;ENABLE_MODULE_ECDSA_S2C;ENABLE_MODULE_RECOVERY;ENABLE_MODULE_EXTRAKEYS;ENABLE_MODULE_SCHNORRSIG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
18+
<AdditionalIncludeDirectories>..\..\src\secp256k1;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
19+
<DisableSpecificWarnings>4005;4146;4244;4267;4334</DisableSpecificWarnings>
20+
</ClCompile>
1821
</ItemDefinitionGroup>
1922
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
2023
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
2124
<Import Project="..\common.vcxproj" />
22-
</Project>
25+
</Project>

build_msvc/test_bitcoin-qt/test_bitcoin-qt.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<ClCompile Include="$(GeneratedFilesOutDir)\moc\moc_rpcnestedtests.cpp" />
2424
<ClCompile Include="$(GeneratedFilesOutDir)\moc\moc_uritests.cpp" />
2525
<ClCompile Include="$(GeneratedFilesOutDir)\moc\moc_wallettests.cpp" />
26+
<ClCompile Include="..\..\src\primitives\bitcoin\transaction.cpp" />
2627
</ItemGroup>
2728
<ItemGroup>
2829
<ProjectReference Include="..\libbitcoinconsensus\libbitcoinconsensus.vcxproj">

build_msvc/test_bitcoin/test_bitcoin.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<ClCompile Include="..\..\src\wallet\test\*_fixture.cpp" />
1818
<ClCompile Include="..\..\src\wallet\test\*_tests.cpp" />
1919
<ClCompile Include="..\..\src\wallet\test\util.cpp" />
20+
<ClCompile Include="..\..\src\primitives\bitcoin\transaction.cpp" />
2021
</ItemGroup>
2122
<ItemGroup>
2223
<ProjectReference Include="..\libminisketch\libminisketch.vcxproj">

src/mainchainrpc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ bool IsConfirmedBitcoinBlock(const uint256& hash, const int nMinConfirmationDept
184184
return false;
185185
}
186186
}
187-
} catch (CConnectionFailed& e) {
187+
} catch (CConnectionFailed&) {
188188
LogPrintf("WARNING: Lost connection to mainchain daemon RPC; will retry.\n");
189189
return false;
190190
} catch (...) {

0 commit comments

Comments
 (0)