cuprate_consensus_context

Module rx_vms

Source
Expand description

RandomX VM Cache

This module keeps track of the RandomX VM to calculate the next blocks proof-of-work, if the block needs a randomX VM and potentially more VMs around this height.

Structs§

  • A multithreaded randomX VM.
  • The randomX VMs cache, keeps the VM needed to calculate the current block’s proof-of-work hash (if a VM is needed) and a couple more around this VM.

Constants§

Functions§

  • Get the last amount of RX seeds, the top height returned here will not necessarily be the RX VM for the top block in the chain as VMs include some lag before a seed activates.