[bitcoin/bitcoin] wallet: Prevent segfault when sending to unspendable witness (#13351)

utACK fa36aa7 modulo @promag:s suggestion – putting it above is more robust.

How was this issue found?

Would running the test suite under `valgrind` have catched this, or was this condition simply not covered by tests?

Добавить комментарий