Seems odd to include this heavy header in all tests despite it only being used in a few tests.
Can be reviewed with --color-moved=dimmed-zebra --ignore-all-space
Seems odd to include this heavy header in all tests despite it only being used in a few tests.
Can be reviewed with --color-moved=dimmed-zebra --ignore-all-space
Concept ACK - looks like some previously transitively included includes will need to be added:
0test/util_tests.cpp: In member function ‘void util_tests::util_seed_insecure_rand::test_method()’:
1test/util_tests.cpp:1441:33: error: ‘sqrt’ was not declared in this scope
2 1441 | int err = 30*10000./mod*sqrt((1./mod*(1-1./mod))/10000.);
3 | ^~~~
4make[2]: *** [Makefile:18499: test/test_bitcoin-util_tests.o] Error 1
I can reduce the fuzz compile time (user+kernel time) by 20% with a dirty txmempool.h
. To reproduce:
0( echo >> ./src/txmempool.h ) && /usr/bin/time --format '%U+%S (%e)' make -j $(nproc)
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
std::optional<bilingual_str>
with util::Result
by ryanofsky)read_json
function into its own module by hebasto)If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Does anyone know why msvc is unable to link this? @sipsorcery @hebasto any thoughts?
Does anyone know why msvc is unable to link this?
0--- a/build_msvc/test_bitcoin-qt/test_bitcoin-qt.vcxproj
1+++ b/build_msvc/test_bitcoin-qt/test_bitcoin-qt.vcxproj
2@@ -54,6 +54,9 @@
3 <ProjectReference Include="..\libbitcoin_zmq\libbitcoin_zmq.vcxproj">
4 <Project>{792d487f-f14c-49fc-a9de-3fc150f31c3f}</Project>
5 </ProjectReference>
6+ <ProjectReference Include="..\libtest_util\libtest_util.vcxproj">
7+ <Project>{1e065f03-3566-47d0-8fa9-daa72b084e7d}</Project>
8+ </ProjectReference>
9 <ProjectReference Include="..\libleveldb\libleveldb.vcxproj">
10 <Project>{18430fef-6b61-4c53-b396-718e02850f1b}</Project>
11 </ProjectReference>
23+ unsigned int sigOpCost;
24+ LockPoints lp;
25+
26+ TestMemPoolEntryHelper() :
27+ nFee(0), nTime(0), nHeight(1),
28+ spendsCoinbase(false), sigOpCost(4) { }
if you retouch
0 CAmount nFee{0};
1 int64_t nTime{0};
2 unsigned int nHeight{1};
3 bool spendsCoinbase{false};
4 unsigned int sigOpCost{4};
5 LockPoints lp;
Co-authored-by: Aurèle Oulès <aurele@oules.com>