refactor: remove consensus messages (#21248)
This commit is contained in:
+12
-14
@@ -21,26 +21,24 @@ type QueryResponse struct {
|
||||
}
|
||||
|
||||
type BlockRequest[T transaction.Tx] struct {
|
||||
Height uint64
|
||||
Time time.Time
|
||||
Hash []byte
|
||||
ChainId string
|
||||
AppHash []byte
|
||||
Txs []T
|
||||
ConsensusMessages []transaction.Msg
|
||||
Height uint64
|
||||
Time time.Time
|
||||
Hash []byte
|
||||
ChainId string
|
||||
AppHash []byte
|
||||
Txs []T
|
||||
|
||||
// IsGenesis indicates if this block is the first block of the chain.
|
||||
IsGenesis bool
|
||||
}
|
||||
|
||||
type BlockResponse struct {
|
||||
Apphash []byte
|
||||
ConsensusMessagesResponse []transaction.Msg
|
||||
ValidatorUpdates []appmodulev2.ValidatorUpdate
|
||||
PreBlockEvents []event.Event
|
||||
BeginBlockEvents []event.Event
|
||||
TxResults []TxResult
|
||||
EndBlockEvents []event.Event
|
||||
Apphash []byte
|
||||
ValidatorUpdates []appmodulev2.ValidatorUpdate
|
||||
PreBlockEvents []event.Event
|
||||
BeginBlockEvents []event.Event
|
||||
TxResults []TxResult
|
||||
EndBlockEvents []event.Event
|
||||
}
|
||||
|
||||
type RequestInitChain struct {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user