Feature-gate stake-program-v3 (#14232) (#14250)

* Remove deprecated legacy stake program

* Add legacy stake program

* Strip out duplicative legacy code

* Feature-deploy stake-program-v3

* Add ownership check in stake processor

(cherry picked from commit 7042f11791)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
mergify[bot]
2020-12-22 19:42:30 +00:00
committed by GitHub
parent 74d48910e2
commit f15add2a74
5 changed files with 2513 additions and 338 deletions

View File

@@ -104,11 +104,11 @@ fn feature_builtins() -> Vec<(Builtin, Pubkey, ActivationType)> {
),
(
Builtin::new(
"stake_program_v2",
"stake_program_v3",
solana_stake_program::id(),
solana_stake_program::stake_instruction::process_instruction,
),
feature_set::stake_program_v2::id(),
feature_set::stake_program_v3::id(),
ActivationType::NewVersion,
),
]