0bf6e6d272
* Use enums for different settings types * Enum for overlay settings * Configurable simulation overlay * Use duration type for network behaviour delays * Configurable simulation nodes * Runner for different node types * Seedable rng * Convert settings to required objects * Implement IOStreamSettings deserialization * Use common run method for different node types * Configuration for simapp * Testcase for region distribution * Use unix time if seed is not provided
46 lines
751 B
Plaintext
46 lines
751 B
Plaintext
{
|
|
"wards": [
|
|
{
|
|
"max_view": {
|
|
"max_view": 10
|
|
}
|
|
},
|
|
{
|
|
"min_max_view": {
|
|
"max_gap": 5
|
|
}
|
|
},
|
|
{
|
|
"stalled_view": {
|
|
"consecutive_viewed_checkpoint": 123456789,
|
|
"criterion": 1000,
|
|
"threshold": 5
|
|
}
|
|
}
|
|
],
|
|
"network_settings": {
|
|
"network_behaviors": {},
|
|
"regions": {
|
|
"Europe": 0.3
|
|
}
|
|
},
|
|
"overlay_settings": {
|
|
"Tree": {
|
|
"tree_type": "FullBinaryTree",
|
|
"committee_size": 1,
|
|
"depth": 3
|
|
}
|
|
},
|
|
"node_settings": "Dummy",
|
|
"runner_settings": "Sync",
|
|
"stream_settings": {
|
|
"Naive": {
|
|
"path": "sim_naive_stream.txt"
|
|
}
|
|
},
|
|
"node_count": 10,
|
|
"views_count": 20,
|
|
"leaders_count": 2,
|
|
"seed": 12345
|
|
}
|