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

Dynamically remove validator key #12011

Merged
merged 3 commits into from
Aug 28, 2024
Merged

Conversation

staffik
Copy link
Contributor

@staffik staffik commented Aug 28, 2024

Issue: #11995

Adds support to dynamically remove validator key.

@staffik staffik requested a review from a team as a code owner August 28, 2024 09:12
@staffik staffik requested a review from akhi3030 August 28, 2024 09:12
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 71.52%. Comparing base (ee5f317) to head (d1954b4).
Report is 4 commits behind head on master.

Files Patch % Lines
nearcore/src/dyn_config.rs 0.00% 5 Missing ⚠️
chain/client/src/client_actor.rs 0.00% 4 Missing ⚠️
chain/client/src/client.rs 0.00% 2 Missing ⚠️
chain/client/src/config_updater.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12011      +/-   ##
==========================================
+ Coverage   71.51%   71.52%   +0.01%     
==========================================
  Files         812      814       +2     
  Lines      164491   164631     +140     
  Branches   164491   164631     +140     
==========================================
+ Hits       117634   117760     +126     
- Misses      41701    41708       +7     
- Partials     5156     5163       +7     
Flag Coverage Δ
backward-compatibility 0.23% <0.00%> (-0.01%) ⬇️
db-migration 0.23% <0.00%> (-0.01%) ⬇️
genesis-check 1.34% <0.00%> (-0.01%) ⬇️
integration-tests 38.50% <0.00%> (+0.06%) ⬆️
linux 71.23% <0.00%> (-0.04%) ⬇️
linux-nightly 71.08% <0.00%> (-0.02%) ⬇️
macos 53.54% <0.00%> (-0.06%) ⬇️
pytests 1.60% <0.00%> (-0.01%) ⬇️
sanity-checks 1.40% <0.00%> (-0.01%) ⬇️
unittests 65.47% <0.00%> (+0.01%) ⬆️
upgradability 0.27% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pub validator_signer: Option<Arc<ValidatorSigner>>,
/// `None` means that the validator key existence could not be determined.
/// `Some(None)` means that it was determined that the validator key does not exist.
pub validator_signer: Option<Option<Arc<ValidatorSigner>>>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if it makes sense to use a custom enum here instead. Parsing Option<Option<Foo>> feels too cumbersome compared to having a enum with specific variants.

@staffik staffik added this pull request to the merge queue Aug 28, 2024
Merged via the queue into master with commit a46049c Aug 28, 2024
28 of 30 checks passed
@staffik staffik deleted the dynamically-remove-validator-key branch August 28, 2024 14:48
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