rename scribe.blockchain -> hub.scribe

This commit is contained in:
Jack Robison 2022-05-18 10:55:12 -04:00
parent 27e09d7aa7
commit 0da235bceb
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
17 changed files with 23 additions and 23 deletions

View file

@ -1 +0,0 @@
from hub.blockchain.network import LBCTestNet, LBCRegTest, LBCMainNet

View file

@ -17,7 +17,7 @@ from hub.error import ResolveCensoredError
from hub.schema.url import URL, normalize_name
from hub.schema.claim import guess_stream_type
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.db.merkle import Merkle, MerkleCache, FastMerkleCacheItem
from hub.db.common import ResolveResult, STREAM_TYPES, CLAIM_TYPES, ExpandedResolveResult, DBError, UTXO

View file

@ -3,7 +3,7 @@ import re
import resource
import logging
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')

View file

@ -9,7 +9,7 @@ import rocksdb.errors
from hub import PROMETHEUS_NAMESPACE
from hub.common import HISTOGRAM_BUCKETS
from hub.db.common import UTXO
from hub.blockchain.transaction.deserializer import Deserializer
from hub.scribe.transaction.deserializer import Deserializer
if typing.TYPE_CHECKING:
from hub.hub.session import SessionManager

View file

@ -1,7 +1,7 @@
import time
import typing
import asyncio
from hub.blockchain.daemon import LBCDaemon
from hub.scribe.daemon import LBCDaemon
from hub.hub.session import SessionManager
from hub.hub.mempool import HubMemPool
from hub.hub.udp import StatusServer

View file

@ -29,7 +29,7 @@ from hub.hub.framer import NewlineFramer
if typing.TYPE_CHECKING:
from hub.db import HubDB
from hub.hub.env import ServerEnv
from hub.blockchain.daemon import LBCDaemon
from hub.scribe.daemon import LBCDaemon
from hub.hub.mempool import HubMemPool
BAD_REQUEST = 1

1
hub/scribe/__init__.py Normal file
View file

@ -0,0 +1 @@
from hub.scribe.network import LBCTestNet, LBCRegTest, LBCMainNet

View file

@ -3,8 +3,8 @@ import logging
import traceback
import argparse
from hub.common import setup_logging
from hub.blockchain.env import BlockchainEnv
from hub.blockchain.service import BlockchainProcessorService
from hub.scribe.env import BlockchainEnv
from hub.scribe.service import BlockchainProcessorService
def main():

View file

@ -2,7 +2,7 @@ import itertools
import attr
import typing
from collections import defaultdict
from hub.blockchain.transaction.deserializer import Deserializer
from hub.scribe.transaction.deserializer import Deserializer
if typing.TYPE_CHECKING:
from hub.db import HubDB

View file

@ -7,9 +7,9 @@ from decimal import Decimal
from hub.schema.base58 import Base58
from hub.schema.bip32 import PublicKey
from hub.common import hash160, hash_to_hex_str, double_sha256
from hub.blockchain.transaction import TxOutput, TxInput, Block
from hub.blockchain.transaction.deserializer import Deserializer
from hub.blockchain.transaction.script import OpCodes, P2PKH_script, P2SH_script, txo_script_parser
from hub.scribe.transaction import TxOutput, TxInput, Block
from hub.scribe.transaction.deserializer import Deserializer
from hub.scribe.transaction.script import OpCodes, P2PKH_script, P2SH_script, txo_script_parser
HASHX_LEN = 11

View file

@ -2,8 +2,8 @@ import asyncio
import logging
import typing
if typing.TYPE_CHECKING:
from hub.blockchain.network import LBCMainNet
from hub.blockchain.daemon import LBCDaemon
from hub.scribe.network import LBCMainNet
from hub.scribe.daemon import LBCDaemon
def chunks(items, size):

View file

@ -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.error.base import ChainError
from hub.common import hash_to_hex_str, hash160, RPCError, HISTOGRAM_BUCKETS, StagedClaimtrieItem, sha256, LRUCache
from hub.blockchain.daemon import LBCDaemon
from hub.blockchain.transaction import Tx, TxOutput, TxInput, Block
from hub.blockchain.prefetcher import Prefetcher
from hub.blockchain.mempool import MemPool
from hub.scribe.daemon import LBCDaemon
from hub.scribe.transaction import Tx, TxOutput, TxInput, Block
from hub.scribe.prefetcher import Prefetcher
from hub.scribe.mempool import MemPool
from hub.schema.url import normalize_name
from hub.service import BlockchainService
if typing.TYPE_CHECKING:
from hub.blockchain.env import BlockchainEnv
from hub.scribe.env import BlockchainEnv
from hub.db.revertable import RevertableOpStack

View file

@ -1,9 +1,9 @@
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_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:

View file

@ -1,6 +1,6 @@
import typing
from hub.blockchain.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 NameClaim, ClaimUpdate, ClaimSupport
from hub.scribe.transaction import unpack_le_uint16_from, unpack_le_uint32_from, pack_le_uint16, pack_le_uint32
class _OpCodes(typing.NamedTuple):