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