Skip to content

Commit

Permalink
Optimization: reduce block signature retentions count (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Feb 16, 2024
1 parent 97c8fd7 commit e233410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/indexer/storage/block_signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (module *Module) saveBlockSignatures(
height types.Level,
) error {
retentionLevel := height - countOfStoringSignsInLevels
if retentionLevel > 0 {
if retentionLevel > 0 && height%10 == 0 { // make retention on every ten block
if err := tx.RetentionBlockSignatures(ctx, retentionLevel); err != nil {
return err
}
Expand Down

0 comments on commit e233410

Please sign in to comment.