diff --git a/src/page.h b/src/page.h index 614c2d7..a6d228c 100644 --- a/src/page.h +++ b/src/page.h @@ -7170,6 +7170,7 @@ get_randomx_code(uint64_t blk_height, randomx::Program prg; + randomx::RegisterFile reg; for (int chain = 0; chain < RANDOMX_PROGRAM_COUNT - 1; ++chain) { @@ -7178,7 +7179,8 @@ get_randomx_code(uint64_t blk_height, rx_vm->getRegisterFile(), sizeof(randomx::RegisterFile), nullptr, 0); - prg = *(rx_vm->getProgram()); + prg = rx_vm->getProgram(); + reg = *(rx_vm->getRegisterFile()); stringstream ss, ss2; ss << prg; @@ -7193,7 +7195,7 @@ get_randomx_code(uint64_t blk_height, rx_vm->run(&tempHash); - prg = *(rx_vm->getProgram()); + prg = rx_vm->getProgram(); stringstream ss, ss2; ss << prg; diff --git a/src/templates/randomx.html b/src/templates/randomx.html index 02f876c..bc59100 100644 --- a/src/templates/randomx.html +++ b/src/templates/randomx.html @@ -3,7 +3,8 @@

Block hash (height): {{blk_hash}} ({{blk_height}})

Eight RandomX and correspoding assembly x86 programs used - to calcualte PoW hash of the block + to calcualte PoW hash of the block.
The RandomX programs + are executed on RandomX virtual machine.

{{#rx_codes}}