What is CryptoNight and why was it replaced?
CryptoNight was the mining algorithm Monero used before switching to RandomX on November 30, 2019. It was designed to make mining practical on ordinary computers, but specialized mining machines eventually overcame its defenses. Monero replaced it to give general-purpose processors a stronger role in mining.
What CryptoNight did
A mining algorithm is the set of rules your computer follows to do the work that helps secure a cryptocurrency network. Miners compete to produce a valid result, which lets them add a block—a batch of transactions—to the shared transaction record.
Monero launched on April 18, 2014, using CryptoNight as part of its original CryptoNote-based design. CryptoNote was the broader cryptocurrency technology; CryptoNight was its mining component.
CryptoNight was designed to be memory-hard. That means mining required repeated access to computer memory, not just fast calculations. Its original design used a small working area of roughly 2 MB for each mining task.
The goal was to reduce the advantage of purpose-built mining hardware. If ordinary computers could compete, more people could help secure the network.
Why its original defenses stopped being enough
Specialized machines called ASICs, short for application-specific integrated circuits, are chips built for one narrow job. A mining ASIC can do that job much more efficiently than an ordinary computer—if its designers can find an economical way to build one.
CryptoNight tried to make that difficult by requiring fast memory access. But difficult did not mean impossible. Manufacturers eventually developed ASICs that could mine CryptoNight efficiently.
That mattered because specialized hardware could leave you at a large disadvantage when mining with a normal computer. It also raised concerns about mining power becoming concentrated among hardware makers and operators with access to those machines.
CryptoNight had not stopped producing valid blocks. The problem was that it no longer served Monero’s hardware-accessibility goals well enough.
Why Monero chose RandomX instead
Before replacing CryptoNight entirely, Monero introduced modified versions intended to disrupt ASIC mining. These changes could make existing specialized machines less useful, but they created an ongoing cycle: change the algorithm, then wait for hardware makers to adapt.
RandomX was a more substantial change. Rather than relying mainly on CryptoNight’s small memory workspace, it makes miners execute changing, randomly generated programs alongside memory-intensive work.
That approach favors a CPU, the general-purpose processor inside your computer. CPUs are designed to handle varied instructions, which makes them a good fit for RandomX.
RandomX also uses much more memory in its fast mining mode: a dataset of about 2,080 MB, plus other memory needs. Its design aims to make a competitive specialized chip harder and less economical to build.
It is ASIC-resistant, not a promise that specialized hardware can never exist.
The bottom line
CryptoNight was replaced because specialized hardware had eroded its original advantage for ordinary computers. RandomX gave Monero a stronger CPU-focused mining design instead of relying on repeated CryptoNight tweaks.
If you see a browser miner advertising “CryptoNight mining,” do not assume it mines Monero today. Monero uses RandomX. Check what the service actually mines and whether it merely pays you in XMR; those are different things.
