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
This commit is contained in:
Tyera Eulberg
2020-12-22 11:20:38 -07:00
committed by GitHub
parent bfcfdcf0ee
commit 7042f11791
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,
),
]