Skip to content

Commit

Permalink
fix(tests): remove undeeded broken tests
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jansegre committed Jun 14, 2023
1 parent 99a76a8 commit 7ac143f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/tx/test_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit 7ac143f

Please sign in to comment.