Skip to content

Commit

Permalink
Fix to also remove VoterParams and LastProofHash in PruneStates
Browse files Browse the repository at this point in the history
  • Loading branch information
Mdaiki0730 committed Nov 15, 2022
1 parent a00b7c1 commit fd4a2df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions state/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,16 @@ func (store dbStore) PruneStates(from int64, to int64) error {
}
}

err = batch.Delete(calcVoterParamsKey(h))
if err != nil {
return err
}

err = batch.Delete(calcProofHashKey(h))
if err != nil {
return err
}

err = batch.Delete(calcABCIResponsesKey(h))
if err != nil {
return err
Expand Down

0 comments on commit fd4a2df

Please sign in to comment.