@@ -45,7 +45,7 @@ def test_chain_limits_helper(self, mempool_count, package_count):
45
45
assert_equal (0 , node .getmempoolinfo ()["size" ])
46
46
chain_hex = []
47
47
48
- chaintip_utxo = self .wallet .send_self_transfer_chain (from_node = node , chain_length = mempool_count )
48
+ chaintip_utxo = self .wallet .send_self_transfer_chain (from_node = node , chain_length = mempool_count )[ - 1 ][ "new_utxo" ]
49
49
# in-package transactions
50
50
for _ in range (package_count ):
51
51
tx = self .wallet .create_self_transfer (utxo_to_spend = chaintip_utxo )
@@ -100,13 +100,13 @@ def test_desc_count_limits(self):
100
100
101
101
package_hex = []
102
102
# Chain A (M2a... M12a)
103
- chain_a_tip_utxo = self .wallet .send_self_transfer_chain (from_node = node , chain_length = 11 , utxo_to_spend = m1_utxos [0 ])
103
+ chain_a_tip_utxo = self .wallet .send_self_transfer_chain (from_node = node , chain_length = 11 , utxo_to_spend = m1_utxos [0 ])[ - 1 ][ "new_utxo" ]
104
104
# Pa
105
105
pa_hex = self .wallet .create_self_transfer (utxo_to_spend = chain_a_tip_utxo )["hex" ]
106
106
package_hex .append (pa_hex )
107
107
108
108
# Chain B (M2b... M13b)
109
- chain_b_tip_utxo = self .wallet .send_self_transfer_chain (from_node = node , chain_length = 12 , utxo_to_spend = m1_utxos [1 ])
109
+ chain_b_tip_utxo = self .wallet .send_self_transfer_chain (from_node = node , chain_length = 12 , utxo_to_spend = m1_utxos [1 ])[ - 1 ][ "new_utxo" ]
110
110
# Pb
111
111
pb_hex = self .wallet .create_self_transfer (utxo_to_spend = chain_b_tip_utxo )["hex" ]
112
112
package_hex .append (pb_hex )
@@ -145,7 +145,7 @@ def test_desc_count_limits_2(self):
145
145
m1_utxos = self .wallet .send_self_transfer_multi (from_node = node , num_outputs = 2 )['new_utxos' ]
146
146
147
147
# Chain M2...M24
148
- self .wallet .send_self_transfer_chain (from_node = node , chain_length = 23 , utxo_to_spend = m1_utxos [0 ])
148
+ self .wallet .send_self_transfer_chain (from_node = node , chain_length = 23 , utxo_to_spend = m1_utxos [0 ])[ - 1 ][ "new_utxo" ]
149
149
150
150
# P1
151
151
p1_tx = self .wallet .create_self_transfer (utxo_to_spend = m1_utxos [1 ])
@@ -191,7 +191,7 @@ def test_anc_count_limits(self):
191
191
192
192
# Two chains of 13 transactions each
193
193
for _ in range (2 ):
194
- chain_tip_utxo = self .wallet .send_self_transfer_chain (from_node = node , chain_length = 12 )
194
+ chain_tip_utxo = self .wallet .send_self_transfer_chain (from_node = node , chain_length = 12 )[ - 1 ][ "new_utxo" ]
195
195
# Save the 13th transaction for the package
196
196
tx = self .wallet .create_self_transfer (utxo_to_spend = chain_tip_utxo )
197
197
package_hex .append (tx ["hex" ])
@@ -234,7 +234,7 @@ def test_anc_count_limits_2(self):
234
234
self .log .info ("Check that in-mempool and in-package ancestors are calculated properly in packages" )
235
235
# Two chains of 12 transactions each
236
236
for _ in range (2 ):
237
- chaintip_utxo = self .wallet .send_self_transfer_chain (from_node = node , chain_length = 12 )
237
+ chaintip_utxo = self .wallet .send_self_transfer_chain (from_node = node , chain_length = 12 )[ - 1 ][ "new_utxo" ]
238
238
# last 2 transactions will be the parents of Pc
239
239
pc_parent_utxos .append (chaintip_utxo )
240
240
0 commit comments