Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: testnet datadir could not be created first #3513

Merged
merged 1 commit into from
Dec 13, 2017

Conversation

SomberNight
Copy link
Member

see #3111

Electrum could only start in testnet mode if it had already started in mainnet mode before (so that it created the parent folder of the datadir already).

$ ./electrum -v --testnet
Traceback (most recent call last):
  File "./electrum", line 360, in <module>
    config = SimpleConfig(config_options)
  File "/home/user/wspace/electrum/lib/simple_config.py", line 74, in __init__
    self.path = self.electrum_path()
  File "/home/user/wspace/electrum/lib/simple_config.py", line 95, in electrum_path
    os.mkdir(path)
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/.electrum/testnet'
$ ./electrum -v --testnet --dir=tmp
Traceback (most recent call last):
  File "./electrum", line 360, in <module>
    config = SimpleConfig(config_options)
  File "/home/user/wspace/electrum/lib/simple_config.py", line 74, in __init__
    self.path = self.electrum_path()
  File "/home/user/wspace/electrum/lib/simple_config.py", line 95, in electrum_path
    os.mkdir(path)
FileNotFoundError: [Errno 2] No such file or directory: 'tmp/testnet'

@coveralls
Copy link

coveralls commented Dec 13, 2017

Coverage Status

Coverage increased (+0.007%) to 42.76% when pulling 650f504 on SomberNight:make_dir_testnet into b786249 on spesmilo:master.

@ecdsa ecdsa merged commit 92ebf97 into spesmilo:master Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants