mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-08 16:13:10 +00:00
36 lines
1.4 KiB
YAML
36 lines
1.4 KiB
YAML
simulation:
|
|
# The simulation uses a virtual time. Please see README for more details.
|
|
running_time: 30
|
|
|
|
mixnet:
|
|
num_nodes: 100
|
|
num_mix_layers: 3
|
|
# A size of a message payload in bytes (e.g. the size of a block proposal)
|
|
payload_size: 320
|
|
# An interval of sending a new real/cover message
|
|
# A probability of actually sending a message depends on the following parameters.
|
|
message_interval: 1
|
|
# A probability of sending a real message within a cycle
|
|
real_message_prob: 0.1
|
|
# A weight of real message emission probability of some nodes
|
|
# Each weight is multiplied to the real_message_prob of the node being at the same position in the node list.
|
|
# The length of the list should be <= p2p.num_nodes. i.e. some nodes won't have a weight.
|
|
real_message_prob_weights: [3, 2, 5]
|
|
# A probability of sending a cover message within a cycle if not sending a real message
|
|
cover_message_prob: 0.2
|
|
# A maximum preparation time (delay) before sending the message
|
|
max_message_prep_time: 0.05
|
|
# A maximum delay of messages mixed in a mix node
|
|
max_mix_delay: 3
|
|
|
|
p2p:
|
|
# A maximum network latency between nodes directly connected with each other
|
|
max_network_latency: 0.5
|
|
|
|
measurement:
|
|
# How many times in simulation represent 1 second in real time
|
|
sim_time_per_second: 1
|
|
|
|
adversary:
|
|
# A discrete time window for the adversary to observe inputs and outputs of a certain node
|
|
io_observation_window: 1 |