BREAKING NEWS! has been acquired by VC firm Morningstar Ventures. Read more

$195.33 -3.50%
XMR · 2w

Where can I find a simple script that verifies an arbitrary block from Monero?

I am learning about the mining process, but I am still very confused because RandomX is really complex. It would help a lot to see a working script that would do the following: * Receive a block number as initial argument * Fetch that block from the network (external API, from the local copy of the blockchain, from the locally running node) * Extract whatever it needs to calculate the hash, the nonce etc. * Verify that the block hash is valid Is there any simple script that does this? Because so far all the projects I found that do this are either Monero's official project (giant, complex, poorly documented), or outdated mining projects made in other languages, but also too complex to the point it is not easy to distinguish where a given concern starts and where it ends.
Go to self.Monero
Recent News