@@ -45,7 +45,7 @@ def test_chain_limits_helper(self, mempool_count, package_count):
4545 assert_equal (0 , node .getmempoolinfo ()["size" ])
4646 chain_hex = []
4747
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" ]
4949 # in-package transactions
5050 for _ in range (package_count ):
5151 tx = self .wallet .create_self_transfer (utxo_to_spend = chaintip_utxo )
@@ -100,13 +100,13 @@ def test_desc_count_limits(self):
100100
101101 package_hex = []
102102 # 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" ]
104104 # Pa
105105 pa_hex = self .wallet .create_self_transfer (utxo_to_spend = chain_a_tip_utxo )["hex" ]
106106 package_hex .append (pa_hex )
107107
108108 # 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" ]
110110 # Pb
111111 pb_hex = self .wallet .create_self_transfer (utxo_to_spend = chain_b_tip_utxo )["hex" ]
112112 package_hex .append (pb_hex )
@@ -145,7 +145,7 @@ def test_desc_count_limits_2(self):
145145 m1_utxos = self .wallet .send_self_transfer_multi (from_node = node , num_outputs = 2 )['new_utxos' ]
146146
147147 # 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" ]
149149
150150 # P1
151151 p1_tx = self .wallet .create_self_transfer (utxo_to_spend = m1_utxos [1 ])
@@ -191,7 +191,7 @@ def test_anc_count_limits(self):
191191
192192 # Two chains of 13 transactions each
193193 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" ]
195195 # Save the 13th transaction for the package
196196 tx = self .wallet .create_self_transfer (utxo_to_spend = chain_tip_utxo )
197197 package_hex .append (tx ["hex" ])
@@ -234,7 +234,7 @@ def test_anc_count_limits_2(self):
234234 self .log .info ("Check that in-mempool and in-package ancestors are calculated properly in packages" )
235235 # Two chains of 12 transactions each
236236 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" ]
238238 # last 2 transactions will be the parents of Pc
239239 pc_parent_utxos .append (chaintip_utxo )
240240
0 commit comments