Skip to content

Conversation

@jtimon
Copy link
Contributor

@jtimon jtimon commented Aug 31, 2014

Continues #4802 and Includes and closes #4803
Completes the set of PRs #3823 #3824 #4333 #4801 #4802 #4803

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(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().

@jtimon
Copy link
Contributor Author

jtimon commented Sep 1, 2014

@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:

./bitcoind -debug -printtoconsole
./bitcoind -testnet -debug -printtoconsole
./bitcoind -regtest -gen=1 -genproclimit=5 -debug -printtoconsole
./qt/bitcoin-qt -debug -printtoconsole
./qt/bitcoin-qt -testnet -debug -printtoconsole
./qt/bitcoin-qt -regtest -gen=1 -genproclimit=5 -debug -printtoconsole

Then repeated in the same order and everything looked right. Feel free to propose another testing procedure.

@laanwj
Copy link
Member

laanwj commented Sep 15, 2014

@jtimon also test cases like

  • -regtest is provided in bitcoin.conf
  • -datadir is provided in bitcoin.conf

@BitcoinPullTester
Copy link

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4804_3fdb9e8c159a2bc3ac853b469dae9ba0ecf739f3/ for binaries and test log.
This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/
Contact BlueMatt on freenode if something looks broken.

@jtimon
Copy link
Contributor Author

jtimon commented Sep 23, 2014

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.

@jtimon
Copy link
Contributor Author

jtimon commented Oct 9, 2014

@TheBlueMatt's nit solved with a fix commit to be squashed on the previous one.

src/util.cpp Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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();

@jtimon
Copy link
Contributor Author

jtimon commented Oct 11, 2014

@laanwj added you proposed changes to an additional commit to be squashed on the first commit.

@laanwj
Copy link
Member

laanwj commented Oct 13, 2014

Looks good to me now. Going to test.

@makhmet
Copy link

makhmet commented Oct 13, 2014

Выглядит хорошо для меня сейчас. Собираюсь проверить.

2014-10-13 15:31 GMT+04:00 Wladimir J. van der Laan <
[email protected]>:

Looks good to me now. Going to test.


Reply to this email directly or view it on GitHub
#4804 (comment).

@TheBlueMatt
Copy link
Contributor

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tested ACK Commithash ebdb9ff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJUP29AAAoJEIm7uGY+LmXOmOMP/jIr1xBZkcgYatiWw5QEdCM1
yI1fyXK9mo/ro6F623PcWMKvA6jDvVQe5N2HhjaGL0DC4oows/8lvUrQEq2yib1g
vKsQbZaN2gUP2figToeu1Soz8++kALeU9cTPCA7xAJL8zqM4dmftS0LTgt//q3rN
6kbEpnURfbOygsCN61+/VgfOSpZU39iOZ0xdntzdSMl/omcQMbPRgP21VmmoE5ue
xk/kUhwSUsa3YMN774sSAiYW8Oixpda0CoEeDzRcew8ecQqIh7DPyJWzdzaVX9V7
Ty7aNT6EJ6cBuRX1EvXEtdDfz1JeXyGPHUxucI5uHsPc8g6CmHINgtP40rq84qNK
+nO3tyXoU+io6e+1ZlLPf50Uzij2D4h2r+fO3bQz99P2lCvcGx/9/9W0oL7R5all
IKFPJt3MdZu+jPfMjdKcVLzrwpnjVbAqfmg1YOc12HB1bS/iQtlqr/qB+zszycLs
x4CbMPy81P5oV2pEQGujWw+s8VKGrPskhgLTLxcWni/bKDru4DjZyZOqswat0AeO
dNTwd7Tbjsc93w4edDnfkLraqjVPUtFBLaPsfgsOHYcLT2EwqO9GFmN/zo9HbHCb
cBvK2xSUNhtKXb5oUSGNkXHUO9igj3fY5MQ0aLAzfySwdjafNdMcXDWBHv/rsJKl
Cbh5s0wj5fTsUwl3s4cu
=ppDu
-----END PGP SIGNATURE-----

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, wait...you have an extra space at the end of this line...

@laanwj
Copy link
Member

laanwj commented Oct 16, 2014

@TheBlueMatt you forgot to write it in Russian :)

Tested ACK.

@jtimon
Copy link
Contributor Author

jtimon commented Oct 16, 2014

@TheBlueMatt 's nit solved

laanwj added a commit that referenced this pull request Oct 17, 2014
Remove CBaseChainParams::NetworkID()
@laanwj laanwj merged commit 494ff05 into bitcoin:master Oct 17, 2014
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants