Fill BLOCKHASH and PREVRANDAO syscalls with dummy code (#1076)

This commit is contained in:
wborgeaud 2023-06-07 10:13:51 +02:00 committed by GitHub
parent 0e23606e77
commit 63a6e70646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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