mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 14:21:14 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user