Skip to content

Storage cleanup and archiving #584

@nafiuishaaq

Description

@nafiuishaaq

Description:
Implement functions to archive or delete old, finalized sessions to prevent unbounded storage growth and high ledger fees.

Acceptance Criteria:

archive_session(session_id) — moves session from persistent to archive storage.

Archived sessions have minimal data (hash of original).

delete_archived_session(session_id) — permanently removes after archive period.

Admin sets archive_after_ledgers (e.g., archive sessions finalized > 30 days ago).

batch_archive_sessions(limit: u32) — gas-limited batch cleanup.

Emits SessionArchived, SessionDeleted events.

Archived sessions cannot be restored or modified.

Labels: maintenance, gas-optimization, storage

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions