Skip to main content

difficulty

Function difficulty 

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

Implements the DIFFICULTY/PREVRANDAO instruction.

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