This commit is contained in:
Sam Ricotta
2022-08-03 14:06:07 +02:00
parent 2c31b39030
commit c9b8386d1c
4 changed files with 6 additions and 7 deletions

View File

@@ -60,8 +60,6 @@ linters-settings:
# check-shadowing: true
revive:
min-confidence: 0
maligned:
suggest-new: true
misspell:
locale: US
ignore-words:

View File

@@ -78,7 +78,7 @@ func loadStateAndBlockStore(config *cfg.Config) (*store.BlockStore, state.Store,
return nil, nil, err
}
stateStore := state.NewStore(stateDB, state.StoreOptions{
DiscardABCIResponses: cfg.RPC.DiscardABCIResponses,
DiscardABCIResponses: config.RPC.DiscardABCIResponses,
})
return blockStore, stateStore, nil

View File

@@ -43,6 +43,6 @@ func ValidateValidatorUpdates(abciUpdates []abci.ValidatorUpdate, params tmproto
// SaveValidatorsInfo is an alias for the private saveValidatorsInfo method in
// store.go, exported exclusively and explicitly for testing.
func SaveValidatorsInfo(db dbm.DB, height, lastHeightChanged int64, valSet *types.ValidatorSet) error {
stateStore := dbStore{db}
stateStore := dbStore{db, StoreOptions{DiscardABCIResponses: false}}
return stateStore.saveValidatorsInfo(height, lastHeightChanged, valSet)
}

View File

@@ -439,10 +439,11 @@ func createEvidenceReactor(config *cfg.Config, dbProvider DBProvider,
if err != nil {
return nil, nil, err
}
stateStore := sm.NewStore(stateDB, sm.StoreOptions{
DiscardABCIResponses: config.RPC.DiscardABCIResponses,
})
evidenceLogger := logger.With("module", "evidence")
evidencePool, err := evidence.NewPool(logger, evidenceDB, sm.NewStore(stateDB, sm.StoreOptions{
DiscardABCIResponses: cfg.RPC.DiscardABCIResponses,
}), blockStore)
evidencePool, err := evidence.NewPool( evidenceDB, stateStore , blockStore)
if err != nil {
return nil, nil, err
}