cuprated::constants

Constant EXAMPLE_CONFIG

Source
pub const EXAMPLE_CONFIG: &str = "#     ____                      _\n#    / ___|   _ _ __  _ __ __ _| |_ ___\n#   | |  | | | | \'_ \\| \'__/ _` | __/ _ \\\n#   | |__| |_| | |_) | | | (_| | ||  __/\n#    \\____\\__,_| .__/|_|  \\__,_|\\__\\___|\n#              |_|\n#\n\n## The network to run on, valid values: \"Mainnet\", \"Testnet\", \"Stagenet\".\nnetwork = \"Mainnet\"\n\n## Tracing config.\n[tracing]\n## The stdout logging config.\nstdout = { level = \"info\" }\n## The file output logging config.\nfile = { level = \"debug\", max_log_files = 7 }\n\n## Clear-net config.\n[p2p.clear_net]\n## The number of outbound connections we should make and maintain.\noutbound_connections = 64\n## The number of extra connections we should make under load from the rest of Cuprate, i.e. when syncing.\nextra_outbound_connections = 8\n## The maximum number of incoming we should allow.\nmax_inbound_connections = 128\n## The percent of outbound connections that should be to nodes we have not connected to before.\ngray_peers_percent = 0.7\n## The port to accept connections on, if left `0` no connections will be accepted.\np2p_port = 0\n## The IP address to listen to connections on.\nlisten_on = \"0.0.0.0\"\n\n## The Clear-net addressbook config.\n[p2p.clear_net.address_book_config]\n## The size of the white peer list, which contains peers we have made a connection to before.\nmax_white_list_length = 1_000\n## The size of the gray peer list, which contains peers we have not made a connection to before.\nmax_gray_list_length = 5_000\n## The amount of time between address book saves.\npeer_save_period = { secs = 90, nanos = 0 }\n\n## The block downloader config.\n[p2p.block_downloader]\n## The size of the buffer of sequential blocks waiting to be verified and added to the chain (bytes).\nbuffer_bytes = 50_000_000\n## The size of the queue of blocks which are waiting for a parent block to be downloaded (bytes).\nin_progress_queue_bytes = 50_000_000\n## The target size of a batch of blocks (bytes), must not exceed 100MB.\ntarget_batch_bytes = 10_000_000\n## The amount of time between checking the pool of connected peers for free peers to download blocks.\ncheck_client_pool_interval = { secs = 30, nanos = 0 }\n\n## Txpool storage config.\n[storage.txpool]\n## The database sync mode for the txpool.\nsync_mode = \"Async\"\n## The maximum size of all the txs in the pool (bytes).\nmax_txpool_byte_size = 100_000_000\n\n## Blockchain storage config.\n[storage.blockchain]\n## The database sync mode for the blockchain.\nsync_mode = \"Async\"\n";