test: Check wallet name in -walletnotify script (João Barbosa)
wallet: Replace %w by wallet name in -walletnotify script (João Barbosa)
Pull request description:
Fixes #13237.
https://github.com/bitcoin/bitcoin/pull/13339/files
Backport of Core PR13339