Skip to content

Commit f6e8893

Browse files
committed
test: test that create_self_transfer_multi respects target_vsize
1 parent fc642c3 commit f6e8893

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/functional/feature_framework_miniwallet.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ def test_tx_padding(self):
2929
utxo = wallet.get_utxo(mark_as_spent=False)
3030
for target_vsize in [250, 500, 1250, 2500, 5000, 12500, 25000, 50000, 1000000,
3131
248, 501, 1085, 3343, 5805, 12289, 25509, 55855, 999998]:
32-
tx = wallet.create_self_transfer(utxo_to_spend=utxo, target_vsize=target_vsize)["tx"]
33-
assert_equal(tx.get_vsize(), target_vsize)
32+
tx = wallet.create_self_transfer(utxo_to_spend=utxo, target_vsize=target_vsize)
33+
assert_equal(tx['tx'].get_vsize(), target_vsize)
34+
child_tx = wallet.create_self_transfer_multi(utxos_to_spend=[tx["new_utxo"]], target_vsize=target_vsize)
35+
assert_equal(child_tx['tx'].get_vsize(), target_vsize)
36+
3437

3538
def test_wallet_tagging(self):
3639
"""Verify that tagged wallet instances are able to send funds."""

0 commit comments

Comments
 (0)