comments, cleaner key_bits constant

This commit is contained in:
Jack Robison 2018-05-29 10:58:24 -04:00
parent 29d5750371
commit ec1b6b2387
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -45,17 +45,13 @@ tokenSecretChangeInterval = 300 # 5 minutes
######## IMPLEMENTATION-SPECIFIC CONSTANTS ########### ######## IMPLEMENTATION-SPECIFIC CONSTANTS ###########
#: The interval in which the node should check its whether any buckets need refreshing, #: The interval for the node to check whether any buckets need refreshing
#: or whether any data needs to be republished (in seconds)
checkRefreshInterval = refreshTimeout / 5 checkRefreshInterval = refreshTimeout / 5
#: Max size of a single UDP datagram, in bytes. If a message is larger than this, it will #: Max size of a single UDP datagram, in bytes. If a message is larger than this, it will
#: be spread across several UDP packets. #: be spread across several UDP packets.
udpDatagramMaxSize = 8192 # 8 KB udpDatagramMaxSize = 8192 # 8 KB
from lbrynet.core.cryptoutils import get_lbry_hash_obj key_bits = 384
h = get_lbry_hash_obj()
key_bits = h.digest_size * 8 # 384 bits
rpc_id_length = 20 rpc_id_length = 20