In response to issue #30600, optimizations have been implemented to enhance test efficiency and readability:
This PR refactors the rpc_signrawtransactionwithkey.py
functional test to use MiniWallet for creating funding transactions. This simplifies the test code and improves performance by eliminating the need to mine new blocks for each funding transaction.
Key changes:
- Replaced custom
send_to_address
method with MiniWallet’ssend_to
method - Removed unnecessary setup of a clean chain and second node
- Simplified transaction creation and signing process