forked from LBRYCommunity/lbry-sdk
use lbrycrd
This commit is contained in:
parent
568737e123
commit
7b9e3aace9
2 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
|
|
||||||
isLeaf = True
|
isLeaf = True
|
||||||
|
|
||||||
def __init__(self, root, wallet_type=None):
|
def __init__(self, root, wallet_type="lbrycrd"):
|
||||||
jsonrpc.JSONRPC.__init__(self)
|
jsonrpc.JSONRPC.__init__(self)
|
||||||
reactor.addSystemEventTrigger('before', 'shutdown', self._shutdown)
|
reactor.addSystemEventTrigger('before', 'shutdown', self._shutdown)
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ class HostedLBRYFile(resource.Resource):
|
||||||
class LBRYDaemonServer(object):
|
class LBRYDaemonServer(object):
|
||||||
def _setup_server(self, wallet):
|
def _setup_server(self, wallet):
|
||||||
self.root = LBRYindex(os.path.join(os.path.join(data_dir, "lbry-ui"), "active"))
|
self.root = LBRYindex(os.path.join(os.path.join(data_dir, "lbry-ui"), "active"))
|
||||||
self._api = LBRYDaemon(self.root, wallet_type=wallet)
|
self._api = LBRYDaemon(self.root, wallet_type="lbrycrd")
|
||||||
self.root.putChild("view", HostedLBRYFile(self._api))
|
self.root.putChild("view", HostedLBRYFile(self._api))
|
||||||
self.root.putChild(API_ADDRESS, self._api)
|
self.root.putChild(API_ADDRESS, self._api)
|
||||||
return defer.succeed(True)
|
return defer.succeed(True)
|
||||||
|
|
Loading…
Reference in a new issue