separate scribe __version__ from HUB_PROTOCOL_VERSION

This commit is contained in:
Jack Robison 2022-03-31 10:37:50 -04:00
parent f1d2eace7a
commit 90062296e8
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
3 changed files with 8 additions and 7 deletions

View file

@ -1,5 +1,3 @@
__version__ = "0.107.0"
__version__ = "1.0.0"
PROMETHEUS_NAMESPACE = "scribe"
PROTOCOL_MIN = (0, 54, 0)
PROTOCOL_MAX = (0, 199, 0)

View file

@ -0,0 +1,3 @@
HUB_PROTOCOL_VERSION = "0.107.0"
PROTOCOL_MIN = (0, 54, 0)
PROTOCOL_MAX = (0, 199, 0)

View file

@ -16,9 +16,9 @@ from functools import partial
from elasticsearch import ConnectionTimeout
from prometheus_client import Counter, Info, Histogram, Gauge
from scribe.schema.result import Outputs
from scribe.schema.base58 import Base58Error
from scribe.error import ResolveCensoredError, TooManyClaimSearchParametersError
from scribe import __version__, PROTOCOL_MIN, PROTOCOL_MAX, PROMETHEUS_NAMESPACE
from scribe import __version__, PROMETHEUS_NAMESPACE
from scribe.hub import PROTOCOL_MIN, PROTOCOL_MAX, HUB_PROTOCOL_VERSION
from scribe.build_info import BUILD, COMMIT_HASH, DOCKER_TAG
from scribe.elasticsearch import SearchIndex
from scribe.common import sha256, hash_to_hex_str, hex_str_to_hash, HASHX_LEN, version_string, formatted_time
@ -647,7 +647,7 @@ class LBRYElectrumX(asyncio.Protocol):
PROTOCOL_MIN = PROTOCOL_MIN
PROTOCOL_MAX = PROTOCOL_MAX
max_errors = math.inf # don't disconnect people for errors! let them happen...
version = __version__
version = HUB_PROTOCOL_VERSION
cached_server_features = {}
MAX_CHUNK_SIZE = 40960