2015-08-20 17:27:15 +02:00
|
|
|
"""
|
|
|
|
Some network wide and also application specific parameters
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
MAX_HANDSHAKE_SIZE = 2**16
|
|
|
|
MAX_REQUEST_SIZE = 2**16
|
|
|
|
MAX_BLOB_REQUEST_SIZE = 2**16
|
|
|
|
MAX_RESPONSE_INFO_SIZE = 2**16
|
|
|
|
MAX_BLOB_INFOS_TO_REQUEST = 20
|
|
|
|
BLOBFILES_DIR = ".blobfiles"
|
|
|
|
BLOB_SIZE = 2**21
|
2016-07-26 23:24:59 +02:00
|
|
|
|
2016-07-27 00:18:34 +02:00
|
|
|
MIN_BLOB_DATA_PAYMENT_RATE = .005 # points/megabyte
|
|
|
|
MIN_BLOB_INFO_PAYMENT_RATE = .02 # points/1000 infos
|
|
|
|
MIN_VALUABLE_BLOB_INFO_PAYMENT_RATE = .05 # points/1000 infos
|
|
|
|
MIN_VALUABLE_BLOB_HASH_PAYMENT_RATE = .05 # points/1000 infos
|
2015-08-20 17:27:15 +02:00
|
|
|
MAX_CONNECTIONS_PER_STREAM = 5
|
2016-02-15 16:12:49 +01:00
|
|
|
|
2016-06-04 02:20:16 +02:00
|
|
|
KNOWN_DHT_NODES = [('104.236.42.182', 4000),
|
2016-06-27 23:07:59 +02:00
|
|
|
('lbrynet1.lbry.io', 4444),
|
|
|
|
('lbrynet2.lbry.io', 4444),
|
|
|
|
('lbrynet3.lbry.io', 4444)]
|
2015-08-20 17:27:15 +02:00
|
|
|
|
|
|
|
POINTTRADER_SERVER = 'http://ec2-54-187-192-68.us-west-2.compute.amazonaws.com:2424'
|
|
|
|
#POINTTRADER_SERVER = 'http://127.0.0.1:2424'
|
2016-07-30 03:37:44 +02:00
|
|
|
SEARCH_SERVERS = ["http://lighthouse1.lbry.io:50005",
|
|
|
|
"http://lighthouse2.lbry.io:50005",
|
|
|
|
"http://lighthouse3.lbry.io:50005"]
|
2015-08-20 17:27:15 +02:00
|
|
|
|
2016-08-09 18:26:34 +02:00
|
|
|
REFLECTOR_SERVERS = [("http://reflector.lbry.io", 5566)]
|
|
|
|
|
2016-06-04 23:05:14 +02:00
|
|
|
LOG_FILE_NAME = "lbrynet.log"
|
2016-05-31 23:38:00 +02:00
|
|
|
LOG_POST_URL = "https://lbry.io/log-upload"
|
|
|
|
|
2016-03-14 17:30:22 +01:00
|
|
|
CRYPTSD_FILE_EXTENSION = ".cryptsd"
|
|
|
|
|
|
|
|
API_INTERFACE = "localhost"
|
|
|
|
API_ADDRESS = "lbryapi"
|
|
|
|
API_PORT = 5279
|
|
|
|
ICON_PATH = "app.icns"
|
|
|
|
APP_NAME = "LBRY"
|
|
|
|
API_CONNECTION_STRING = "http://%s:%i/%s" % (API_INTERFACE, API_PORT, API_ADDRESS)
|
2016-06-27 23:07:59 +02:00
|
|
|
UI_ADDRESS = "http://%s:%i" % (API_INTERFACE, API_PORT)
|
2016-03-17 15:19:36 +01:00
|
|
|
PROTOCOL_PREFIX = "lbry"
|
|
|
|
|
2016-07-09 19:31:07 +02:00
|
|
|
DEFAULT_WALLET = "lbryum"
|
2016-05-30 21:49:25 +02:00
|
|
|
WALLET_TYPES = ["lbryum", "lbrycrd"]
|
2016-04-22 08:45:05 +02:00
|
|
|
DEFAULT_TIMEOUT = 30
|
|
|
|
DEFAULT_MAX_SEARCH_RESULTS = 25
|
2016-07-26 23:21:03 +02:00
|
|
|
DEFAULT_MAX_KEY_FEE = {'USD': {'amount': 25.0, 'address': ''}}
|
2016-04-22 08:45:05 +02:00
|
|
|
DEFAULT_SEARCH_TIMEOUT = 3.0
|
2016-08-03 23:57:26 +02:00
|
|
|
DEFAULT_SD_DOWNLOAD_TIMEOUT = 3
|
2016-05-30 21:49:25 +02:00
|
|
|
DEFAULT_CACHE_TIME = 3600
|
|
|
|
DEFAULT_UI_BRANCH = "master"
|
2016-06-27 23:07:59 +02:00
|
|
|
|
|
|
|
SOURCE_TYPES = ['lbry_sd_hash', 'url', 'btih']
|
2016-07-26 04:17:31 +02:00
|
|
|
CURRENCIES = {
|
|
|
|
'BTC': {'type': 'crypto'},
|
|
|
|
'LBC': {'type': 'crypto'},
|
|
|
|
'USD': {'type': 'fiat'},
|
|
|
|
}
|
2016-08-08 22:02:36 +02:00
|
|
|
|
|
|
|
LOGGLY_TOKEN = 'YWRmNGU4NmEtNjkwNC00YjM2LTk3ZjItMGZhODM3ZDhkYzBi'
|