1
0

Merge exchange_rate plugin with main code

* fixes #2037 (tab indexes)
This commit is contained in:
ThomasV
2017-01-03 09:02:26 +01:00
parent 21e3bb7939
commit 13678d9e13
12 changed files with 246 additions and 365 deletions

View File

@@ -39,6 +39,7 @@ from wallet import WalletStorage, Wallet
from commands import known_commands, Commands
from simple_config import SimpleConfig
from plugins import run_hook
from exchange_rate import FxThread
def get_lockfile(config):
return os.path.join(config.path, 'daemon')
@@ -100,14 +101,17 @@ class RequestHandler(SimpleJSONRPCRequestHandler):
class Daemon(DaemonThread):
def __init__(self, config, fd):
DaemonThread.__init__(self)
self.config = config
if config.get('offline'):
self.network = None
self.fx = None
else:
self.network = Network(config)
self.network.start()
self.fx = FxThread(config, self.network)
self.network.add_jobs([self.fx])
self.gui = None
self.wallets = {}
# Setup JSONRPC server