mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-08 08:43:06 +00:00
Fill BLOCKHASH and PREVRANDAO syscalls with dummy code (#1076)
This commit is contained in:
parent
0e23606e77
commit
63a6e70646
@ -1,8 +1,19 @@
|
||||
// Labels for unimplemented syscalls to make the kernel assemble.
|
||||
// Each label should be removed from this file once it is implemented.
|
||||
|
||||
// This is a temporary version that returns 0 on all inputs.
|
||||
// TODO: Fix this.
|
||||
global sys_blockhash:
|
||||
PANIC
|
||||
// stack: kexit_info, block_number
|
||||
%charge_gas_const(@GAS_BLOCKHASH)
|
||||
%stack (kexit_info, block_number) -> (kexit_info, 0)
|
||||
EXIT_KERNEL
|
||||
|
||||
// This is a temporary version that returns 0.
|
||||
// TODO: Fix this.
|
||||
// TODO: What semantics will this have for Edge?
|
||||
global sys_prevrandao:
|
||||
// TODO: What semantics will this have for Edge?
|
||||
PANIC
|
||||
// stack: kexit_info
|
||||
%charge_gas_const(@GAS_BASE)
|
||||
%stack (kexit_info) -> (kexit_info, 0)
|
||||
EXIT_KERNEL
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user