Skip to main content

Crisis

ℹī¸info

JMES's crisis module inherits from the Cosmos SDK's crisis module. This document is a stub and mainly covers important JMES-specific notes on how it is used.

The crisis module stops block production by halting the blockchain when an invariant is broken. Invariants are set during the initialization process.

ConstantFee​

Because the gas cost of verifying an invariant is high, the crisis module utilizes a constant fee instead of the typical gas calculation method.

Genesis parameters​

The genesis parameters for the crisis module outlined in the Genesis Builder Script are as follows:


_5
# Crisis: change constant fee to 512 BJMES
_5
genesis['app_state']['crisis']['constant_fee'] = {
_5
'denom': DENOM_BJMES,
_5
'amount': '512000000',
_5
}