forked from LBRYCommunity/lbry-sdk
comments, cleaner key_bits constant
This commit is contained in:
parent
29d5750371
commit
ec1b6b2387
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue