change default block confirm count

This commit is contained in:
boqiu 2024-09-04 19:22:34 +08:00
parent aa31d55f0a
commit 754f150cad
5 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ build_config! {
(blockchain_rpc_endpoint, (String), "http://127.0.0.1:8545".to_string())
(log_contract_address, (String), "".to_string())
(log_sync_start_block_number, (u64), 0)
(confirmation_block_count, (u64), 12)
(confirmation_block_count, (u64), 3)
(log_page_size, (u64), 999)
(max_cache_data_size, (usize), 100 * 1024 * 1024) // 100 MB
(cache_tx_seq_ttl, (usize), 500)

View File

@ -87,7 +87,7 @@ log_contract_address = "0x0460aA47b41a66694c0a73f667a1b795A5ED3556"
log_sync_start_block_number = 595059
# Number of blocks to confirm a transaction.
confirmation_block_count = 6
# confirmation_block_count = 3
# Maximum number of event logs to poll at a time.
# log_page_size = 999

View File

@ -87,7 +87,7 @@ log_contract_address = "0xbD2C3F0E65eDF5582141C35969d66e34629cC768"
log_sync_start_block_number = 595059
# Number of blocks to confirm a transaction.
confirmation_block_count = 6
# confirmation_block_count = 3
# Maximum number of event logs to poll at a time.
# log_page_size = 999

View File

@ -87,7 +87,7 @@
# log_sync_start_block_number = 0
# Number of blocks to confirm a transaction.
# confirmation_block_count = 12
# confirmation_block_count = 3
# Maximum number of event logs to poll at a time.
# log_page_size = 999

View File

@ -12,7 +12,7 @@ class RandomTest(TestFramework):
self.num_blockchain_nodes = 1
self.num_nodes = 4
for i in range(self.num_nodes):
self.zgs_node_configs[i] = {"confirmation_block_count": 1, "sync": {"auto_sync_enabled": True}}
self.zgs_node_configs[i] = {"sync": {"auto_sync_enabled": True}}
def run_test(self):
max_size = 256 * 1024 * 64