Function difficulty

pub fn difficulty<WIRE, H>(context: InstructionContext<'_, H, WIRE>)
where WIRE: InterpreterTypes, H: Host + ?Sized,
Expand description

Implements the DIFFICULTY/PREVRANDAO instruction.

Pushes the block difficulty (pre-merge) or prevrandao (post-merge) onto the stack.