From 1a5cd9b06241e3b05fa386b96c4432207027ac20 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Mon, 18 Jul 2016 09:14:50 -0500 Subject: [PATCH] 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. --- scripts/migrate_lbryum_to_lbrycrd.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/migrate_lbryum_to_lbrycrd.py b/scripts/migrate_lbryum_to_lbrycrd.py index da49bd7dd..fdafacd6e 100644 --- a/scripts/migrate_lbryum_to_lbrycrd.py +++ b/scripts/migrate_lbryum_to_lbrycrd.py @@ -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):