Env->ServerEnv from scribe changes

This commit is contained in:
Victor Shyba 2022-05-06 04:32:35 -03:00 committed by Jack Robison
parent 7a8d5da0e8
commit 0ea8ba72dd
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -17,8 +17,9 @@ from typing import Type, Optional
import urllib.request import urllib.request
from uuid import uuid4 from uuid import uuid4
try: try:
from scribe.env import Env from scribe.hub.env import ServerEnv
from scribe.hub.service import HubServerService from scribe.hub.service import HubServerService
from scribe.elasticsearch.service import ElasticSyncService from scribe.elasticsearch.service import ElasticSyncService
from scribe.blockchain.service import BlockchainProcessorService from scribe.blockchain.service import BlockchainProcessorService
@ -260,7 +261,7 @@ class SPVNode:
} }
if extraconf: if extraconf:
conf.update(extraconf) conf.update(extraconf)
env = Env(**conf) env = ServerEnv(**conf)
self.writer = BlockchainProcessorService(env) self.writer = BlockchainProcessorService(env)
self.server = HubServerService(env) self.server = HubServerService(env)
self.es_writer = ElasticSyncService(env) self.es_writer = ElasticSyncService(env)