New TMSP message BeginBlock

This commit is contained in:
Jae Kwon
2016-03-26 22:35:23 -07:00
parent 121db71f48
commit 82a411fca5
8 changed files with 151 additions and 64 deletions

View File

@ -68,6 +68,13 @@ func RequestInitChain(validators []*Validator) *Request {
}
}
func RequestBeginBlock(height uint64) *Request {
return &Request{
Type: MessageType_BeginBlock,
Height: height,
}
}
func RequestEndBlock(height uint64) *Request {
return &Request{
Type: MessageType_EndBlock,
@ -153,6 +160,12 @@ func ResponseInitChain() *Response {
}
}
func ResponseBeginBlock() *Response {
return &Response{
Type: MessageType_BeginBlock,
}
}
func ResponseEndBlock(validators []*Validator) *Response {
return &Response{
Type: MessageType_EndBlock,