aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-10-03 13:33:07 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2016-10-13 20:15:17 +0200
commit890ac2563872f9b71b9863ad531c639e526df5d7 (patch)
tree10426b637a4417bd62777b4df6ffbd48924cfb45
parentfe1975a9740f30f1a1152276d7f93f3ca9fa611d (diff)
downloadbitcoin-890ac2563872f9b71b9863ad531c639e526df5d7.tar.xz
Fix overly-prescriptive p2p-segwit test for new fetch logic
Github-Pull: #8393 Rebased-From: be7555f0c03057bb5537cc42ca9d4937389f0670
-rwxr-xr-xqa/rpc-tests/p2p-segwit.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/qa/rpc-tests/p2p-segwit.py b/qa/rpc-tests/p2p-segwit.py
index ada5fba7f3..69bab38767 100755
--- a/qa/rpc-tests/p2p-segwit.py
+++ b/qa/rpc-tests/p2p-segwit.py
@@ -909,14 +909,6 @@ class SegWitTest(BitcoinTestFramework):
# But eliminating the witness should fix it
self.test_node.test_transaction_acceptance(tx, with_witness=False, accepted=True)
- # Verify that inv's to test_node come with getdata's for non-witness tx's
- # Just tweak the transaction, announce it, and verify we get a getdata
- # for a normal tx
- tx.vout[0].scriptPubKey = CScript([OP_TRUE, OP_TRUE])
- tx.rehash()
- self.test_node.announce_tx_and_wait_for_getdata(tx)
- assert(self.test_node.last_getdata.inv[0].type == 1)
-
# Cleanup: mine the first transaction and update utxo
self.nodes[0].generate(1)
assert_equal(len(self.nodes[0].getrawmempool()), 0)
@@ -1022,7 +1014,7 @@ class SegWitTest(BitcoinTestFramework):
def test_block_relay(self, segwit_activated):
print("\tTesting block relay")
- blocktype = 2|MSG_WITNESS_FLAG if segwit_activated else 2
+ blocktype = 2|MSG_WITNESS_FLAG
# test_node has set NODE_WITNESS, so all getdata requests should be for
# witness blocks.