Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored large network test to use finality to assert success #978

Merged
merged 1 commit into from
Aug 16, 2018

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Aug 15, 2018

No description provided.

@pgarg66 pgarg66 changed the title Refactor large nw test Refactored large network test to use finality to assert success Aug 15, 2018
@pgarg66 pgarg66 force-pushed the refactor-large-nw-test branch 2 times, most recently from cc1ac20 to dbc2858 Compare August 15, 2018 19:37
@pgarg66
Copy link
Contributor Author

pgarg66 commented Aug 15, 2018

Also increased the node count to 200. Wondering if any checks should be stricter...


let now = Instant::now();
let mut finality = client.get_finality();
while finality == last_finality {
Copy link
Member

Choose a reason for hiding this comment

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

while duration_as_ms(now.elapsed()) < client.get_finality() {
               sleep(Duration::from_millis(100));
}

right? if finality is longer then T since confirmation we wait. If its shorter that means 2/3rds of the validators have moved passed T.

let mut retain_me = true;
let mut client = mk_client(&server.0);
trace!("{:x} get_balance start", server.0.debug_id());
let getbal = retry_get_balance(&mut client, &bob_pubkey, Some(expected_balance));
Copy link
Member

Choose a reason for hiding this comment

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

i would change this to just confirm the last sig in all the validators instead of retry get balance.

@pgarg66
Copy link
Contributor Author

pgarg66 commented Aug 16, 2018

@aeyakovenko , the latest patch addresses all the comments.

@pgarg66 pgarg66 merged commit c2983f8 into solana-labs:master Aug 16, 2018
@pgarg66 pgarg66 deleted the refactor-large-nw-test branch August 16, 2018 03:05
vkomenda pushed a commit to vkomenda/solana that referenced this pull request Aug 29, 2021
…#978)

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.1.2...v4.1.3)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
yihau pushed a commit that referenced this pull request Apr 26, 2024
…864) (#978)

limits number of nodes per IP address in Turbine (#864)

(cherry picked from commit c87b830)

Co-authored-by: behzad nouri <[email protected]>
bw-solana pushed a commit to bw-solana/solana that referenced this pull request May 1, 2024
…olana-labs#864) (solana-labs#978)

limits number of nodes per IP address in Turbine (solana-labs#864)

(cherry picked from commit c87b830)

Co-authored-by: behzad nouri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants