mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 06:31:57 +00:00
add version/block/config to Info. add header to BeginBlock
This commit is contained in:
@@ -168,8 +168,7 @@ func (s *SocketServer) handleRequest(req *types.Request, responses chan<- *types
|
||||
case *types.Request_Flush:
|
||||
responses <- types.ToResponseFlush()
|
||||
case *types.Request_Info:
|
||||
data := s.app.Info()
|
||||
responses <- types.ToResponseInfo(data)
|
||||
responses <- types.ToResponseInfo(s.app.Info())
|
||||
case *types.Request_SetOption:
|
||||
so := r.SetOption
|
||||
logStr := s.app.SetOption(so.Key, so.Value)
|
||||
@@ -189,17 +188,13 @@ func (s *SocketServer) handleRequest(req *types.Request, responses chan<- *types
|
||||
case *types.Request_InitChain:
|
||||
if app, ok := s.app.(types.BlockchainAware); ok {
|
||||
app.InitChain(r.InitChain.Validators)
|
||||
responses <- types.ToResponseInitChain()
|
||||
} else {
|
||||
responses <- types.ToResponseInitChain()
|
||||
}
|
||||
responses <- types.ToResponseInitChain()
|
||||
case *types.Request_BeginBlock:
|
||||
if app, ok := s.app.(types.BlockchainAware); ok {
|
||||
app.BeginBlock(r.BeginBlock.Height)
|
||||
responses <- types.ToResponseBeginBlock()
|
||||
} else {
|
||||
responses <- types.ToResponseBeginBlock()
|
||||
app.BeginBlock(r.BeginBlock.Header)
|
||||
}
|
||||
responses <- types.ToResponseBeginBlock()
|
||||
case *types.Request_EndBlock:
|
||||
if app, ok := s.app.(types.BlockchainAware); ok {
|
||||
validators := app.EndBlock(r.EndBlock.Height)
|
||||
|
||||
Reference in New Issue
Block a user