"bitcoin -server -tesnet" uses ~/.bitcoin/bitcoin.conf instead of ~/.bitcoin/testnet/bitcoin.conf #78

issue molecular opened this issue on February 23, 2011
  1. molecular commented at 12:24 PM on February 23, 2011: none

    to reproduce:

    • make a new user, install bitcoin
    • start "bitcoin -server -testnet" -> it tells you to create configfile in ~/.bitcoin/testnet/bitcoin.conf
    • create ~/.bitcoin/testnet/bitcoin.conf with rpcpassword=xxx
    • start again -> same error
    • mv ~/.bitcoin/testnet/bitcoin.conf ~/.bitcoin/bitcoin.conf
    • start again -> works
  2. gavinandresen commented at 2:26 PM on February 23, 2011: contributor

    The error message needs fixing-- having the bitcoin.conf file in the main datadir (not in the testnet subdir) is the way it is supposed to work.

  3. molecular commented at 2:52 PM on February 23, 2011: none

    ok, but then you can't put rpcport=xzy in bitcoin.conf and run two clients in parallel, right?

  4. gavinandresen commented at 3:29 PM on February 23, 2011: contributor

    Right, you need to specify a different -datadir.

    Changing the default -rpcport if running -testnet is a change that should be made, so you CAN just run bitcoin -testnet without messing with other confusing options.

    So proposed fix would be:

    • change error message
    • change default -testnet rpcport
  5. sgimenez commented at 3:06 PM on June 20, 2011: contributor

    I got the same problem with the latest git version, so I think this issue is not solved.

  6. glv2 referenced this in commit 959b6d089c on Jun 10, 2014
  7. zathras-crypto referenced this in commit 98a5bd6acf on Aug 1, 2014
  8. rdponticelli referenced this in commit 66002cfa87 on Nov 26, 2014
  9. ptschip referenced this in commit 98ea93902f on Aug 19, 2016
  10. core-bitcoin referenced this in commit a004222a1f on Jul 16, 2017
  11. cryptapus referenced this in commit 77efb72973 on Jan 12, 2018
  12. CryptAxe referenced this in commit 9f1b017a79 on Mar 11, 2018
  13. effectsToCause referenced this in commit 62af938e11 on Jun 22, 2018
  14. attilaaf referenced this in commit 3510f7cb9a on Jan 13, 2020
  15. Losangelosgenetics referenced this in commit 4cebff3842 on Mar 12, 2020
  16. rajarshimaitra referenced this in commit 912f586a39 on Aug 5, 2021
  17. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me