mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
Implement Init/Sync Validators
This commit is contained in:
@ -61,6 +61,19 @@ func RequestQuery(queryBytes []byte) *Request {
|
||||
}
|
||||
}
|
||||
|
||||
func RequestInitValidators(validators []*Validator) *Request {
|
||||
return &Request{
|
||||
Type: MessageType_InitValidators,
|
||||
Validators: validators,
|
||||
}
|
||||
}
|
||||
|
||||
func RequestSyncValidators() *Request {
|
||||
return &Request{
|
||||
Type: MessageType_SyncValidators,
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
func ResponseException(errStr string) *Response {
|
||||
@ -132,6 +145,19 @@ func ResponseQuery(code CodeType, result []byte, log string) *Response {
|
||||
}
|
||||
}
|
||||
|
||||
func ResponseInitValidators() *Response {
|
||||
return &Response{
|
||||
Type: MessageType_InitValidators,
|
||||
}
|
||||
}
|
||||
|
||||
func ResponseSyncValidators(validators []*Validator) *Response {
|
||||
return &Response{
|
||||
Type: MessageType_SyncValidators,
|
||||
Validators: validators,
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
// Write proto message, length delimited
|
||||
|
Reference in New Issue
Block a user