Disclosure: Btcd consensus bugs due to usage of signed transaction version

Here is a PR to add a static test vector that tests this logic in bitcoin core:

Here is what the patch looks like to fix this in bitcoin-s: