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

validator: Forge a confirmed root before halting for RPC inspection #10061

Merged
merged 1 commit into from
May 15, 2020

Conversation

mvines
Copy link
Member

@mvines mvines commented May 15, 2020

solana block-production, amongst others, didn't work when --dev-halt-at-slot is used to park a validator for RPC inspection due to the lack of a confirmed root (that is, all CommitmentConfig::max() RPC requests fail)

@codecov
Copy link

codecov bot commented May 15, 2020

Codecov Report

Merging #10061 into master will decrease coverage by 0.1%.
The diff coverage is 0.0%.

@@            Coverage Diff            @@
##           master   #10061     +/-   ##
=========================================
- Coverage    81.5%    81.4%   -0.2%     
=========================================
  Files         283      283             
  Lines       65782    65784      +2     
=========================================
- Hits        53660    53595     -65     
- Misses      12122    12189     +67     

block_commitment_cache
.write()
.unwrap()
.set_get_largest_confirmed_root(bank_forks.read().unwrap().root());
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have any information about whether that is, in fact, a confirmed root?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I see, this is just a quick workaround because the answer is no, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. Right.

@mvines mvines merged commit 1da1667 into solana-labs:master May 15, 2020
mergify bot pushed a commit that referenced this pull request May 15, 2020
(cherry picked from commit 1da1667)

# Conflicts:
#	core/src/commitment.rs
mergify bot pushed a commit that referenced this pull request May 15, 2020
mvines added a commit that referenced this pull request May 15, 2020
#10061) (#10066)

* Forge a confirmed root before halting for RPC inspection (#10061)

(cherry picked from commit 1da1667)

# Conflicts:
#	core/src/commitment.rs

* Update commitment.rs

Co-authored-by: Michael Vines <mvines@gmail.com>
@CriesofCarrots CriesofCarrots mentioned this pull request Jul 6, 2020
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.

2 participants