def _test_getdifficulty(self):
    difficulty = self.nodes[0].getdifficulty()
    assert (abs(((difficulty * (2 ** 31)) - 1)) < 0.0001)
def _test_getdifficulty(self):
    difficulty = self.nodes[0].getdifficulty()
    assert (abs(((difficulty * (2 ** 31)) - 1)) < 0.0001)