(tx)
| 566 | self.log.info('Test that the same change addresses is used for the replacement transaction when possible') |
| 567 | |
| 568 | def get_change_address(tx): |
| 569 | tx_details = rbf_node.getrawtransaction(tx, 1) |
| 570 | txout_addresses = [txout['scriptPubKey']['address'] for txout in tx_details["vout"] if txout['scriptPubKey']['type'] != 'fee'] |
| 571 | return [address for address in txout_addresses if rbf_node.getaddressinfo(address)["ischange"]] |
| 572 | |
| 573 | # Check that there is only one change output |
| 574 | rbfid = spend_one_input(rbf_node, dest_address) |
no outgoing calls