def test_broadcasting():
    network = Network(num_nodes=10, simenv=True)
    orig_timeout = ConsensusManager.round_timeout
    # ConsensusManager.round_timeout = 100  # don't trigger timeouts

    # connect nodes as a ring
    for i, n in enumerate(network.nodes):
        if i + 1 < len(network.nodes):
            o = network.nodes[i + 1]
        else:
            o = network.nodes[0]
        n.connect_app(o)
    network.normvariate_base_latencies()
    network.start()
    network.run(10)
    ConsensusManager.round_timeout = orig_timeout
    r = network.check_consistency()
    assert_maxrounds(r)
    assert_heightdistance(r)
dataset/ETHPy150Open HydraChain/hydrachain/hydrachain/tests/test_sim_syncing.py/test_broadcasting/original