[policy] make v3 transactions standard

Note that, as CURRENT_VERSION = 2, the wallet will not make transactions
with nVersion=3 yet.
This commit is contained in:
glozow
2024-02-27 22:16:51 +00:00
parent 052ede75af
commit 539404fe0f
3 changed files with 18 additions and 18 deletions

View File

@@ -287,7 +287,7 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
self.log.info('Some nonstandard transactions')
tx = tx_from_hex(raw_tx_reference)
tx.nVersion = 3 # A version currently non-standard
tx.nVersion = 4 # A version currently non-standard
self.check_mempool_result(
result_expected=[{'txid': tx.rehash(), 'allowed': False, 'reject-reason': 'version'}],
rawtxs=[tx.serialize().hex()],