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

Prune programs deployed in duplicate unconfirmed slot #32999

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Aug 25, 2023

Problem

Programs could be deployed in a duplicate slot. Once the slot is determined to be unconfirmed, the cache should be pruned of these programs.

Summary of Changes

Added a new method to prune cache for the programs deployed in a given slot
Call the method from replay stage from duplicate unconfirmed slot handler.

Fixes #

@pgarg66 pgarg66 force-pushed the prune-programs-dup-slot branch from 410a67c to 91ba493 Compare August 25, 2023 14:59
@pgarg66 pgarg66 marked this pull request as ready for review August 25, 2023 17:51
@pgarg66 pgarg66 added the v1.16 PRs that should be backported to v1.16 label Aug 25, 2023
@pgarg66 pgarg66 merged commit dbe4017 into solana-labs:master Aug 25, 2023
@pgarg66 pgarg66 deleted the prune-programs-dup-slot branch August 25, 2023 18:02
mergify bot pushed a commit that referenced this pull request Aug 25, 2023
* Prune programs deployed in duplicate unconfirmed slot

* unit test

(cherry picked from commit dbe4017)

# Conflicts:
#	core/src/replay_stage.rs
pgarg66 added a commit that referenced this pull request Aug 25, 2023
* Prune programs deployed in duplicate unconfirmed slot

* unit test

(cherry picked from commit dbe4017)
mergify bot added a commit that referenced this pull request Aug 25, 2023
…t of #32999) (#33003)

Prune programs deployed in duplicate unconfirmed slot (#32999)

* Prune programs deployed in duplicate unconfirmed slot

* unit test

(cherry picked from commit dbe4017)

Co-authored-by: Pankaj Garg <pankaj@solana.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
v1.16 PRs that should be backported to v1.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants