Fixes #26290.
This updates RPC address validation to return a more specific error when an address is valid for a different network than the one the node is running on.
Changes:
- add a shared helper to detect different-network addresses
- use it in
generatetoaddress - use it in the raw-address fallback path of
generateblock - use it for
changeAddress/change_addressinwalletcreatefundedpsbt - keep existing generic errors for malformed addresses
Tests:
test/functional/rpc_generate.pytest/functional/rpc_psbt.py