-
Pascal123
good night
-
-
-
DonW16[m]
Good morning guys, after further testing I can confirm that when compiling the Monero source code the release version of the build provides the tests however the debug version of the build does not, can I make changes to the tests README.md so this makes more sense?
-
DonW16[m]
I compiled the source code with the following commands
-
DonW16[m]
make and make debug
-
moneromooo
Looks like a bug then, neither should build the tests.
-
moneromooo
Were these in clean trees ? If not, cmake will cache stuff.
-
moneromooo
cmake can be annoying in what it caches.
-
DonW16[m]
Hey moneromooo
-
DonW16[m]
What do you mean clean trees? Thanks
-
DonW16[m]
I've followed the compile from source instructions the only difference I've done is create my own branch for changes.
-
DonW16[m]
How do you clean the cache for cmake?
-
moneromooo
I mean without a build tree ,which is where cmake caches its stuff.
-
moneromooo
make clean would clean a tree. Or rm -fr build.
-
moneromooo
I just looked at the Makefile, this is expected.
-
moneromooo
The default is to build everything.
-
DonW16[m]
I've cleaned the build tree and the bug is reproduced.
-
DonW16[m]
option(BUILD_TESTS "Build tests." OFF) should this be changed to ON?
-
moneromooo
If you can make a good argument that it should be.
-
moneromooo
If the default is arbitrary, it should be left as is, to avoid confusing people and/or needing to change stuff that already works.
-
moneromooo
Also, if you problem is simply that you want to build tests wihtout debug flags, you can use make release-test.
-
moneromooo
Or make release.
-
moneromooo
I think. Lemme check acrually...
-
moneromooo
Yes. release-test (though it will try to run the tests, you'll need to ^C if you don't want that).
-
DonW16[m]
Can I update the README.md within the tests folder so it reflects what you've just said? At the moment it does not reflect that and is confusing.
-
moneromooo
Sure.
-
DonW16[m]
Thx for the help :)
-
Pascal123
hello ....
-
Pascal123
for experiments i suppose its easier to make requeststo daemon, too...
-
Pascal123
but i encounter q question:
pastebin.com/5mnuBsG6 is the miner_tx_hash the same as merkle root ?
-
sech1
No, it's the hash of miner transaction. Merkle root is the root hash of all transactions in the block (arranged in a tree)
-
Pascal123
ah ok, could i use the merkle root function of bitcoin, for calculating the hash or is it different from monero
-
Pascal123
?
-
Pascal123
do i need to hash the result of transaction tree with cryptonote or is the data ready to use after creating merkle root ?
-
sech1
No you can't use bitcoin code for Monero
-
sech1
check src/crypto/tree-hash.c
-
sech1
you need "tree_hash" function
-
sech1
cn_fast_hash = keccak
-
Pascal123
ok sech1, thank you
-
Pascal123
:)
-
plowsof11
vtnerds ccs proposal is up (pending rendered markdown from the description)
repo.getmonero.org/monero-project/c…roposals/-/merge_requests/391/diffs