updated to latest randomx

This commit is contained in:
moneroexamples 2019-06-02 12:30:59 +08:00
parent 636179ac53
commit d32cc0df05
2 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -3,7 +3,8 @@
<H4>Block hash (height): {{blk_hash}} ({{blk_height}})</H4>
<h4>
Eight RandomX and correspoding assembly x86 programs used
to calcualte PoW hash of the block
to calcualte PoW hash of the block.<br/>The RandomX programs
are executed on RandomX virtual machine.
</h4>
{{#rx_codes}}