Skip to content

Commit

Permalink
Unittest for wrong input witness_type for p2sh-segwit
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Jul 11, 2024
1 parent d41f0a5 commit e39c2a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@ def test_service_cache_transaction_p2sh_p2wpkh_input(self):
srv = ServiceTest(cache_uri=DATABASE_CACHE_UNITTESTS2)
t = srv.gettransaction(txid)
self.assertEqual(t.size, 249)
self.assertEqual(t.inputs[0].witness_type, 'p2sh-segwit')
self.assertEqual(srv.results_cache_n, 0)
t2 = srv.gettransaction(txid)
self.assertEqual(t2.size, 249)
Expand Down

0 comments on commit e39c2a1

Please sign in to comment.