SDK Settings

The daemon provided by the LBRY SDK has many settings. This resource lists them all and what they mean. Ready, set, settings!

This document outlines how to configure SDK daemon settings and what options are available. They can be found on the lbry GitHub repository in conf.py.

Daemon settings configuration

The easiest way to configure the settings is by editing the daemon_settings.yml file (may need to be created) that resides in the default lbrynet directory. These settings can also be configured via the settings_set API call. The settings_get API call can be used to retrieve current values. Some values will require an SDK restart after being set via the API call.

Sample daemon_settings.yml file:

tcp_port: 3335
lbryum_servers: ['spv11.lbry.com:50001','spv19.lbry.com:50001']
download_directory: 'c:\lbry\Downloads'
use_upnp: false

To run the SDK with a specific configuration file, launch it by passing the config path: lbrynet start --config=c:\path\to\conf\daemon_settings.yml. To run in debug mode, start with lbrynet start --verbose=lbrynet.

Configuration options

Configuration options are organized by their respective areas: Files, Wallet, Network, Security and Other.

Files

SettingFormatDefault valueSample ValuesDescription
data_dirstringvaries by OS’c:\lbry\lbrynet’Where to store the lbrynet folder, which includes blob files, logs and config data
delete_blobs_on_removebooleantruefalseDelete blobs on a file_delete call?
download_dirstringlocal downloads folder’c:\lbry\lbrynet’Location of downloaded output files

Wallet

SettingFormatDefault valueSample ValuesDescription
blockchain_namestring’lbrycrd_main''lbrycrd_regtest’Blockchain network to connect to
lbryum_serverslist[‘spv11.lbry.com:50001’,‘spv19.lbry.com:50001’][“mylbryum.lbry.com:50001]SPV wallet server address(Default servers are spv11-spv19)
wallet_dirstringvaries by OS’c:\lbry\lbryum’Wallet data location
max_key_feejson{‘currency’: ‘USD’, ‘amount’: 50.0}{‘currency’: ‘LBC’, ‘amount’: 5.0}Max payment allowed for content
walletstring’lbryum''lbrycrd’Choice of wallet software, SPV (lbryum) vs full node (lbrycrd). Currently only lbryum supported
use_keyringbooleanfalsetrueStore wallet password in keyring (not currently available)

Network

SettingFormatDefault valueSample ValuesDescription
apistringlocalhost:52790:0:0:0:5280IP address and port the SDK API will listen on
streaming_serverstringlocalhost:52800:0:0:0:5280IP address and port the media/streaming server will listen on
cache_timeinteger15090How long to keep resolve data in cache
data_ratefloat0.00010.05What LBC rate, per MB, to offer DHT data at (currently disabled in the protocol)
udp_portinteger44444445UDP port used to announce blobs
download_timeoutinteger3060Time, in seconds, to allow get call to resolve and get initial blobs
blob_download_timeoutinteger3060Time, in seconds, to allow download to get next blob
announce_head_blobs_onlybooleantruefalseOnly announce first data blob
concurrent_blob_announcersinteger100Threads used in order to announce blobs. 0 means disabled
known_dht_nodeslist[‘lbrynet1.lbry.com:4444’][‘myDHT.lbry.com:4444’]Bootstrap nodes for network connectivity
max_connections_per_downloadinteger510Threads used to download blobs
seek_head_blob_firstbooleantruefalseSearch for first data blob after downloading sd blob
tcp_portinteger44443334Port the SDK will listen on
concurrent_reflector_uploadsinteger510Connections to use while uploading data to reflector
reflect_streamsbooleantruefalseSend published data to reflector servers
reflector_serverslist[‘reflector.lbry.com’][‘myreflector.lbry.com’]Server data will be reflected to
fixed-peer-delayinteger25Time, in mintues, to allow download from P2P before trying fixed peer
peer_connect_timeoutinteger3015Time, in seconds, to allow download to find peers
node_rpc_timeoutinteger510Time, in seconds, to allow connection over DHT
network_interfacestring0:0:0:0127.0.0.1Interface to use for the DHT and blob exchange
use_upnpbooleantruefalseAttempt external port mapping via UPnP
streaming_getbooleanfalsetrueAllow calling localhost:5280/get/claimname requests
save_filesbooleantruefalseSave files with each download
save_blobsbooleantruefalseSave blobs with each download

Other

SettingFormatDefault valueSample ValuesDescription
components_to_skiplist[][‘reflector’,‘hash_announcer’]Disable components, see entire list here
share_usage_databooleantruefalseShare analytics data

Edit this page