0g-storage-node/run/config.toml
Bo QIU 9b4b0436c3
Supports to sync partial chunks (#4)
* refactor p2p signed message

* add new pubsub messages in network layer to find chunks

* handle find chunks pubsub message in router

* Supports to sync partial chunks

* add admin rpc to sync chunks

* limit number of chunks to sync at a time

* refactor code to sync file and chunks

* add more switches to trigger file sync

* fix ut failure

* refactor code
2024-01-19 14:04:59 +08:00

35 lines
1.0 KiB
TOML

network_dir = "network"
network_listen_address = "0.0.0.0"
# network_enr_address = ""
# network_enr_tcp_port = 1234
# network_enr_udp_port = 1234
network_libp2p_port = 1234
network_discovery_port = 1234
network_target_peers = 3
network_boot_nodes = ["/ip4/141.148.134.20/udp/1234/p2p/16Uiu2HAmPxGNWu9eVAQPJww79J32pTJLKGcpjRMb4Qb8xxKkyuG1","/ip4/129.146.156.125/udp/1234/p2p/16Uiu2HAm93Hd5azfhkGBbkx1zero3nYHvfjQYM2NtiW4R3r5bE2g"]
network_libp2p_nodes = []
network_private = false
network_disable_discovery = false
db_dir = "db"
rpc_enabled = true
rpc_listen_address = "0.0.0.0:5678"
log_config_file = "log_config"
blockchain_rpc_endpoint = "https://evmtestnet.confluxrpc.com"
log_contract_address = "0xcb7afff6f048ec1fb033aa7b495ed0dd932c8656"
mine_contract_address = "0x0d0d21020d04621479489f9ebde9a0373efbb838"
log_sync_start_block_number = 134253180
log_page_size = 999
# [sync]
# auto_sync_enabled = false
# max_sync_files = 8
# find_peer_timeout = "30s"
# sync_file_by_rpc_enabled = true
# sync_file_on_announcement_enabled = false