BeginBlock(hash, header)

This commit is contained in:
Ethan Buchman
2016-11-16 13:32:18 -05:00
parent 7901825ad9
commit ddb2b01631
10 changed files with 158 additions and 143 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ func (s *SocketServer) handleRequest(req *types.Request, responses chan<- *types
responses <- types.ToResponseInitChain()
case *types.Request_BeginBlock:
if app, ok := s.app.(types.BlockchainAware); ok {
app.BeginBlock(r.BeginBlock.Header)
app.BeginBlock(r.BeginBlock.Hash, r.BeginBlock.Header)
}
responses <- types.ToResponseBeginBlock()
case *types.Request_EndBlock: