scripted-diff: test: Rename send_message to send_without_ping
send_message only drops the bytes in a buffer and a sync is needed to
avoid intermittent test issues. Change the name of the method to make
this more apparent during review.
-BEGIN VERIFY SCRIPT-
sed -i 's/send_message(/send_without_ping(/g' $( git grep -l 'send_message(' )
-END VERIFY SCRIPT-
This commit is contained in:
35 files changed
+145
-145
No files matched your search
@@ -312,7 +312,7 @@ class OrphanHandlingTest(BitcoinTestFramework):
|
||||
# Even though the peer would send a notfound for the "old" confirmed transaction, the node
|
||||
# doesn't give up on the orphan. Once all of the missing parents are received, it should be
|
||||
# submitted to mempool.
|
||||
peer.send_message(msg_notfound(vec=[CInv(MSG_WITNESS_TX, int(txid_conf_old, 16))]))
|
||||
peer.send_without_ping(msg_notfound(vec=[CInv(MSG_WITNESS_TX, int(txid_conf_old, 16))]))
|
||||
# Sync with ping to ensure orphans are reconsidered
|
||||
peer.send_and_ping(msg_tx(missing_tx["tx"]))
|
||||
assert_equal(node.getmempoolentry(orphan["txid"])["ancestorcount"], 3)
|
||||
@@ -611,7 +611,7 @@ class OrphanHandlingTest(BitcoinTestFramework):
|
||||
tx_child_1 = self.wallet.create_self_transfer(utxo_to_spend=tx_parent_1["new_utxo"])
|
||||
parent_orphans.append(tx_parent_1["tx"])
|
||||
orphans.append(tx_child_1["tx"])
|
||||
peer_1.send_message(msg_tx(tx_child_1["tx"]))
|
||||
peer_1.send_without_ping(msg_tx(tx_child_1["tx"]))
|
||||
|
||||
peer_1.sync_with_ping()
|
||||
orphanage = node.getorphantxs()
|
||||
|
||||
Reference in new issue
Block a user