bugfix: signmessage expects 2 arguments. check for them.

This commit is contained in:
Amir Taaki 2012-07-17 22:53:06 +02:00
parent e6965ef32c
commit fd8af94419
1 changed files with 4 additions and 0 deletions

View File

@ -491,6 +491,10 @@ if __name__ == '__main__':
wallet.update_password(seed, password, new_password)
elif cmd == 'signmessage':
if len(args) < 3:
print_error("Error: Invalid usage of signmessage.")
print known_commands[cmd]
sys.exit(1)
address = args[1]
message = ' '.join(args[2:])
if len(args) > 3: