@@ -1869,16 +1869,11 @@ def test_non_standard_witness(self):
1869
1869
1870
1870
# Stack element size over 80 bytes is non-standard
1871
1871
p2wsh_txs [1 ].wit .vtxinwit [0 ].scriptWitness .stack = [pad * 81 ] * 100 + [scripts [1 ]]
1872
- # It can't be used to blind a node to the transaction
1873
- self .std_node .announce_tx_and_wait_for_getdata (p2wsh_txs [1 ])
1874
- self .std_node .test_transaction_acceptance (p2wsh_txs [1 ], True , False , b'bad-witness-nonstandard' )
1875
- self .std_node .announce_tx_and_wait_for_getdata (p2wsh_txs [1 ])
1876
1872
self .std_node .test_transaction_acceptance (p2wsh_txs [1 ], True , False , b'bad-witness-nonstandard' )
1877
1873
# Non-standard nodes should accept
1878
1874
self .test_node .test_transaction_acceptance (p2wsh_txs [1 ], True , True )
1879
1875
# Standard nodes should accept if element size is not over 80 bytes
1880
1876
p2wsh_txs [1 ].wit .vtxinwit [0 ].scriptWitness .stack = [pad * 80 ] * 100 + [scripts [1 ]]
1881
- self .std_node .announce_tx_and_wait_for_getdata (p2wsh_txs [1 ])
1882
1877
self .std_node .test_transaction_acceptance (p2wsh_txs [1 ], True , True )
1883
1878
1884
1879
# witnessScript size at 3600 bytes is standard
@@ -1897,13 +1892,9 @@ def test_non_standard_witness(self):
1897
1892
self .std_node .test_transaction_acceptance (p2sh_txs [0 ], True , False , b'bad-witness-nonstandard' )
1898
1893
self .test_node .test_transaction_acceptance (p2sh_txs [0 ], True , True )
1899
1894
p2sh_txs [1 ].wit .vtxinwit [0 ].scriptWitness .stack = [pad * 81 ] * 100 + [scripts [1 ]]
1900
- self .std_node .announce_tx_and_wait_for_getdata (p2sh_txs [1 ])
1901
- self .std_node .test_transaction_acceptance (p2sh_txs [1 ], True , False , b'bad-witness-nonstandard' )
1902
- self .std_node .announce_tx_and_wait_for_getdata (p2sh_txs [1 ])
1903
1895
self .std_node .test_transaction_acceptance (p2sh_txs [1 ], True , False , b'bad-witness-nonstandard' )
1904
1896
self .test_node .test_transaction_acceptance (p2sh_txs [1 ], True , True )
1905
1897
p2sh_txs [1 ].wit .vtxinwit [0 ].scriptWitness .stack = [pad * 80 ] * 100 + [scripts [1 ]]
1906
- self .std_node .announce_tx_and_wait_for_getdata (p2sh_txs [1 ])
1907
1898
self .std_node .test_transaction_acceptance (p2sh_txs [1 ], True , True )
1908
1899
p2sh_txs [2 ].wit .vtxinwit [0 ].scriptWitness .stack = [pad , pad , scripts [2 ]]
1909
1900
self .test_node .test_transaction_acceptance (p2sh_txs [2 ], True , True )
0 commit comments