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

Previously we wouldn’t care about the `txnouttype`, but after 4e91820531889e309dc4335fe0de8229c6426040 we `switch` on the type.
You can view, comment on, or merge this pull request online at:

https://github.com/bitcoin/bitcoin/pull/13351

— Commit Summary —

* wallet: Prevent segfault when sending to unspendable witness

— File Changes —

M src/script/standard.cpp (1)
M src/test/script_standard_tests.cpp (26)

— Patch Links —

https://github.com/bitcoin/bitcoin/pull/13351.patch
https://github.com/bitcoin/bitcoin/pull/13351.diff

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