Sigil documentation
ReferenceRust referencesigil-anomaly

sigil-anomaly · rules::gas_spike

Source declarations, signatures and documentation for rules::gas_spike.

Source: sigil/node/sigil-anomaly/src/rules/gas_spike.rs. SHA-256: ce8d1e37bee6ff1980d43454a35cd7f11ddda50994273ce0a74def412be640fd.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

rules::gas_spike::GasSpikeRule

Gas-spike detector.

Construct with [GasSpikeRule::new]; supply the multiplier threshold and a content-addressed RuleId derived from the rule's canonical configuration.

pub struct GasSpikeRule {

}

Source line: 41.

rules::gas_spike::GasSpikeRule::new

Build a new gas-spike rule.

The id should be the BLAKE3 hash of the rule's canonical serialized configuration: the (rule_kind, multiple) tuple encoded as canonical JSON. The validator-agent runtime computes this id when loading the rule from the on-chain registry.

pub fn new(id: RuleId, multiple: u64) -> Self;

Source line: 53.

On this page