> Fixes #18858.
>
> It seems like `GetValueIn` was added in PR748 ("Pay-to-script-hash (OP_EVAL replacement)", merged in 2012) and the last use in validation code was removed in PR8498 ("Near-Bugfix: Optimization: Minimize the number of times it is checked that no money...", merged in 2017).
This is a backport of Core PR18859