add genesis stake placeholders (#6969)

* add investor stake placeholders

fixups

fixups

review comments, fixups

make more data-looky for easier management

rent may be zero

rework with more tables, derived keys

fixups

rebase-fix

fixups

fixups

* genesis is now too big to boot in 10 seconds
This commit is contained in:
Rob Walker
2019-11-21 12:05:31 -08:00
committed by GitHub
parent a2a9f1e331
commit 8a879faac7
20 changed files with 1379 additions and 122 deletions

View File

@@ -365,7 +365,7 @@ mod tests {
} else if sysvar::stake_history::check_id(&meta.pubkey) {
sysvar::stake_history::create_account(1, &StakeHistory::default())
} else if config::check_id(&meta.pubkey) {
config::create_account(1, &config::Config::default())
config::create_account(0, &config::Config::default())
} else if sysvar::rent::check_id(&meta.pubkey) {
sysvar::rent::create_account(1, &Rent::default())
} else {
@@ -588,7 +588,7 @@ mod tests {
KeyedAccount::new(
&config::id(),
false,
&mut config::create_account(1, &config::Config::default())
&mut config::create_account(0, &config::Config::default())
),
],
&serialize(&StakeInstruction::DelegateStake).unwrap(),