--wallet fix
This commit is contained in:
parent
f50c98e10d
commit
104cafedb0
4 changed files with 12 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from lbrynet.lbrynet_console.plugins.LBRYLive.LBRYLiveStreamDownloader import LBRYLiveStreamDownloader
|
from lbrynet.lbrylive.client.LiveStreamDownloader import LBRYLiveStreamDownloader
|
||||||
from lbrynet.core.BlobManager import TempBlobManager
|
from lbrynet.core.BlobManager import TempBlobManager
|
||||||
from lbrynet.core.Session import LBRYSession
|
from lbrynet.core.Session import LBRYSession
|
||||||
from lbrynet.core.client.StandaloneBlobDownloader import StandaloneBlobDownloader
|
from lbrynet.core.client.StandaloneBlobDownloader import StandaloneBlobDownloader
|
||||||
|
|
|
@ -131,7 +131,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
|
|
||||||
isLeaf = True
|
isLeaf = True
|
||||||
|
|
||||||
def __init__(self, root, wallet_type=DEFAULT_WALLET):
|
def __init__(self, root, wallet_type=None):
|
||||||
jsonrpc.JSONRPC.__init__(self)
|
jsonrpc.JSONRPC.__init__(self)
|
||||||
reactor.addSystemEventTrigger('before', 'shutdown', self._shutdown)
|
reactor.addSystemEventTrigger('before', 'shutdown', self._shutdown)
|
||||||
|
|
||||||
|
@ -250,7 +250,13 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
self.search_timeout = self.session_settings['search_timeout']
|
self.search_timeout = self.session_settings['search_timeout']
|
||||||
self.download_timeout = self.session_settings['download_timeout']
|
self.download_timeout = self.session_settings['download_timeout']
|
||||||
self.max_search_results = self.session_settings['max_search_results']
|
self.max_search_results = self.session_settings['max_search_results']
|
||||||
self.wallet_type = self.session_settings['wallet_type'] if self.session_settings['wallet_type'] in WALLET_TYPES else wallet_type
|
if self.session_settings['wallet_type'] in WALLET_TYPES and not wallet_type:
|
||||||
|
self.wallet_type = self.session_settings['wallet_type']
|
||||||
|
log.info("Using wallet type %s from config" % self.wallet_type)
|
||||||
|
else:
|
||||||
|
self.wallet_type = wallet_type
|
||||||
|
self.session_settings['wallet_type'] = wallet_type
|
||||||
|
log.info("Using wallet type %s specified from command line" % self.wallet_type)
|
||||||
self.delete_blobs_on_remove = self.session_settings['delete_blobs_on_remove']
|
self.delete_blobs_on_remove = self.session_settings['delete_blobs_on_remove']
|
||||||
self.peer_port = self.session_settings['peer_port']
|
self.peer_port = self.session_settings['peer_port']
|
||||||
self.dht_node_port = self.session_settings['dht_node_port']
|
self.dht_node_port = self.session_settings['dht_node_port']
|
||||||
|
|
|
@ -64,7 +64,7 @@ def start():
|
||||||
parser.add_argument("--wallet",
|
parser.add_argument("--wallet",
|
||||||
help="lbrycrd or lbryum, default lbryum",
|
help="lbrycrd or lbryum, default lbryum",
|
||||||
type=str,
|
type=str,
|
||||||
default=DEFAULT_WALLET)
|
default='')
|
||||||
parser.add_argument("--ui",
|
parser.add_argument("--ui",
|
||||||
help="path to custom UI folder",
|
help="path to custom UI folder",
|
||||||
default=None)
|
default=None)
|
||||||
|
|
|
@ -198,7 +198,7 @@ class LBRYDaemonServer(object):
|
||||||
self.root.putChild(API_ADDRESS, self._api)
|
self.root.putChild(API_ADDRESS, self._api)
|
||||||
return defer.succeed(True)
|
return defer.succeed(True)
|
||||||
|
|
||||||
def start(self, branch=DEFAULT_UI_BRANCH, user_specified=False, branch_specified=False, wallet=DEFAULT_WALLET):
|
def start(self, branch=DEFAULT_UI_BRANCH, user_specified=False, branch_specified=False, wallet=None):
|
||||||
d = self._setup_server(self._setup_server(wallet))
|
d = self._setup_server(wallet)
|
||||||
d.addCallback(lambda _: self._api.setup(branch, user_specified, branch_specified))
|
d.addCallback(lambda _: self._api.setup(branch, user_specified, branch_specified))
|
||||||
return d
|
return d
|
||||||
|
|
Loading…
Reference in a new issue