rename scribe.hub -> hub.herald
This commit is contained in:
parent
0da235bceb
commit
060e423707
10 changed files with 14 additions and 14 deletions
|
@ -3,8 +3,8 @@ import logging
|
||||||
import traceback
|
import traceback
|
||||||
import argparse
|
import argparse
|
||||||
from hub.common import setup_logging
|
from hub.common import setup_logging
|
||||||
from hub.hub.env import ServerEnv
|
from hub.herald.env import ServerEnv
|
||||||
from hub.hub.service import HubServerService
|
from hub.herald.service import HubServerService
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
|
@ -7,7 +7,7 @@ from asyncio import Event
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from numbers import Number
|
from numbers import Number
|
||||||
from hub.common import RPCError, CodeMessageError
|
from hub.common import RPCError, CodeMessageError
|
||||||
from hub.hub.common import Notification, Request, Response, Batch, ProtocolError
|
from hub.herald.common import Notification, Request, Response, Batch, ProtocolError
|
||||||
|
|
||||||
|
|
||||||
class JSONRPC:
|
class JSONRPC:
|
|
@ -12,7 +12,7 @@ from hub.db.common import UTXO
|
||||||
from hub.scribe.transaction.deserializer import Deserializer
|
from hub.scribe.transaction.deserializer import Deserializer
|
||||||
|
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from hub.hub.session import SessionManager
|
from hub.herald.session import SessionManager
|
||||||
from hub.db import HubDB
|
from hub.db import HubDB
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,13 @@ import time
|
||||||
import typing
|
import typing
|
||||||
import asyncio
|
import asyncio
|
||||||
from hub.scribe.daemon import LBCDaemon
|
from hub.scribe.daemon import LBCDaemon
|
||||||
from hub.hub.session import SessionManager
|
from hub.herald.session import SessionManager
|
||||||
from hub.hub.mempool import HubMemPool
|
from hub.herald.mempool import HubMemPool
|
||||||
from hub.hub.udp import StatusServer
|
from hub.herald.udp import StatusServer
|
||||||
from hub.service import BlockchainReaderService
|
from hub.service import BlockchainReaderService
|
||||||
from hub.elasticsearch import ElasticNotifierClientProtocol
|
from hub.elasticsearch import ElasticNotifierClientProtocol
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from hub.hub.env import ServerEnv
|
from hub.herald.env import ServerEnv
|
||||||
|
|
||||||
|
|
||||||
class HubServerService(BlockchainReaderService):
|
class HubServerService(BlockchainReaderService):
|
|
@ -18,19 +18,19 @@ from prometheus_client import Counter, Info, Histogram, Gauge
|
||||||
from hub.schema.result import Outputs
|
from hub.schema.result import Outputs
|
||||||
from hub.error import ResolveCensoredError, TooManyClaimSearchParametersError
|
from hub.error import ResolveCensoredError, TooManyClaimSearchParametersError
|
||||||
from hub import __version__, PROMETHEUS_NAMESPACE
|
from hub import __version__, PROMETHEUS_NAMESPACE
|
||||||
from hub.hub import PROTOCOL_MIN, PROTOCOL_MAX, HUB_PROTOCOL_VERSION
|
from hub.herald import PROTOCOL_MIN, PROTOCOL_MAX, HUB_PROTOCOL_VERSION
|
||||||
from hub.build_info import BUILD, COMMIT_HASH, DOCKER_TAG
|
from hub.build_info import BUILD, COMMIT_HASH, DOCKER_TAG
|
||||||
from hub.elasticsearch import SearchIndex
|
from hub.elasticsearch import SearchIndex
|
||||||
from hub.common import sha256, hash_to_hex_str, hex_str_to_hash, HASHX_LEN, version_string, formatted_time
|
from hub.common import sha256, hash_to_hex_str, hex_str_to_hash, HASHX_LEN, version_string, formatted_time
|
||||||
from hub.common import protocol_version, RPCError, DaemonError, TaskGroup, HISTOGRAM_BUCKETS
|
from hub.common import protocol_version, RPCError, DaemonError, TaskGroup, HISTOGRAM_BUCKETS
|
||||||
from hub.hub.jsonrpc import JSONRPCAutoDetect, JSONRPCConnection, JSONRPCv2, JSONRPC
|
from hub.herald.jsonrpc import JSONRPCAutoDetect, JSONRPCConnection, JSONRPCv2, JSONRPC
|
||||||
from hub.hub.common import BatchRequest, ProtocolError, Request, Batch, Notification
|
from hub.herald.common import BatchRequest, ProtocolError, Request, Batch, Notification
|
||||||
from hub.hub.framer import NewlineFramer
|
from hub.herald.framer import NewlineFramer
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from hub.db import HubDB
|
from hub.db import HubDB
|
||||||
from hub.hub.env import ServerEnv
|
from hub.herald.env import ServerEnv
|
||||||
from hub.scribe.daemon import LBCDaemon
|
from hub.scribe.daemon import LBCDaemon
|
||||||
from hub.hub.mempool import HubMemPool
|
from hub.herald.mempool import HubMemPool
|
||||||
|
|
||||||
BAD_REQUEST = 1
|
BAD_REQUEST = 1
|
||||||
DAEMON_ERROR = 2
|
DAEMON_ERROR = 2
|
Loading…
Reference in a new issue