Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Updates to dynamic-network-test to start validators in parallel #722

Closed
wants to merge 1 commit into from

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Jul 20, 2018

No description provided.

@pgarg66 pgarg66 added work in progress This isn't quite right yet noCI Suppress CI on this Pull Request labels Jul 20, 2018
Some(leader_data.contact_info.ncp),
);
info!("started[{}/{}] {:x}", n, N, rd.debug_id());
(rd, val)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aeyakovenko , that made it really simple.

let validator = TestNode::new_localhost_with_pubkey(keypair.pubkey());
let rd = validator.data.clone();
//send some tokens to the new validator
let bal = send_tx_and_retry_get_balance(
Copy link
Member

@aeyakovenko aeyakovenko Jul 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do this part first, before starting any validators, make sure their keys are valid and have a balance.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean, transfer balance to all validators, before any of them is started?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, basically do all the prep work before any of them are started so start should be fast

@pgarg66 pgarg66 closed this Jul 21, 2018
@pgarg66 pgarg66 deleted the dynamic-network-test branch July 21, 2018 23:24
behzadnouri pushed a commit to behzadnouri/solana that referenced this pull request Apr 11, 2024
buffalojoec pushed a commit to buffalojoec/solana that referenced this pull request Apr 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
noCI Suppress CI on this Pull Request work in progress This isn't quite right yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants