fixed vanity not working and added integration test for it

This commit is contained in:
Kevin Froman 2020-02-22 05:44:21 -06:00
parent 6b5e6a9ad0
commit 34a55f63f9
5 changed files with 49 additions and 3 deletions

View file

@ -148,7 +148,7 @@ def add_vanity():
else:
b32_pub = unpaddedbase32.b32encode(vanity[0])
tell('Found vanity address:\n' +
niceware.bytes_to_passphrase(vanity[0]))
'-'.join(niceware.bytes_to_passphrase(vanity[0])))
tell('Base32 Public key: %s' % (b32_pub.decode(),))
key_manager.addKey(b32_pub, unpaddedbase32.b32encode(vanity[1]))
except KeyboardInterrupt: