Forget about trying to set a label.

Setting a label also sets the account, but the LBRY app
only looks at the default "" account.  Marking the imported
keys would have been nice, but it doesn't work.
This commit is contained in:
Job Evers-Meltzer 2016-07-18 09:14:50 -05:00
parent a86b4c4e58
commit 1a5cd9b062

View file

@ -84,11 +84,8 @@ def saveAddr(wallet, addr, rescan="false"):
is_compressed = lbrycrd.is_compressed(key)
wif = pkeyToWif(pkey, is_compressed)
subprocess.check_call(
['lbrycrd-cli', 'importprivkey', wif, "lbryum import", rescan])
['lbrycrd-cli', 'importprivkey', wif, "", rescan])
validateAddress(addr)
# during the import the account gets set to the label, but lbry
# needs the address to be in the default account
subprocess.check_call(['lbrycrd-cli', 'setaccount', addr, '""'])
def pkeyToWif(pkey, compressed):