From 7ac143f09466df3661d13a57b904c2b2856ac314 Mon Sep 17 00:00:00 2001 From: Jan Segre Date: Thu, 15 Jun 2023 01:10:53 +0200 Subject: [PATCH] fix(tests): remove undeeded broken tests This test broke due to a regression after the latest on_new_tx refactor. However this test isn't actually adding anything right now. This should be reviewed in #648 --- tests/tx/test_tx.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tests/tx/test_tx.py b/tests/tx/test_tx.py index 5f97ba561..65b53d843 100644 --- a/tests/tx/test_tx.py +++ b/tests/tx/test_tx.py @@ -35,7 +35,6 @@ from tests import unittest from tests.utils import ( add_blocks_unlock_reward, - add_new_block, add_new_blocks, add_new_transactions, create_script_with_sigops, @@ -98,22 +97,6 @@ def test_validation(self): self.assertTrue(block_from_chain.has_basic_block_parent()) self.assertEqual(block_from_chain.get_next_block_best_chain(), None) - def test_checkpoint_validation(self): - from hathor.transaction.transaction_metadata import ValidationState - - # manually validate with sync_checkpoints=True - block1 = add_new_block(self.manager, propagate=False) - block1.validate_full(sync_checkpoints=True) - self.assertTrue(block1.get_metadata().validation.is_checkpoint()) - self.manager.propagate_tx(block1) - del block1 - - # use on_new_tx with sync_checkpoints=True - block2 = self.manager.generate_mining_block() - block2.resolve() - self.assertTrue(self.manager.on_new_tx(block2, sync_checkpoints=True, partial=True, fails_silently=False)) - self.assertEqual(block2.get_metadata().validation, ValidationState.CHECKPOINT_FULL) - def test_script(self): genesis_block = self.genesis_blocks[0]