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

Cleanup - Bank::reconfigure_token2_native_mint()#31817

Merged
Lichtso merged 1 commit intosolana-labs:masterfrom
Lichtso:cleanup/reconfigure_token2_native_mint
Jun 7, 2023
Merged

Cleanup - Bank::reconfigure_token2_native_mint()#31817
Lichtso merged 1 commit intosolana-labs:masterfrom
Lichtso:cleanup/reconfigure_token2_native_mint

Conversation

@Lichtso
Copy link
Copy Markdown
Contributor

@Lichtso Lichtso commented May 25, 2023

Problem

The epochs for this transition code have long passed, so it can be cleaned up.
See #13461 (comment) .

Summary of Changes

Removes Bank::reconfigure_token2_native_mint().

@Lichtso Lichtso force-pushed the cleanup/reconfigure_token2_native_mint branch from e86cbbf to 20bb855 Compare May 25, 2023 14:51
@mvines
Copy link
Copy Markdown
Contributor

mvines commented May 25, 2023

I suspect unfortunately that this change would break SPL Token wrapped SOL on solana-test-validator and any private dev cluster that starts from a new genesis config

@Lichtso
Copy link
Copy Markdown
Contributor Author

Lichtso commented May 25, 2023

Can't we adjust the genesis setup to account for that?

@mvines
Copy link
Copy Markdown
Contributor

mvines commented May 25, 2023

Yep I think that'd work!

@Lichtso Lichtso force-pushed the cleanup/reconfigure_token2_native_mint branch from 20bb855 to abb7261 Compare June 1, 2023 16:02
@Lichtso Lichtso force-pushed the cleanup/reconfigure_token2_native_mint branch from abb7261 to dbe9864 Compare June 7, 2023 14:23
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 7, 2023

Codecov Report

Merging #31817 (dbe9864) into master (989e613) will decrease coverage by 0.1%.
The diff coverage is 100.0%.

@@            Coverage Diff            @@
##           master   #31817     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         762      762             
  Lines      207721   207670     -51     
=========================================
- Hits       170137   170095     -42     
+ Misses      37584    37575      -9     

@mvines
Copy link
Copy Markdown
Contributor

mvines commented Jun 7, 2023

Latest iteration looks pretty good to me

@Lichtso Lichtso requested a review from mvines June 7, 2023 19:03
@Lichtso Lichtso merged commit c87ff87 into solana-labs:master Jun 7, 2023
@Lichtso Lichtso deleted the cleanup/reconfigure_token2_native_mint branch June 7, 2023 19:14
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