BCH May 2023 Upgrade: Enforce tx nVersion in consensus rather than standardness
Summary
This implements the following CHIP: https://gitlab.com/bitcoin.cash/chips/-/blob/3b0e5d55e1e139046794e850287b7acb795f4e66/CHIP-2021-01-Restrict%20Transaction%20Versions.md See discussion here: https://bitcoincashresearch.org/t/restrict-transaction-version-numbers/173
Right now, standard relay rules restrict tx.nVersion
to either 1
or 2
. After May 2023 upgrade, we will also restrict tx.nVersion
to be either 1
or 2
as a consensus rule.
Test Plan
ninja all check-all