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

remove dated cost checking feature #29598

Merged

Conversation

tao-stones
Copy link
Contributor

@tao-stones tao-stones commented Jan 9, 2023

Problem

An inactivated feature (#18994) that meant to check block cost limits during replay is dated - it only checks accumulates transaction costs against block limit, which is only a subset of cost_tracker.would_fit(). Should symmetrically use cost_tracker in replay (in separate PR)

Summary of Changes

  • remove inactivated feature, and its direct implementation.

Fixes #

Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a quick chat with Tao, and the idea that had been previously discussed was to remove this never-activated feature and use a new one for the more sophisticated cost_tracker instead of re-using the feature. Since we never activated, no risks for change of behavior to break consensus with ripping this out, and we are just ripping out dead code. LGTM!

$ solana feature status 2ry7ygxiYURULZCrypHhveanvP5tzZ4toRwVp89oCNSj
Feature                                      | Status                  | Activation Slot | Description
2ry7ygxiYURULZCrypHhveanvP5tzZ4toRwVp89oCNSj | inactive                | NA              | validator checks block cost against max limit in realtime, reject if exceeds.

Feature activation is not allowed at this time

$ solana feature status -ut 2ry7ygxiYURULZCrypHhveanvP5tzZ4toRwVp89oCNSj
Feature                                      | Status                  | Activation Slot | Description
2ry7ygxiYURULZCrypHhveanvP5tzZ4toRwVp89oCNSj | inactive                | NA              | validator checks block cost against max limit in realtime, reject if exceeds.

Feature activation is not allowed at this time

$ solana feature status -ud 2ry7ygxiYURULZCrypHhveanvP5tzZ4toRwVp89oCNSj
Feature                                      | Status                  | Activation Slot | Description
2ry7ygxiYURULZCrypHhveanvP5tzZ4toRwVp89oCNSj | inactive                | NA              | validator checks block cost against max limit in realtime, reject if exceeds.

Feature activation is not allowed at this time

@tao-stones tao-stones merged commit 3d63f93 into solana-labs:master Jan 11, 2023
mergify bot pushed a commit that referenced this pull request Jan 11, 2023
(cherry picked from commit 3d63f93)

# Conflicts:
#	ledger/src/blockstore_processor.rs
mergify bot pushed a commit that referenced this pull request Jan 11, 2023
(cherry picked from commit 3d63f93)

# Conflicts:
#	ledger/src/blockstore_processor.rs
tao-stones added a commit that referenced this pull request Jan 12, 2023
* remove dated cost checking feature (#29598)

(cherry picked from commit 3d63f93)

Co-authored-by: Tao Zhu <[email protected]>
Co-authored-by: Tao Zhu <[email protected]>
tao-stones added a commit that referenced this pull request Jan 13, 2023
* remove dated cost checking feature (#29598)

(cherry picked from commit 3d63f93)

Co-authored-by: Tao Zhu <[email protected]>
Co-authored-by: Tao Zhu <[email protected]>
t-nelson added a commit to t-nelson/solana that referenced this pull request Mar 14, 2023
t-nelson added a commit that referenced this pull request Mar 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants