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

Consider correcting Bank::slots_per_year drift #10093

Closed as not planned
Closed as not planned
@mvines

Description

@mvines

Similarly to #9874, inflation and rent calculations are based on a theoretical number of slots per year:

solana/runtime/src/bank.rs

Lines 939 to 943 in 5e89bd8

self.slots_per_year = years_as_slots(
1.0,
&genesis_config.poh_config.target_tick_duration,
self.ticks_per_slot,
);

At the time of this issue, the actual slots_per_year rate appears to be about 1 week ahead of the theoretical, meaning that inflation will taper faster than expected and rent will become due sooner:

$ solana block-time
Block: 11525626
Date: 2020-05-17T17:07:27Z (UnixTimestamp: 1589735247)

$ solana cluster-date 
Block: 11525640
Date: 2020-05-08T23:06:38Z (UnixTimestamp: 1588979198)

Let's decide if this even is a problem first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions