def METHOD_NAME(self, node, spend, size=1000000):
    current_size = 0
    tx_count = 0
    while current_size < size:
        tx = self.create_tx_with_large_script(spend, 0)
        current_size = current_size + len(tx.serialize())
        node.p2p.send_txs_and_test([tx], node, success=True)
        tx_count = tx_count + 1
    self.log.info("    Total tx count %d"%tx_count)