This PR enables a non-wallet functional test mempool_updatefromblock.py
to be run without wallet compiled, by using the MiniWallet proposed in #20078. This picks up from where #21999 left off.
Commit 1 of 2: MiniWallet changes only to minimize diffs for easier reviewing Commit 2 of 2: Refactor (renaming a function and variables)
The test run time decreases from 16.5s to 4.3s.