def prepareNodeSet(looper: Looper, nodeSet: TestNodeSet): # TODO: Come up with a more specific name for this # Key sharing party looper.run(checkNodesConnected(nodeSet)) # Remove all the nodes for n in list(nodeSet.nodes.keys()): looper.removeProdable(nodeSet.nodes[n]) nodeSet.removeNode(n, shouldClean=False)
def prepareNodeSet(looper: Looper, txnPoolNodeSet): # TODO: Come up with a more specific name for this # Key sharing party looper.run(checkNodesConnected(txnPoolNodeSet)) # Remove all the nodes for n in list(txnPoolNodeSet): looper.removeProdable(txnPoolNodeSet) txnPoolNodeSet.remove(n)
def prepareNodeSet(looper: Looper, txnPoolNodeSet): # TODO: Come up with a more specific name for this # Key sharing party looper.run(checkNodesConnected(txnPoolNodeSet)) # Remove all the nodes for n in list(txnPoolNodeSet): looper.removeProdable(txnPoolNodeSet) txnPoolNodeSet.remove(n)