Skip to content

Implement Storage TTL Extension in update_system_param #3

Description

@therealjhay

System parameters are stored in persistent storage, which can expire if not extended when updated.

Requirements and context

  • Call env.storage().persistent().extend_ttl(&key, 100_000, 200_000) when updating a system parameter

Suggested execution

  • Locate update_system_param in governance_contract/src/lib.rs
  • Obtain the DataKey::SystemParam key
  • Add the extend_ttl call on the persistent storage key during updates

Example commit message
refactor: extend persistent storage TTL on system param updates

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Fields

    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