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 [[https://github.com/bitcoin/bitcoin/pull/13339 | PR13339]]