mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-05-24 02:39:25 +00:00
Fix sys_blockhash (#1285)
This commit is contained in:
parent
2aeecc3dd8
commit
49ca63ee0f
@ -241,6 +241,8 @@ global sys_blockhash:
|
|||||||
SWAP1
|
SWAP1
|
||||||
// stack: block_number, kexit_info
|
// stack: block_number, kexit_info
|
||||||
%blockhash
|
%blockhash
|
||||||
|
// stack: blockhash, kexit_info
|
||||||
|
SWAP1
|
||||||
EXIT_KERNEL
|
EXIT_KERNEL
|
||||||
|
|
||||||
global blockhash:
|
global blockhash:
|
||||||
@ -262,7 +264,6 @@ global blockhash:
|
|||||||
// stack: block_hash_number, retdest
|
// stack: block_hash_number, retdest
|
||||||
%mload_kernel(@SEGMENT_BLOCK_HASHES)
|
%mload_kernel(@SEGMENT_BLOCK_HASHES)
|
||||||
SWAP1 JUMP
|
SWAP1 JUMP
|
||||||
JUMP
|
|
||||||
|
|
||||||
%macro blockhash
|
%macro blockhash
|
||||||
// stack: block_number
|
// stack: block_number
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user