refactor: remove consensus messages (#21248)

This commit is contained in:
Marko
2024-08-12 14:19:13 +00:00
committed by GitHub
parent 810a542d6b
commit 3e413243db
15 changed files with 180 additions and 103 deletions
+6 -1
View File
@@ -3,12 +3,17 @@ package context
type (
execModeKey struct{}
cometInfoKey struct{}
initInfoKey struct{}
environmentKey struct{}
)
var (
ExecModeKey = execModeKey{}
// ExecModeKey is the context key for setting the execution mode.
ExecModeKey = execModeKey{}
// CometInfoKey is the context key for allowing modules to get CometInfo.
CometInfoKey = cometInfoKey{}
// InitInfoKey is the context key for setting consensus params from genesis in the consensus module.
InitInfoKey = initInfoKey{}
// EnvironmentContextKey is the context key for the environment.
// A caller should not assume the environment is available in each context.