solhint

not-rely-on-block-hash

Recommended Badge Category Badge Default Severity Badge warn

The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.

Description

Do not rely on “block.blockhash”. Miners can influence its value.

Options

This rule accepts a string option of rule severity. Must be one of “error”, “warn”, “off”. Default to warn.

Example Config

{
  "rules": {
    "not-rely-on-block-hash": "warn"
  }
}

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 1.1.6

Resources