mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-13 21:31:23 +00:00
Make fields in ResponseInfo be flat
This commit is contained in:
@ -93,9 +93,10 @@ func ToResponseFlush() *Response {
|
||||
}
|
||||
}
|
||||
|
||||
func ToResponseInfo(info string, tmspInfo *TMSPInfo, blockInfo *LastBlockInfo, configInfo *ConfigInfo) *Response {
|
||||
func ToResponseInfo(resInfo ResponseInfo) *Response {
|
||||
resInfoCopy := resInfo
|
||||
return &Response{
|
||||
Value: &Response_Info{&ResponseInfo{info, tmspInfo, blockInfo, configInfo}},
|
||||
Value: &Response_Info{&resInfoCopy},
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user