@@ -403,12 +403,12 @@ func (s *DefaultStore) PruneBlocks(ctx context.Context, height uint64) error {
403403 }
404404
405405 // Delete per-height DA metadata associated with this height, if any.
406- if err := batch .Delete (ctx , ds .NewKey (getMetaKey (GetHeightToDAHeightHeaderKey (h )))); err != nil {
406+ if err := batch .Delete (ctx , ds .NewKey (GetMetaKey (GetHeightToDAHeightHeaderKey (h )))); err != nil {
407407 if ! errors .Is (err , ds .ErrNotFound ) {
408408 return fmt .Errorf ("failed to delete header DA height metadata at height %d during pruning: %w" , h , err )
409409 }
410410 }
411- if err := batch .Delete (ctx , ds .NewKey (getMetaKey (GetHeightToDAHeightDataKey (h )))); err != nil {
411+ if err := batch .Delete (ctx , ds .NewKey (GetMetaKey (GetHeightToDAHeightDataKey (h )))); err != nil {
412412 if ! errors .Is (err , ds .ErrNotFound ) {
413413 return fmt .Errorf ("failed to delete data DA height metadata at height %d during pruning: %w" , h , err )
414414 }
@@ -423,7 +423,7 @@ func (s *DefaultStore) PruneBlocks(ctx context.Context, height uint64) error {
423423 }
424424
425425 // Persist the updated last pruned height.
426- if err := batch .Put (ctx , ds .NewKey (getMetaKey (LastPrunedBlockHeightKey )), encodeHeight (height )); err != nil {
426+ if err := batch .Put (ctx , ds .NewKey (GetMetaKey (LastPrunedBlockHeightKey )), encodeHeight (height )); err != nil {
427427 return fmt .Errorf ("failed to update last pruned height: %w" , err )
428428 }
429429
0 commit comments