switch boolean

This commit is contained in:
Callum Waters
2022-07-25 18:38:49 +02:00
parent 07501bd7cc
commit d9342a2db6

View File

@@ -423,7 +423,7 @@ func ABCIResponsesResultsHash(ar *tmstate.ABCIResponses) []byte {
// database. If the node has DiscardABCIResponses set to true, ErrABCIResponsesNotPersisted
// is persisted. If not found, ErrNoABCIResponsesForHeight is returned.
func (store dbStore) LoadABCIResponses(height int64) (*tmstate.ABCIResponses, error) {
if !store.discardABCIResponses {
if store.discardABCIResponses {
return nil, ErrABCIResponsesNotPersisted
}