diff --git a/DAS/samplEth/README.md b/DAS/samplEth/README.md index 41efac1..40587ba 100644 --- a/DAS/samplEth/README.md +++ b/DAS/samplEth/README.md @@ -1,6 +1,6 @@ # samplEth Simulator -`samplEth` is a simulator designed to model and analyze peer-to-peer network connections, custodianship behaviors, and different node configurations. It allows you to tweak various parameters to simulate different conditions like connection establishment, data poisoning, and query growth. +`samplEth` is a simulator designed to model and analyze how different sampling methods impact the query times and bandwidth requirements in the network. It allows you to tweak various parameters to simulate different conditions. ## How to Run the Simulator diff --git a/DAS/samplEth/samplEth.py b/DAS/samplEth/samplEth.py index 876af8e..6bfc4ba 100644 --- a/DAS/samplEth/samplEth.py +++ b/DAS/samplEth/samplEth.py @@ -1464,7 +1464,6 @@ def query_peer_with_retries(peers_with_custody, peers_with_custody_level_2, peer def query_all_nodes(peerIDs, peer_custody, peer_connections, peer_horizon_level_1, peer_horizon_level_2, peer_poison_map): num_queries = 75 - samples = generate_random_samples(num_queries) all_query_times = [] all_results = [] all_original_retries = [] @@ -1484,6 +1483,7 @@ def query_all_nodes(peerIDs, peer_custody, peer_connections, peer_horizon_level_ results = 'success' original_retries_sum = 0 queried_peers[peer] = [] + samples = generate_random_samples(num_queries) for sample_row, sample_col in samples: