Skip to content

Commit

Permalink
fix config creation
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Feb 27, 2017
1 parent 798dbcb commit 423f4e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions pacli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ def first_run():
def set_up(provider):
'''setup'''

first_run() # check if this is first run first

# check if provider is working as expected
assert provider.getinfo()["connections"] > 0, {"error": "Not connected to network."}
# check if PA P2TH is loaded in local node
Expand Down Expand Up @@ -393,6 +391,7 @@ def cli():

def main():

first_run()
load_conf()
provider = pa.RpcNode(testnet=Settings.testnet)
set_up(provider)
Expand Down
1 change: 1 addition & 0 deletions pacli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from .default_conf import default_conf

def write_default_config(conf_file):
print("writing default config")
config = configparser.ConfigParser()
config["settings"] = default_conf
with open(conf_file, 'w') as configfile:
Expand Down

0 comments on commit 423f4e4

Please sign in to comment.