rename scribe.blockchain -> hub.scribe
This commit is contained in:
parent
27e09d7aa7
commit
0da235bceb
17 changed files with 23 additions and 23 deletions
|
@ -1 +0,0 @@
|
||||||
from hub.blockchain.network import LBCTestNet, LBCRegTest, LBCMainNet
|
|
|
@ -17,7 +17,7 @@ from hub.error import ResolveCensoredError
|
||||||
from hub.schema.url import URL, normalize_name
|
from hub.schema.url import URL, normalize_name
|
||||||
from hub.schema.claim import guess_stream_type
|
from hub.schema.claim import guess_stream_type
|
||||||
from hub.schema.result import Censor
|
from hub.schema.result import Censor
|
||||||
from hub.blockchain.transaction import TxInput
|
from hub.scribe.transaction import TxInput
|
||||||
from hub.common import hash_to_hex_str, hash160, LRUCacheWithMetrics, sha256
|
from hub.common import hash_to_hex_str, hash160, LRUCacheWithMetrics, sha256
|
||||||
from hub.db.merkle import Merkle, MerkleCache, FastMerkleCacheItem
|
from hub.db.merkle import Merkle, MerkleCache, FastMerkleCacheItem
|
||||||
from hub.db.common import ResolveResult, STREAM_TYPES, CLAIM_TYPES, ExpandedResolveResult, DBError, UTXO
|
from hub.db.common import ResolveResult, STREAM_TYPES, CLAIM_TYPES, ExpandedResolveResult, DBError, UTXO
|
||||||
|
|
|
@ -3,7 +3,7 @@ import re
|
||||||
import resource
|
import resource
|
||||||
import logging
|
import logging
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from hub.blockchain.network import LBCMainNet, LBCTestNet, LBCRegTest
|
from hub.scribe.network import LBCMainNet, LBCTestNet, LBCRegTest
|
||||||
|
|
||||||
|
|
||||||
NetIdentity = namedtuple('NetIdentity', 'host tcp_port ssl_port nick_suffix')
|
NetIdentity = namedtuple('NetIdentity', 'host tcp_port ssl_port nick_suffix')
|
||||||
|
|
|
@ -9,7 +9,7 @@ import rocksdb.errors
|
||||||
from hub import PROMETHEUS_NAMESPACE
|
from hub import PROMETHEUS_NAMESPACE
|
||||||
from hub.common import HISTOGRAM_BUCKETS
|
from hub.common import HISTOGRAM_BUCKETS
|
||||||
from hub.db.common import UTXO
|
from hub.db.common import UTXO
|
||||||
from hub.blockchain.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.hub.session import SessionManager
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import time
|
import time
|
||||||
import typing
|
import typing
|
||||||
import asyncio
|
import asyncio
|
||||||
from hub.blockchain.daemon import LBCDaemon
|
from hub.scribe.daemon import LBCDaemon
|
||||||
from hub.hub.session import SessionManager
|
from hub.hub.session import SessionManager
|
||||||
from hub.hub.mempool import HubMemPool
|
from hub.hub.mempool import HubMemPool
|
||||||
from hub.hub.udp import StatusServer
|
from hub.hub.udp import StatusServer
|
||||||
|
|
|
@ -29,7 +29,7 @@ from hub.hub.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.hub.env import ServerEnv
|
||||||
from hub.blockchain.daemon import LBCDaemon
|
from hub.scribe.daemon import LBCDaemon
|
||||||
from hub.hub.mempool import HubMemPool
|
from hub.hub.mempool import HubMemPool
|
||||||
|
|
||||||
BAD_REQUEST = 1
|
BAD_REQUEST = 1
|
||||||
|
|
1
hub/scribe/__init__.py
Normal file
1
hub/scribe/__init__.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
from hub.scribe.network import LBCTestNet, LBCRegTest, LBCMainNet
|
|
@ -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.blockchain.env import BlockchainEnv
|
from hub.scribe.env import BlockchainEnv
|
||||||
from hub.blockchain.service import BlockchainProcessorService
|
from hub.scribe.service import BlockchainProcessorService
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
|
@ -2,7 +2,7 @@ import itertools
|
||||||
import attr
|
import attr
|
||||||
import typing
|
import typing
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from hub.blockchain.transaction.deserializer import Deserializer
|
from hub.scribe.transaction.deserializer import Deserializer
|
||||||
|
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from hub.db import HubDB
|
from hub.db import HubDB
|
|
@ -7,9 +7,9 @@ from decimal import Decimal
|
||||||
from hub.schema.base58 import Base58
|
from hub.schema.base58 import Base58
|
||||||
from hub.schema.bip32 import PublicKey
|
from hub.schema.bip32 import PublicKey
|
||||||
from hub.common import hash160, hash_to_hex_str, double_sha256
|
from hub.common import hash160, hash_to_hex_str, double_sha256
|
||||||
from hub.blockchain.transaction import TxOutput, TxInput, Block
|
from hub.scribe.transaction import TxOutput, TxInput, Block
|
||||||
from hub.blockchain.transaction.deserializer import Deserializer
|
from hub.scribe.transaction.deserializer import Deserializer
|
||||||
from hub.blockchain.transaction.script import OpCodes, P2PKH_script, P2SH_script, txo_script_parser
|
from hub.scribe.transaction.script import OpCodes, P2PKH_script, P2SH_script, txo_script_parser
|
||||||
|
|
||||||
|
|
||||||
HASHX_LEN = 11
|
HASHX_LEN = 11
|
|
@ -2,8 +2,8 @@ import asyncio
|
||||||
import logging
|
import logging
|
||||||
import typing
|
import typing
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from hub.blockchain.network import LBCMainNet
|
from hub.scribe.network import LBCMainNet
|
||||||
from hub.blockchain.daemon import LBCDaemon
|
from hub.scribe.daemon import LBCDaemon
|
||||||
|
|
||||||
|
|
||||||
def chunks(items, size):
|
def chunks(items, size):
|
|
@ -12,14 +12,14 @@ from hub.db.prefixes import ACTIVATED_SUPPORT_TXO_TYPE, ACTIVATED_CLAIM_TXO_TYPE
|
||||||
from hub.db.prefixes import PendingActivationKey, PendingActivationValue, ClaimToTXOValue
|
from hub.db.prefixes import PendingActivationKey, PendingActivationValue, ClaimToTXOValue
|
||||||
from hub.error.base import ChainError
|
from hub.error.base import ChainError
|
||||||
from hub.common import hash_to_hex_str, hash160, RPCError, HISTOGRAM_BUCKETS, StagedClaimtrieItem, sha256, LRUCache
|
from hub.common import hash_to_hex_str, hash160, RPCError, HISTOGRAM_BUCKETS, StagedClaimtrieItem, sha256, LRUCache
|
||||||
from hub.blockchain.daemon import LBCDaemon
|
from hub.scribe.daemon import LBCDaemon
|
||||||
from hub.blockchain.transaction import Tx, TxOutput, TxInput, Block
|
from hub.scribe.transaction import Tx, TxOutput, TxInput, Block
|
||||||
from hub.blockchain.prefetcher import Prefetcher
|
from hub.scribe.prefetcher import Prefetcher
|
||||||
from hub.blockchain.mempool import MemPool
|
from hub.scribe.mempool import MemPool
|
||||||
from hub.schema.url import normalize_name
|
from hub.schema.url import normalize_name
|
||||||
from hub.service import BlockchainService
|
from hub.service import BlockchainService
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from hub.blockchain.env import BlockchainEnv
|
from hub.scribe.env import BlockchainEnv
|
||||||
from hub.db.revertable import RevertableOpStack
|
from hub.db.revertable import RevertableOpStack
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
from hub.common import double_sha256
|
from hub.common import double_sha256
|
||||||
from hub.blockchain.transaction import (
|
from hub.scribe.transaction import (
|
||||||
unpack_le_int32_from, unpack_le_int64_from, unpack_le_uint16_from,
|
unpack_le_int32_from, unpack_le_int64_from, unpack_le_uint16_from,
|
||||||
unpack_le_uint32_from, unpack_le_uint64_from, Tx, TxInput, TxOutput
|
unpack_le_uint32_from, unpack_le_uint64_from, Tx, TxInput, TxOutput
|
||||||
)
|
)
|
||||||
from hub.blockchain.transaction.script import txo_script_parser
|
from hub.scribe.transaction.script import txo_script_parser
|
||||||
|
|
||||||
|
|
||||||
class Deserializer:
|
class Deserializer:
|
|
@ -1,6 +1,6 @@
|
||||||
import typing
|
import typing
|
||||||
from hub.blockchain.transaction import NameClaim, ClaimUpdate, ClaimSupport
|
from hub.scribe.transaction import NameClaim, ClaimUpdate, ClaimSupport
|
||||||
from hub.blockchain.transaction import unpack_le_uint16_from, unpack_le_uint32_from, pack_le_uint16, pack_le_uint32
|
from hub.scribe.transaction import unpack_le_uint16_from, unpack_le_uint32_from, pack_le_uint16, pack_le_uint32
|
||||||
|
|
||||||
|
|
||||||
class _OpCodes(typing.NamedTuple):
|
class _OpCodes(typing.NamedTuple):
|
Loading…
Reference in a new issue