var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=1&rec=1&url=https://docs.terra.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

Crisis

ℹ️info

Terra's crisis module inherits from the Cosmos SDK's crisis module. This document is a stub and mainly covers important Terra-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 uses 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 LUNA
_5
genesis['app_state']['crisis']['constant_fee'] = {
_5
'denom': DENOM_LUNA,
_5
'amount': '512000000',
_5
}