commit 2cc15fca578b0ee6e87c1429d8afeedc4a7e156a
parent cc05c09d6bef12c1a9a93192dcef30ef7373f791
Author: SomberNight <somber.night@protonmail.com>
Date: Fri, 15 Jun 2018 15:39:09 +0200
tests: add missing txid test from #3316
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/tests/test_transaction.py b/lib/tests/test_transaction.py
@@ -221,6 +221,11 @@ class TestTransaction(SequentialTestCase):
txid = 'ed3d100577477d799107eba97e76770b3efa253c7200e9abfb43da5d2b33513e'
self._run_naive_tests_on_tx(raw_tx, txid)
+ def test_txid_segwit_coinbase_to_p2sh(self):
+ raw_tx = '020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff050214030101ffffffff02902f50090000000017a914ba582096f8647ca4195f55c8ef7e7e6e120e88b1870000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000'
+ txid = 'e28ee5866ec0535fe5efac5ad350cbf4960ed981b471a0c4a6baad1d8168d3d7'
+ self._run_naive_tests_on_tx(raw_tx, txid)
+
def test_txid_p2pk_to_p2pkh(self):
raw_tx = '010000000118231a31d2df84f884ced6af11dc24306319577d4d7c340124a7e2dd9c314077000000004847304402200b6c45891aed48937241907bc3e3868ee4c792819821fcde33311e5a3da4789a02205021b59692b652a01f5f009bd481acac2f647a7d9c076d71d85869763337882e01fdffffff016c95052a010000001976a9149c4891e7791da9e622532c97f43863768264faaf88ac00000000'
txid = '90ba90a5b115106d26663fce6c6215b8699c5d4b2672dd30756115f3337dddf9'