From 88287333b5537366d97cc9a30b50419153648dd3 Mon Sep 17 00:00:00 2001 From: 0g-peterzhb <158457852+0g-peterzhb@users.noreply.github.com> Date: Sat, 27 Sep 2025 22:06:26 +0800 Subject: [PATCH] update test turbo config (#394) --- run/config-testnet-turbo.toml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/run/config-testnet-turbo.toml b/run/config-testnet-turbo.toml index 0fe9907..19e9f9f 100644 --- a/run/config-testnet-turbo.toml +++ b/run/config-testnet-turbo.toml @@ -33,7 +33,7 @@ # List of nodes to bootstrap UDP discovery. Note, `network_enr_address` should be # configured as well to enable UDP discovery. -network_boot_nodes = ["/ip4/47.251.79.83/udp/1234/p2p/16Uiu2HAkvJYQABP1MdvfWfUZUzGLx1sBSDZ2AT92EFKcMCCPVawV", "/ip4/47.238.87.44/udp/1234/p2p/16Uiu2HAmFGsLoajQdEds6tJqsLX7Dg8bYd2HWR4SbpJUut4QXqCj", "/ip4/47.251.78.104/udp/1234/p2p/16Uiu2HAmSe9UWdHrqkn2mKh99b9DwYZZcea6krfidtU3e5tiHiwN", "/ip4/47.76.30.235/udp/1234/p2p/16Uiu2HAm5tCqwGtXJemZqBhJ9JoQxdDgkWYavfCziaqaAYkGDSfU"] +network_boot_nodes = ["/ip4/35.236.80.213/udp/1234/p2p/16Uiu2HAm1w2Lkr4vsnHUgHiyQBpVXmDuvuLP9SDUZaY5tkZudSME", "/ip4/34.102.76.235/udp/1234/p2p/16Uiu2HAmPQ9WTyYbstNPFX4Va8gH5cfkLJ5fJL9h7U4sgJyaHbcm"] # List of libp2p nodes to initially connect to. # network_libp2p_nodes = [] @@ -80,14 +80,14 @@ network_boot_nodes = ["/ip4/47.251.79.83/udp/1234/p2p/16Uiu2HAkvJYQABP1MdvfWfUZU # blockchain_rpc_endpoint = "http://127.0.0.1:8545" # Flow contract address to sync event logs. -log_contract_address = "0x56A565685C9992BF5ACafb940ff68922980DBBC5" +log_contract_address = "0x22E03a6A89B950F1c82ec5e74F8eCa321a105296" # Block number to sync event logs from blockchain. Generally, this is # the block number when flow contract deployed. log_sync_start_block_number = 1 # Number of blocks to confirm a transaction. -# confirmation_block_count = 3 +confirmation_block_count = 1 # Maximum number of event logs to poll at a time. # log_page_size = 999 @@ -125,13 +125,13 @@ log_sync_start_block_number = 1 ####################################################################### # Maximum number of threads to upload segments of a single file simultaneously. -# chunk_pool_write_window_size = 4 +chunk_pool_write_window_size = 2 # Maximum data size of cached segment in pool (by default, 4MB). # chunk_pool_max_cached_chunks_all = 4194304 # Maximum number of threads to upload segments for all files simultaneously. -# chunk_pool_max_writings = 16 +chunk_pool_max_writings = 128 # Expiration time to cache uploaded segments in memory. # chunk_pool_expiration_time_secs = 300 @@ -158,7 +158,7 @@ log_sync_start_block_number = 1 ####################################################################### # Mine contract address for incentive. -mine_contract_address = "0xB87E0e5657C25b4e132CB6c34134C0cB8A962AD6" +mine_contract_address = "0x00A9E9604b0538e06b268Fb297Df333337f9593b" # Miner key is used to sign blockchain transaction for incentive. # The value should be a hex string of length 64 without 0x prefix. @@ -194,7 +194,7 @@ db_max_num_sectors = 4000000000 # This only applies if there is no stored shard config in db. # shard_position = "0/2" -reward_contract_address = "0x233B2768332e4Bae542824c93cc5c8ad5d44517E" +reward_contract_address = "0xA97B57b4BdFEA2D0a25e535bd849ad4e6C440A69" # The time interval to check if we should half `shard_position` to prune data. # # prune_check_time_s = 60 @@ -215,10 +215,10 @@ reward_contract_address = "0x233B2768332e4Bae542824c93cc5c8ad5d44517E" # [network_peer_db] # The maximum number of disconnected nodes to remember. -# max_disconnected_peers = 500 +max_disconnected_peers = 10000 # The maximum number of banned nodes to remember. -# max_banned_peers = 1000 +max_banned_peers = 10000 ####################################################################### ### Router Config Options ### @@ -244,6 +244,10 @@ batcher_announcement_capacity = 100 # all files, and sufficient disk space is required. auto_sync_enabled = true +# Indicates whether to sync file from neighbor nodes only. This is to avoid flooding file +# announcements in the whole network, which leads to high latency or even timeout to sync files. +neighbors_only = true + # Maximum number of files in sync from other peers simultaneously. # max_sync_files = 16