switch component wallet to use the new wallet

This commit is contained in:
Lex Berezhny 2018-07-05 16:30:05 -04:00 committed by Jack Robison
parent 69446491b8
commit f2f212edba
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -14,7 +14,7 @@ from lbrynet.core.PaymentRateManager import OnlyFreePaymentsManager
from lbrynet.core.RateLimiter import RateLimiter from lbrynet.core.RateLimiter import RateLimiter
from lbrynet.core.BlobManager import DiskBlobManager from lbrynet.core.BlobManager import DiskBlobManager
from lbrynet.core.StreamDescriptor import StreamDescriptorIdentifier, EncryptedFileStreamType from lbrynet.core.StreamDescriptor import StreamDescriptorIdentifier, EncryptedFileStreamType
from lbrynet.core.Wallet import LBRYumWallet from lbrynet.wallet.manager import LbryWalletManager
from lbrynet.core.server.BlobRequestHandler import BlobRequestHandlerFactory from lbrynet.core.server.BlobRequestHandler import BlobRequestHandlerFactory
from lbrynet.core.server.ServerProtocol import ServerProtocolFactory from lbrynet.core.server.ServerProtocol import ServerProtocolFactory
from lbrynet.daemon.Component import Component from lbrynet.daemon.Component import Component
@ -330,8 +330,8 @@ class WalletComponent(Component):
@defer.inlineCallbacks @defer.inlineCallbacks
def start(self): def start(self):
storage = self.component_manager.get_component(DATABASE_COMPONENT) storage = self.component_manager.get_component(DATABASE_COMPONENT)
config = get_wallet_config() lbryschema.BLOCKCHAIN_NAME = conf.settings['blockchain_name']
self.wallet = LBRYumWallet(storage, config) self.wallet = LbryWalletManager.from_old_config(conf.settings)
yield self.wallet.start() yield self.wallet.start()
@defer.inlineCallbacks @defer.inlineCallbacks