From ad7dc1ad8ec89f6e9dfd6a677fe099728896b744 Mon Sep 17 00:00:00 2001 From: Peter Zhang Date: Sat, 10 Aug 2024 08:42:59 +0800 Subject: [PATCH] update defaut config --- Cargo.lock | 2 +- node/Cargo.toml | 2 +- ...onfig-testnet.toml => config-testnet-turbo.toml} | 13 +++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) rename run/{config-testnet.toml => config-testnet-turbo.toml} (95%) diff --git a/Cargo.lock b/Cargo.lock index aaca1b5..fe2186d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8542,7 +8542,7 @@ dependencies = [ [[package]] name = "zgs_node" -version = "0.3.0" +version = "0.4.1" dependencies = [ "anyhow", "chunk_pool", diff --git a/node/Cargo.toml b/node/Cargo.toml index b2865b7..5eaa434 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zgs_node" -version = "0.3.0" +version = "0.4.1" edition = "2021" [dependencies] diff --git a/run/config-testnet.toml b/run/config-testnet-turbo.toml similarity index 95% rename from run/config-testnet.toml rename to run/config-testnet-turbo.toml index 0809152..ea65844 100644 --- a/run/config-testnet.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/54.219.26.22/udp/1234/p2p/16Uiu2HAmTVDGNhkHD98zDnJxQWu3i1FL1aFYeh9wiQTNu4pDCgps","/ip4/52.52.127.117/udp/1234/p2p/16Uiu2HAkzRjxK2gorngB1Xq84qDrT4hSVznYDHj6BkbaE4SGx9oS","/ip4/18.167.69.68/udp/1234/p2p/16Uiu2HAm2k6ua2mGgvZ8rTMV8GhpW71aVzkQWy7D37TTDuLCpgmX"] +network_boot_nodes = ["/ip4/54.219.26.22/udp/1234/p2p/16Uiu2HAmTVDGNhkHD98zDnJxQWu3i1FL1aFYeh9wiQTNu4pDCgps","/ip4/52.52.127.117/udp/1234/p2p/16Uiu2HAkzRjxK2gorngB1Xq84qDrT4hSVznYDHj6BkbaE4SGx9oS","/ip4/18.162.65.205/udp/1234/p2p/16Uiu2HAm2k6ua2mGgvZ8rTMV8GhpW71aVzkQWy7D37TTDuLCpgmX"] # List of libp2p nodes to initially connect to. # network_libp2p_nodes = [] @@ -80,14 +80,14 @@ network_boot_nodes = ["/ip4/54.219.26.22/udp/1234/p2p/16Uiu2HAmTVDGNhkHD98zDnJxQ # blockchain_rpc_endpoint = "http://127.0.0.1:8545" # Flow contract address to sync event logs. -log_contract_address = "0x8873cc79c5b3b5666535C825205C9a128B1D75F1" +log_contract_address = "0xbD2C3F0E65eDF5582141C35969d66e34629cC768" # Block number to sync event logs from blockchain. Generally, this is # the block number when flow contract deployed. -log_sync_start_block_number = 802 +log_sync_start_block_number = 595059 # Number of blocks to confirm a transaction. -# confirmation_block_count = 12 +confirmation_block_count = 6 # Maximum number of event logs to poll at a time. # log_page_size = 999 @@ -180,7 +180,7 @@ log_sync_start_block_number = 802 ####################################################################### # Mine contract address for incentive. -mine_contract_address = "0x85F6722319538A805ED5733c5F4882d96F1C7384" +mine_contract_address = "0x6815F41019255e00D6F34aAB8397a6Af5b6D806f" # Miner key is used to sign blockchain transaction for incentive. # The value should be a hex string of length 64 without 0x prefix. @@ -198,12 +198,13 @@ mine_contract_address = "0x85F6722319538A805ED5733c5F4882d96F1C7384" # If this limit is reached, the node will update its `shard_position` # and store only half data. # -# db_max_num_sectors = 1000000000 +db_max_num_sectors = 1000000000 # The format is /, where the shard number is 2^n. # This only applies if there is no stored shard config in db. # shard_position = "0/2" +reward_contract_address = "0x51998C4d486F406a788B766d93510980ae1f9360" # The time interval to check if we should half `shard_position` to prune data. # # prune_check_time_s = 60