Feature-gate stake-program-v3 (bp #14232) (#14249)

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

* 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)

# Conflicts:
#	programs/stake/src/stake_instruction.rs
#	sdk/src/feature_set.rs

* Fix conflicts

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
mergify[bot]
2020-12-23 00:12:01 +00:00
committed by GitHub
parent 266c63f105
commit 7e4bd087ae
5 changed files with 2512 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,
),
]