Skip to content

Commit 5c54265

Browse files
committed
fix(transition_frontier/genesis): genesis account in ledger must be first, not last
1 parent de42f51 commit 5c54265

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

node/src/transition_frontier/genesis/transition_frontier_genesis_config.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ impl GenesisConfig {
429429
account
430430
}
431431

432-
let mut accounts = Vec::new();
432+
let mut accounts = genesis_account_iter().map(Ok).collect::<Vec<_>>();
433433

434434
// Process block producers and their delegators
435435
for (bp_balance, delegators) in block_producers {
@@ -476,11 +476,6 @@ impl GenesisConfig {
476476
}
477477
}
478478

479-
// Add genesis accounts
480-
for genesis_account in genesis_account_iter() {
481-
accounts.push(Ok(genesis_account));
482-
}
483-
484479
Self::build_ledger_from_accounts(accounts)
485480
}
486481

0 commit comments

Comments
 (0)