mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-08 00:33:06 +00:00
Impl number opcode for interpreter
This commit is contained in:
parent
a17c6231a7
commit
60fed608ef
@ -350,7 +350,7 @@ impl<'a> Interpreter<'a> {
|
||||
0x40 => todo!(), // "BLOCKHASH",
|
||||
0x41 => todo!(), // "COINBASE",
|
||||
0x42 => self.run_timestamp(), // "TIMESTAMP",
|
||||
0x43 => todo!(), // "NUMBER",
|
||||
0x43 => self.run_number(), // "NUMBER",
|
||||
0x44 => todo!(), // "DIFFICULTY",
|
||||
0x45 => todo!(), // "GASLIMIT",
|
||||
0x46 => todo!(), // "CHAINID",
|
||||
@ -663,6 +663,10 @@ impl<'a> Interpreter<'a> {
|
||||
self.push(self.get_global_metadata_field(GlobalMetadata::BlockTimestamp))
|
||||
}
|
||||
|
||||
fn run_number(&mut self) {
|
||||
self.push(self.get_global_metadata_field(GlobalMetadata::BlockNumber))
|
||||
}
|
||||
|
||||
fn run_prover_input(&mut self) -> anyhow::Result<()> {
|
||||
let prover_input_fn = self
|
||||
.prover_inputs_map
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user