Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Rent should only be collected per block (not per transaction) #10088

Closed
@jstarry

Description

Problem

Rent is a protocol thing that happens to accounts outside of transactions but currently is closely tied to account creation transactions. This is an issue for a few reasons:

  1. Accounts could be charged rent more than once per block (if created / destroyed / created again)
  2. Rent affects the postBalance field in stored transaction status metadata and this effect is not currently transparent to clients (see: https://github.com/solana-labs/explorer/issues/118)
  3. Tying rent collection to transactions is inconsistent with how eager rent collection works (per block)

Proposed Solution

Instead of collecting rent during each transaction which creates accounts, wait to collect rent from newly created accounts until the end of a block.

Metadata

Assignees

No one assigned

    Labels

    locked issuestale[bot only] Added to stale content; results in auto-close after a week.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions