mempool_accept_wtxid.py
by using a pre-mined chain instead of generating new blocks, switching to MiniWallet to avoid RPC calls for signing transactions, replacing class ValidWitnessMalleatedTx
with valid_witness_malleate_tx()
function, and simplifying the code by using txid.hex directly.