Esempio n. 1
0
    def test_invalid_block(self):
        block_list = self._create_blocks(1, 1, valid_batch=False)
        block = block_list[0]
        valid = verifier.validate_block(block)
        self.assertFalse(valid)

        block_list = self._create_blocks(1, 1, valid_block=False)
        block = block_list[0]
        valid = verifier.validate_block(block)
        self.assertFalse(valid)
Esempio n. 2
0
    def test_invalid_block(self):
        block_list = self._create_blocks(1, 1, valid_batch=False)
        block = block_list[0]
        valid = verifier.validate_block(block)
        self.assertFalse(valid)

        block_list = self._create_blocks(1, 1, valid_block=False)
        block = block_list[0]
        valid = verifier.validate_block(block)
        self.assertFalse(valid)
Esempio n. 3
0
 def test_valid_block(self):
     block_list = self._create_blocks(1, 1)
     block = block_list[0]
     valid = verifier.validate_block(block)
     self.assertTrue(valid)
Esempio n. 4
0
 def test_valid_block(self):
     block_list = self._create_blocks(1, 1)
     block = block_list[0]
     valid = verifier.validate_block(block)
     self.assertTrue(valid)