e2e: control access to state in Info calls (#7345)

This is probably belt and suspenders, but might help the apphash clarity.
This commit is contained in:
Sam Kleinman
2021-11-30 12:19:47 -05:00
committed by GitHub
parent 502f92bb97
commit cf5c7be4d8

View File

@@ -97,6 +97,9 @@ func NewApplication(cfg *Config) (*Application, error) {
// Info implements ABCI.
func (app *Application) Info(req abci.RequestInfo) abci.ResponseInfo {
app.state.RLock()
defer app.state.RUnlock()
return abci.ResponseInfo{
Version: version.ABCIVersion,
AppVersion: 1,