We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adf0b3c commit b4d0f67Copy full SHA for b4d0f67
1 file changed
chainCtr
@@ -262,22 +262,22 @@ def handle_init(argv):
262
def handle_stop(argv):
263
path = '/var/local/peersafe/chainsqld'
264
if len(argv) > 2:
265
+ stop_local = False
266
+
267
for idx in range(2, len(argv)):
268
if argv[idx] == '--fake':
269
for i in range(4):
270
rpath = '%s/%d' %(path, i)
271
os.chdir(rpath)
272
unit.stop_chainsqld()
- else:
- stop_local = False
273
- for idx in range(2, len(argv)):
274
if argv[idx] == '--local':
275
stop_local = True
276
- if stop_local == True:
277
- os.chdir(path)
278
- unit.stop_chainsqld()
279
280
- join.stop()
+ if stop_local == True:
+ os.chdir(path)
+ unit.stop_chainsqld()
+ else:
+ join.stop()
281
282
def handle_commands(argv):
283
cmd = argv[1]
0 commit comments