move genesis to new Entry generation
This commit is contained in:
@ -6,7 +6,8 @@ extern crate solana;
|
|||||||
use atty::{is, Stream};
|
use atty::{is, Stream};
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
use solana::bank::MAX_ENTRY_IDS;
|
use solana::bank::MAX_ENTRY_IDS;
|
||||||
use solana::entry::{next_entry, Entry};
|
use solana::entry::next_entry;
|
||||||
|
use solana::ledger::next_entries;
|
||||||
use solana::mint::MintDemo;
|
use solana::mint::MintDemo;
|
||||||
use solana::signature::{GenKeys, KeyPairUtil};
|
use solana::signature::{GenKeys, KeyPairUtil};
|
||||||
use solana::transaction::Transaction;
|
use solana::transaction::Transaction;
|
||||||
@ -74,6 +75,8 @@ fn main() {
|
|||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
eprintln!("Logging the creation of {} accounts...", num_accounts);
|
eprintln!("Logging the creation of {} accounts...", num_accounts);
|
||||||
let entry = Entry::new(&last_id, 0, transactions);
|
let entries = next_entries(&last_id, 0, transactions);
|
||||||
println!("{}", serde_json::to_string(&entry).unwrap());
|
for entry in entries {
|
||||||
|
println!("{}", serde_json::to_string(&entry).unwrap());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user