Update store.go

Revert to SetSync for saveABCIResponses() as per Ethan's feedback
This commit is contained in:
Jae Kwon 2018-07-20 14:38:27 -07:00 committed by GitHub
parent 8128627f08
commit b41b89732d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ func LoadABCIResponses(db dbm.DB, height int64) (*ABCIResponses, error) {
// This is useful in case we crash after app.Commit and before s.Save().
// Responses are indexed by height so they can also be loaded later to produce Merkle proofs.
func saveABCIResponses(db dbm.DB, height int64, abciResponses *ABCIResponses) {
db.Set(calcABCIResponsesKey(height), abciResponses.Bytes())
db.SetSync(calcABCIResponsesKey(height), abciResponses.Bytes())
}
//-----------------------------------------------------------------------------