def one_node_added(looper, txnPoolNodeSet, nodeThetaAdded): # New node knows primary same primary as others and has rank greater # than others _, _, new_node = nodeThetaAdded waitNodeDataEquality(looper, new_node, *txnPoolNodeSet[:-1]) check_newly_added_nodes(looper, txnPoolNodeSet, [new_node]) return new_node
def sdk_one_node_added(looper, txnPoolNodeSet, sdk_node_theta_added): # New node knows primary same primary as others and has rank greater # than others _, new_node = sdk_node_theta_added waitNodeDataEquality(looper, new_node, *txnPoolNodeSet[:-1]) check_newly_added_nodes(looper, txnPoolNodeSet, [new_node]) return new_node
def two_more_nodes_added(one_node_added, looper, txnPoolNodeSet, stewardWallet, steward1, tdirWithPoolTxns, tconf, allPluginsPath): # check_accepted_view_change_sent(one_node_added, txnPoolNodeSet) new_nodes = add_2_nodes(looper, txnPoolNodeSet, steward1, stewardWallet, tdirWithPoolTxns, tconf, allPluginsPath) check_newly_added_nodes(looper, txnPoolNodeSet, new_nodes) return new_nodes
def sdk_one_node_added(looper, txnPoolNodeSet, sdk_node_theta_added): # New node knows primary same primary as others and has rank greater # than others _, new_node = sdk_node_theta_added waitNodeDataEquality(looper, new_node, *txnPoolNodeSet[:-1], exclude_from_check=['check_last_ordered_3pc_backup']) check_newly_added_nodes(looper, txnPoolNodeSet, [new_node]) return new_node
def two_more_nodes_added(sdk_one_node_added, looper, txnPoolNodeSet, sdk_pool_handle, sdk_wallet_steward, tdir, tconf, allPluginsPath): # check_accepted_view_change_sent(one_node_added, txnPoolNodeSet) new_nodes = sdk_add_2_nodes(looper, txnPoolNodeSet, sdk_pool_handle, sdk_wallet_steward, tdir, tconf, allPluginsPath) check_newly_added_nodes(looper, txnPoolNodeSet, new_nodes) return new_nodes
def two_more_nodes_added(sdk_one_node_added, looper, txnPoolNodeSet, sdk_pool_handle, sdk_wallet_steward, tdir, tconf, allPluginsPath): # check_accepted_view_change_sent(one_node_added, txnPoolNodeSet) new_nodes = sdk_add_2_nodes(looper, txnPoolNodeSet, sdk_pool_handle, sdk_wallet_steward, tdir, tconf, allPluginsPath) check_newly_added_nodes(looper, txnPoolNodeSet, new_nodes) return new_nodes