1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

chore(tests): comment on no-longer-valid transaction links

This commit is contained in:
grdddj 2022-04-11 15:11:52 +02:00 committed by matejcik
parent 2cb2ba7f6a
commit cac27e2338
4 changed files with 14 additions and 10 deletions

View File

@ -43,6 +43,7 @@ def test_send_p2tr(client: Client):
script_type=messages.OutputScriptType.PAYTOADDRESS, script_type=messages.OutputScriptType.PAYTOADDRESS,
) )
_, serialized_tx = btc.sign_tx(client, "Fujicoin", [inp1], [out1]) _, serialized_tx = btc.sign_tx(client, "Fujicoin", [inp1], [out1])
# Transaction hex changed with fix #2085, all other details are the same as this tx:
# https://explorer.fujicoin.org/tx/a1c6a81f5e8023b17e6e3e51e2596d5b5e1d4914ea13c0c31cef90b3c3edee86 # https://explorer.fujicoin.org/tx/a1c6a81f5e8023b17e6e3e51e2596d5b5e1d4914ea13c0c31cef90b3c3edee86
assert ( assert (
serialized_tx.hex() serialized_tx.hex()

View File

@ -238,6 +238,7 @@ def test_send_p2tr(client: Client):
_, serialized_tx = btc.sign_tx( _, serialized_tx = btc.sign_tx(
client, "Groestlcoin Testnet", [inp1], [out1], prev_txes=TX_API_TESTNET client, "Groestlcoin Testnet", [inp1], [out1], prev_txes=TX_API_TESTNET
) )
# Transaction hex changed with fix #2085, all other details are the same as this tx:
# https://blockbook-test.groestlcoin.org/tx/c66a79075044aaab3dba17daffb23f48addee87d7c87c7bc88e2997ce38a74ee # https://blockbook-test.groestlcoin.org/tx/c66a79075044aaab3dba17daffb23f48addee87d7c87c7bc88e2997ce38a74ee
assert ( assert (
serialized_tx.hex() serialized_tx.hex()

View File

@ -710,11 +710,12 @@ def test_p2tr_with_proof(client: Client):
client, "Testnet", [inp1, inp2], [out1], prev_txes=TX_CACHE_TESTNET client, "Testnet", [inp1, inp2], [out1], prev_txes=TX_CACHE_TESTNET
) )
# TODO: fails with CHECK_ON_CHAIN=1 - tx_hex is different # Transaction does not exist on the blockchain, not using assert_tx_matches()
assert_tx_matches( # Transaction hex changed with fix #2085, all other details are the same as this tx:
serialized_tx, # https://tbtc1.trezor.io/api/tx/48ec6dc7bb772ff18cbce0135fedda7c0e85212c7b2f85a5d0cc7a917d77c48a
hash_link="https://tbtc1.trezor.io/api/tx/48ec6dc7bb772ff18cbce0135fedda7c0e85212c7b2f85a5d0cc7a917d77c48a", assert (
tx_hex="01000000000102ae4d6d8f642d1e5c8608e5b8430dd89432da2c7425081522e9482970412ddeaf0200000000ffffffffbf1cff9e0fc816acdc2753af9a45c1a6e92c04d0cff2b858372475b6abd912400000000000ffffffff0128a2010000000000225120e120bd124f345d412a91b50cb7e07650a448e90f48afd861b575a664b985b97f000140b524eaf406d413e19d7d32f7133273728f35b28509ac58dfd817f6dfbbac9901db21cd1ba4c2323c64bede38a7512647369d4767c645a915482bcf5167dcd77100000000", serialized_tx.hex()
== "01000000000102ae4d6d8f642d1e5c8608e5b8430dd89432da2c7425081522e9482970412ddeaf0200000000ffffffffbf1cff9e0fc816acdc2753af9a45c1a6e92c04d0cff2b858372475b6abd912400000000000ffffffff0128a2010000000000225120e120bd124f345d412a91b50cb7e07650a448e90f48afd861b575a664b985b97f000140b524eaf406d413e19d7d32f7133273728f35b28509ac58dfd817f6dfbbac9901db21cd1ba4c2323c64bede38a7512647369d4767c645a915482bcf5167dcd77100000000"
) )
# Test corrupted ownership proof. # Test corrupted ownership proof.

View File

@ -270,11 +270,12 @@ def test_p2tr_fee_bump(client: Client):
client, "Testnet", [inp1, inp2], [out1, out2], prev_txes=TX_CACHE_TESTNET client, "Testnet", [inp1, inp2], [out1, out2], prev_txes=TX_CACHE_TESTNET
) )
# TODO: fails with CHECK_ON_CHAIN=1 - tx_hex is different # Transaction does not exist on the blockchain, not using assert_tx_matches()
assert_tx_matches( # Transaction hex changed with fix #2085, all other details are the same as this tx:
serialized_tx, # https://tbtc1.trezor.io/api/tx/48bc29fc42a64b43d043b0b7b99b21aa39654234754608f791c60bcbd91a8e92
hash_link="https://tbtc1.trezor.io/api/tx/48bc29fc42a64b43d043b0b7b99b21aa39654234754608f791c60bcbd91a8e92", assert (
tx_hex="01000000000102921c014d7e11ab33da46f5ca90927e83f53893760420b423c20c25355274e2a40100000000fffffffff23f394436d130113eff35798eb7c841bd9113226c0ac0892b90f6c9acead7cc0000000000ffffffff02983a00000000000016001403c7c1896fab7dabdbc191ae0422deeb6a297b05fe100000000000002251209a9af24b396f593b34e23fefba6b417a55c5ee3f430c3837379fcb5246ab36d70140d4b5fb5e8ffc8db91f2f394dedb618b3c995ef35fe680944c185fd4be16954988a67e249026cb84915569cf168b55389b4f651965860936ce54d6ea1e0956e960140638c8c1e954eb6deb9cfa763c08c85c86050b50c5b9876a187c26b4d811ec17f9d5356af4661f6e49b9f6d79f57efc67b28f057550fe0611153c928b6a1bc4ca00000000", serialized_tx.hex()
== "01000000000102921c014d7e11ab33da46f5ca90927e83f53893760420b423c20c25355274e2a40100000000fffffffff23f394436d130113eff35798eb7c841bd9113226c0ac0892b90f6c9acead7cc0000000000ffffffff02983a00000000000016001403c7c1896fab7dabdbc191ae0422deeb6a297b05fe100000000000002251209a9af24b396f593b34e23fefba6b417a55c5ee3f430c3837379fcb5246ab36d70140d4b5fb5e8ffc8db91f2f394dedb618b3c995ef35fe680944c185fd4be16954988a67e249026cb84915569cf168b55389b4f651965860936ce54d6ea1e0956e960140638c8c1e954eb6deb9cfa763c08c85c86050b50c5b9876a187c26b4d811ec17f9d5356af4661f6e49b9f6d79f57efc67b28f057550fe0611153c928b6a1bc4ca00000000"
) )