Convert length of shortened plaintext LBRY ID to constant
This commit is contained in:
parent
1695b26416
commit
9d272befcd
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ NOT_FOUND = 404
|
||||||
OK_CODE = 200
|
OK_CODE = 200
|
||||||
|
|
||||||
PENDING_LBRY_ID = "not set"
|
PENDING_LBRY_ID = "not set"
|
||||||
|
SHORT_LBRY_ID_LEN = 20
|
||||||
|
|
||||||
class Checker:
|
class Checker:
|
||||||
"""The looping calls the daemon runs"""
|
"""The looping calls the daemon runs"""
|
||||||
|
@ -586,7 +586,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
def _upload_log(self, log_type=None, exclude_previous=False, force=False):
|
def _upload_log(self, log_type=None, exclude_previous=False, force=False):
|
||||||
if self.upload_log or force:
|
if self.upload_log or force:
|
||||||
if self.lbryid is not PENDING_LBRY_ID:
|
if self.lbryid is not PENDING_LBRY_ID:
|
||||||
id_hash = base58.b58encode(self.lbryid)[:20]
|
id_hash = base58.b58encode(self.lbryid)[:SHORT_LBRY_ID_LEN]
|
||||||
else:
|
else:
|
||||||
id_hash = self.lbryid
|
id_hash = self.lbryid
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue