forked from LBRYCommunity/lbry-sdk
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:
parent
a86b4c4e58
commit
1a5cd9b062
1 changed files with 1 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue