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:
test/util_tests.cpp: In member function ‘void util_tests::util_seed_insecure_rand::test_method()’:
test/util_tests.cpp:1441:33: error: ‘sqrt’ was not declared in this scope
1441 | int err = 30*10000./mod*sqrt((1./mod*(1-1./mod))/10000.);
| ^~~~
make[2]: *** [Makefile:18499: test/test_bitcoin-util_tests.o] Error 1
Concept ACK.
I can reduce the fuzz compile time (user+kernel time) by 20% with a dirty txmempool.h. To reproduce:
( echo >> ./src/txmempool.h ) && /usr/bin/time --format '%U+%S (%e)' make -j $(nproc)
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
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.
Concept ACK
Does anyone know why msvc is unable to link this?
Does anyone know why msvc is unable to link this? @sipsorcery @hebasto any thoughts?
Does anyone know why msvc is unable to link this?
--- a/build_msvc/test_bitcoin-qt/test_bitcoin-qt.vcxproj
+++ b/build_msvc/test_bitcoin-qt/test_bitcoin-qt.vcxproj
@@ -54,6 +54,9 @@
<ProjectReference Include="..\libbitcoin_zmq\libbitcoin_zmq.vcxproj">
<Project>{792d487f-f14c-49fc-a9de-3fc150f31c3f}</Project>
</ProjectReference>
+ <ProjectReference Include="..\libtest_util\libtest_util.vcxproj">
+ <Project>{1e065f03-3566-47d0-8fa9-daa72b084e7d}</Project>
+ </ProjectReference>
<ProjectReference Include="..\libleveldb\libleveldb.vcxproj">
<Project>{18430fef-6b61-4c53-b396-718e02850f1b}</Project>
</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
CAmount nFee{0};
int64_t nTime{0};
unsigned int nHeight{1};
bool spendsCoinbase{false};
unsigned int sigOpCost{4};
LockPoints lp;
ACK fad7f2239c74a4db31b3023f2bcaf1f0852453f8
Co-authored-by: Aurèle Oulès <aurele@oules.com>
reACK 1c48dae76fc808bf7154aca976e7303364c56509 Thanks for the co-author.
ACK 1c48dae76fc808bf7154aca976e7303364c56509, I have reviewed the code and it looks OK, I agree it can be merged.