tests/Cluster.py
def waitOnClusterSync(self, timeout=None):
        """Get head block on node 0, then ensure the block is present on every cluster node."""
        assert(self.nodes)
        assert(len(self.nodes) > 0)
        targetHeadBlockNum=self.nodes[0].getHeadBlockNum() #get root nodes head block num
        if Utils.Debug: Utils.Print("Head block number on root node: %d" % (targetHeadBlockNum))
        if targetHeadBlockNum == -1:
            return False

        return self.waitOnClusterBlockNumSync(targetHeadBlockNum, timeout)
Get head block on node 0, then ensure the block is present on every cluster node.
Get head block on node 0, then ensure the block is present on every cluster node.
Get head block on node 0 then ensure the block is present on every cluster node .
def waitOnClusterSync(self, timeout=None):
        assert(self.nodes)
        assert(len(self.nodes) > 0)
        targetHeadBlockNum=self.nodes[0].getHeadBlockNum() 
        if Utils.Debug: Utils.Print("Head block number on root node: %d" % (targetHeadBlockNum))
        if targetHeadBlockNum == -1:
            return False
        return self.waitOnClusterBlockNumSync(targetHeadBlockNum, timeout)
def waitOnClusterSync ( self , timeout = None ) : assert ( self . nodes ) assert ( len ( self . nodes ) > 0 ) targetHeadBlockNum = self . nodes [ 0 ] . getHeadBlockNum ( ) if Utils . Debug : Utils . Print ( "Head block number on root node: %d" % ( targetHeadBlockNum ) ) if targetHeadBlockNum == - 1 : return False return self . waitOnClusterBlockNumSync ( targetHeadBlockNum , timeout )
Get head block on node 0, then ensure the block is present on every cluster node.
Get head block on node 0 then ensure the block is present on every cluster node .
"""Get head block on node 0, then ensure the block is present on every cluster node.""" #get root nodes head block num
self
timeout