def test_view_change_in_between_3pc_all_nodes(txnPoolNodeSet, looper, wallet1, client1): """ - Slow processing 3PC messages for all nodes - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, txnPoolNodeSet, wallet1, client1)
def test_view_change_in_between_3pc_all_nodes(txnPoolNodeSet, looper, sdk_pool_handle, sdk_wallet_client): """ - Slow processing 3PC messages for all nodes - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, txnPoolNodeSet, sdk_pool_handle, sdk_wallet_client)
def test_view_change_in_between_3pc_2_of_4_nodes_with_old_and_new_primary( txnPoolNodeSet, looper, wallet1, client1): """ - Slow processing 3PC messages for 2 of 4 node (2>f) - Slow both current and next primaries - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, slow_nodes(txnPoolNodeSet), wallet1, client1)
def test_view_change_in_between_3pc_2_of_4_nodes_with_non_primary( txnPoolNodeSet, looper, wallet1, client): """ - Slow processing 3PC messages for 2 of 4 node (2>f). - Both nodes are non-primary for master neither in this nor the next view - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, slow_nodes(txnPoolNodeSet), wallet1, client)
def test_view_change_in_between_3pc_all_nodes(txnPoolNodeSet, looper, sdk_pool_handle, sdk_wallet_client): """ - Slow processing 3PC messages for all nodes - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, txnPoolNodeSet, sdk_pool_handle, sdk_wallet_client)
def test_view_change_in_between_3pc_2_of_4_nodes_with_old_and_new_primary( txnPoolNodeSet, looper, sdk_pool_handle, sdk_wallet_client): """ - Slow processing 3PC messages for 2 of 4 node (2>f) - Slow both current and next primaries - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, slow_nodes(txnPoolNodeSet), sdk_pool_handle, sdk_wallet_client)
def test_view_change_in_between_3pc_2_of_4_nodes_with_old_primary( txnPoolNodeSet, looper, wallet1, client): """ - Slow processing 3PC messages for 2 of 4 node (2>f) - Slow the current Primary node and the last non-primary node (it will not be the next primary because of round-robin). - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, slow_nodes(txnPoolNodeSet), wallet1, client)
def test_view_change_in_between_3pc_2_of_4_nodes_with_non_primary( txnPoolNodeSet, looper, sdk_pool_handle, sdk_wallet_client): """ - Slow processing 3PC messages for 2 of 4 node (2>f). - Both nodes are non-primary for master neither in this nor the next view - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, slow_nodes(txnPoolNodeSet), sdk_pool_handle, sdk_wallet_client)
def test_view_change_in_between_3pc_2_of_4_nodes_with_old_and_new_primary_long_delay( txnPoolNodeSet, looper, sdk_pool_handle, sdk_wallet_client): """ - Slow processing 3PC messages for 2 of 4 node (2>f) - Slow both current and next primaries - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, slow_nodes(txnPoolNodeSet), sdk_pool_handle, sdk_wallet_client, slow_delay=20)
def test_view_change_in_between_3pc_2_of_4_nodes_with_old_primary( txnPoolNodeSet, looper, sdk_pool_handle, sdk_wallet_client): """ - Slow processing 3PC messages for 2 of 4 node (2>f) - Slow the current Primary node and the last non-primary node (it will not be the next primary because of round-robin). - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, slow_nodes(txnPoolNodeSet), sdk_pool_handle, sdk_wallet_client)
def test_view_change_in_between_3pc_2_of_4_nodes_with_new_primary( txnPoolNodeSet, looper, sdk_pool_handle, sdk_wallet_client): """ - Slow processing 3PC messages for 2 of 4 node (2>f) - Slow the the first and the last non-primary node (the first will be primary and the last one will not be the next primary because of round-robin). - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, slow_nodes(txnPoolNodeSet), sdk_pool_handle, sdk_wallet_client)
def test_view_change_in_between_3pc_2_of_4_nodes_with_new_primary_long_delay( txnPoolNodeSet, looper, sdk_pool_handle, sdk_wallet_client): """ - Slow processing 3PC messages for 2 of 4 node (2>f) - Slow the the first and the last non-primary node (the first will be primary and the last one will not be the next primary because of round-robin). - do view change """ view_change_in_between_3pc(looper, txnPoolNodeSet, slow_nodes(txnPoolNodeSet), sdk_pool_handle, sdk_wallet_client, slow_delay=20)