128 | +
129 | + self.log.debug("Check that node[1] will send the tx to node[0] even though it is already in the mempool")
130 | + connect_nodes(self.nodes[1], 0)
131 | + with self.nodes[1].assert_debug_log(["Force relaying tx {} from whitelisted peer=0".format(txid)]):
132 | + p2p_rebroadcast_wallet.send_txs_and_test([tx], self.nodes[1])
133 | + wait_until(lambda: txid in self.nodes[0].getrawmempool())
Is this what we really want? If the tx is already in node 0's mempool, wouldn't this always return right away?
Oh, I think my comment is unclear. It refers to node[1]'s mempool.
So node[1] will rebroadcast the tx from the wallet even though it is already in node[1]'s mempool
ah! that makes a lot more sense.