I've checked it several times, so there is very little chance that I've made a mistake.
It's very strange, as there is no apparent difference between the content of those files.
But this might be some Windows-related issue.
I had these kind of issues as well .. do you have a CLEAN repository? Cmake creates some temporary files that WILL screw things up.
make clean
find . -name "CMakeCache.txt" | xargs rm -f
find . -name "CMakeFiles" | xargs rm -Rf
cmake -DCMAKE_BUILD_TYPE=Release .
I'll try with "make clean".
But the symptoms I have, do not indicate that Cmake is the culprit:
(a) When I clear the witness folders (i.e.
witness_node_data_dir &
object_database) and run:
witness_node --genesis-json zip-genesis.json
(where the
zip-genesis.json file originates from
the github zip)
everything is fine, I get the correct blockchain id.
(b) When I clear the witness folders (i.e.
witness_node_data_dir &
object_database) and run the same witness:
witness_node --genesis-json git-genesis.json
(where the
git-genesis.json file originates from
cloning the github repo)
I get a different blockchain id.
So I use the same compilation of witness node, just "different"
genesis.json files (though their content is the same) and, as a result, the blockchain ids are different.
There must be some difference between those files but I'm not able to determine this difference.