Add debug logs to test_harness prepare

This commit is contained in:
Paul Hauner 2019-03-08 15:09:33 +11:00
parent e76b5e1c3a
commit 6efe2ad3e3
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6

View File

@ -27,10 +27,14 @@ pub fn prepare(matches: &ArgMatches, spec: &ChainSpec) {
// Ensure that keypairs is dropped before writing deposits, this provides a big memory saving
// for large validator_counts.
let deposits = {
debug!("Creating {} keypairs...", validator_count);
let keypairs = generate_deterministic_keypairs(validator_count);
debug!("Writing {} keypairs to file...", validator_count);
write_keypairs(output_dir, &keypairs);
debug!("Creating {} deposits to file...", validator_count);
generate_deposits_from_keypairs(&keypairs, genesis_time, &spec)
};
debug!("Writing {} deposits to file...", validator_count);
write_deposits(output_dir, &deposits);
}