This commit is contained in:
Arunima Chaudhuri 2025-01-06 00:01:42 +05:30
parent 72a6d289ba
commit 582da3f885
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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: