Remove CBaseChainParams::NetworkID()#4804
Conversation
src/chainparams.h
Outdated
There was a problem hiding this comment.
(huh I thought I commented this before but I lost my comment)
Don't move this GUI decision to the core code. The GUI needs to be able to make the decision for network-based theming based on some identifier of the chain. If you insist on removing the enumeration you could match on NetworkIDString().
|
@laanwj continuing #4803 discussion here. Not including #4802 anymore: although they don't look like it they're completely independent. I tested the following in this order: Then repeated in the same order and everything looked right. Feel free to propose another testing procedure. |
9fa2c74 to
908358b
Compare
|
@jtimon also test cases like
|
908358b to
3fdb9e8
Compare
|
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4804_3fdb9e8c159a2bc3ac853b469dae9ba0ecf739f3/ for binaries and test log. |
|
Tested regtest and testnet provided in bitcoin.conf and then all 3 modes providing a different datadir in bitcoin.conf. Then I found out that if you set a different dataset as parameter the mode specified in ~/.bitcoin/bitcoin.conf are obviously ignored and set them as parameters. I don't know of nay other combination, but please, let me know if there is. |
|
@TheBlueMatt's nit solved with a fix commit to be squashed on the previous one. |
src/util.cpp
Outdated
There was a problem hiding this comment.
Small readability nit: Instead of having an array here at all, lets
static boost::filesystem::path pathCached;
static boost::filesystem::path pathCachedNetSpecific;
then below
fs::path &path = fNetSpecific ? pathCachedNetSpecific : pathCached;
and
pathCached = boost::filesystem::path();
pathCachedNetSpecific = boost::filesystem::path();
|
@laanwj added you proposed changes to an additional commit to be squashed on the first commit. |
|
Looks good to me now. Going to test. |
|
Выглядит хорошо для меня сейчас. Собираюсь проверить. 2014-10-13 15:31 GMT+04:00 Wladimir J. van der Laan <
|
|
-----BEGIN PGP SIGNED MESSAGE----- Tested ACK Commithash ebdb9ff iQIcBAEBAgAGBQJUP29AAAoJEIm7uGY+LmXOmOMP/jIr1xBZkcgYatiWw5QEdCM1 |
src/chainparams.cpp
Outdated
There was a problem hiding this comment.
Actually, wait...you have an extra space at the end of this line...
|
@TheBlueMatt you forgot to write it in Russian :) Tested ACK. |
|
@TheBlueMatt 's nit solved |
Remove CBaseChainParams::NetworkID()
Continues #4802 andIncludes and closes #4803Completes the set of PRs #3823 #3824 #4333 #4801 #4802 #4803