Fixes #21647
importprunedfunds only allowed importing transactions that credit the wallet
(checked via IsMine), rejecting transactions that spend from it. This could
leave a pruned wallet showing an incorrect balance. If a spending transaction
was removed with removeprunedfunds, it couldn’t be re-imported and would
fail with “No addresses in wallet correspond to included transaction”
The fix adds IsFromMe() alongside IsMine(), matching the pattern used
elsewhere in wallet code.
A functional test imports a transaction that spends from the wallet but has no outputs to it (entire UTXO sent externally), verifying the new code path.