You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Keeper of the `x/consensus` module provides the following functions:
44
+
45
+
*`Params`: Retrieves the current consensus parameters.
46
+
47
+
*`UpdateParams`: Updates the consensus parameters. Only the authority can perform this operation.
48
+
49
+
*`BlockParams`: Returns the maximum gas and bytes allowed in a block.
50
+
51
+
*`ValidatorPubKeyTypes`: Provides the list of public key types allowed for validators.
52
+
53
+
*`EvidenceParams`: Returns the evidence parameters, including maximum age and bytes.
54
+
55
+
*`AppVersion`: Returns the current application version.
56
+
57
+
58
+
Note: It is recommended to use the `x/consensus` module keeper to get consensus params instead of accessing them through the context.
38
59
39
-
The consensus module provides methods to Set and Get consensus params. It is recommended to use the `x/consensus` module keeper to get consensus params instead of accessing them through the context.
40
60
41
61
## Messages
42
62
@@ -45,7 +65,7 @@ The consensus module provides methods to Set and Get consensus params. It is rec
0 commit comments