friendlier prompting in namespace preorder, plus regtest command instructions in the testing README

This commit is contained in:
Aaron Blankstein
2017-10-10 11:55:09 -04:00
parent 2cbd672472
commit be573b0441
2 changed files with 47 additions and 3 deletions

View File

@@ -2947,9 +2947,9 @@ def cli_namespace_preorder(args, config_path=CONFIG_PATH, interactive=True, prox
"Full cost breakdown:\n",
"{}".format(json.dumps(fees, indent=4, sort_keys=True))
])
print(msg)
prompts = [
"I acknowledge that I have read and understood the above instructions (yes/no) ",
"I acknowledge that this will cost {} BTC or more (yes/no) ".format(fees['total_estimated_cost']['btc']),
@@ -2961,7 +2961,7 @@ def cli_namespace_preorder(args, config_path=CONFIG_PATH, interactive=True, prox
for prompt in prompts:
while True:
if interactive:
proceed = raw_input("I acknowledge that I have read the above instructions. (yes/No) ")
proceed = raw_input(prompt)
else:
proceed = 'yes'