Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jessopb committed Oct 10, 2022
1 parent 874fa24 commit 9b8ae51
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lbry/extras/daemon/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,6 @@ async def jsonrpc_wallet_export(self, password=None, wallet_id=None):
(str) data
"""
# assert password is not None, "passwordless use is not implemented yet"
wallet = self.wallet_manager.get_wallet_or_default(wallet_id)
if (password is None):
return wallet.pack()
Expand All @@ -1355,9 +1354,9 @@ async def jsonrpc_wallet_export(self, password=None, wallet_id=None):
@requires("wallet")
async def jsonrpc_wallet_import(self, data, password=None, wallet_id=None, blocking=False):
"""
Import wallet data and merge accounts, preferences.
Import wallet data and merge accounts and preferences.
Wallet must be unlocked to perform this operation.
Wallet must be unlocked to perform this operation. Data is expected to be JSON if password is not supplied.
Usage:
wallet_import (<data> | --data=<data>) [<password> | --password=<password>]
Expand All @@ -1372,7 +1371,7 @@ async def jsonrpc_wallet_import(self, data, password=None, wallet_id=None, block
Returns:
(str) data
"""
# assert not data.strip().startswith("{"), "unencrypted wallet import is not implemented yet"

wallet = self.wallet_manager.get_wallet_or_default(wallet_id)
added_accounts, merged_accounts = wallet.merge(self.wallet_manager, password, data)
for new_account in itertools.chain(added_accounts, merged_accounts):
Expand Down

0 comments on commit 9b8ae51

Please sign in to comment.