Use lamports in genesis (#7631) (#7633)

automerge
This commit is contained in:
mergify[bot]
2019-12-29 10:17:16 -08:00
committed by Grimes
parent c004c726e7
commit 713e86670d
4 changed files with 68 additions and 71 deletions

View File

@@ -721,6 +721,7 @@ impl Bank {
self.capitalization
.fetch_add(account.lamports, Ordering::Relaxed);
}
for (pubkey, account) in genesis_config.rewards_pools.iter() {
if self.get_account(&pubkey).is_some() {
panic!("{} repeated in genesis config", pubkey);