Skip to content

Commit

Permalink
Partly fixed simple_node errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanjay176 committed Nov 23, 2017
1 parent 4d9f7dc commit 7ccb5f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions examples/simple_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run_node():

# the first argument should be the node name
try:
nodeName = sys.argv[1]
nodeName = "Alpha"
except IndexError:
names = list(nodeReg.keys())
print("Please supply a node name (one of {}) as the first argument.".
Expand All @@ -50,7 +50,8 @@ def run_node():
# using an ephemeral temporary directory when proving a concept is a
# nice way to keep things tidy.
with TemporaryDirectory() as tmpdir:
node = Node(nodeName, nodeReg, basedirpath=tmpdir)
# node = Node(nodeName, nodeReg, basedirpath=None)
node = Node(nodeName, nodeReg)
node.addGenesisTxns(genesisTxns)
looper.add(node)
node.startKeySharing()
Expand Down
2 changes: 1 addition & 1 deletion indy_node/server/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self,
storage=None,
config=None):
self.config = config or getConfig()

logger.info(basedirpath)
# TODO: 3 ugly lines ahead, don't know how to avoid
# self.stateTreeStore = None
self.idrCache = None
Expand Down
1 change: 0 additions & 1 deletion scripts/init_indy_keys
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ keepDir = os.path.join(config.baseDir, config.NETWORK_NAME)
if __name__ == "__main__":
if not os.path.exists(keepDir):
os.makedirs(keepDir, exist_ok=True)

parser = argparse.ArgumentParser(
description="Generate keys for a node's stacks "
"by taking the node's name and 2 "
Expand Down

0 comments on commit 7ccb5f7

Please sign in to comment.