Skip to main content
logo

crisis

The crisis module is responsible for halting the blockchain under certain circumstances (e.g. if an invariant is broken). Invariants can be registered with the application during the application initialization process.

For more information, visit https://docs.cosmos.network/main/modules/crisis/

Message Types

Msg defines the bank Msg service.

tx.proto
Copy

_4
service Msg {
_4
// VerifyInvariant defines a method to verify a particular invariance.
_4
rpc VerifyInvariant(MsgVerifyInvariant) returns (MsgVerifyInvariantResponse);
_4
}

MsgVerifyInvariant

MsgVerifyInvariant represents a message to verify a particular invariance.

tx.proto
Copy

_10
message MsgVerifyInvariant {
_10
option (cosmos.msg.v1.signer) = "sender";
_10
_10
option (gogoproto.equal) = false;
_10
option (gogoproto.goproto_getters) = false;
_10
_10
string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_10
string invariant_module_name = 2;
_10
string invariant_route = 3;
_10
}

MsgVerifyInvariantResponse

MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type.

tx.proto
Copy

_1
message MsgVerifyInvariantResponse {}