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

refactor: simplify get_epoch_sync_data_hash #7726

Merged
merged 5 commits into from
Sep 29, 2022

Conversation

matklad
Copy link
Contributor

@matklad matklad commented Sep 29, 2022

part of #6910, depends on #7716

@@ -418,7 +409,23 @@ pub trait RuntimeAdapter: EpochManagerAdapter + Send + Sync {
prev_epoch_last_block_hash: &CryptoHash,
epoch_id: &EpochId,
next_epoch_id: &EpochId,
) -> Result<CryptoHash, Error>;
) -> Result<CryptoHash, Error> {
Copy link
Contributor

Choose a reason for hiding this comment

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

BTW - not sure why you called the PR "simplification"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a red diff which removes the code. Implementing get_epoch_sync_data_hash once instead of overriding it twice is simpler. The logic is self is kept intact indeed.

@near-bulldozer near-bulldozer bot merged commit 79278e2 into near:master Sep 29, 2022
near-bulldozer bot pushed a commit that referenced this pull request Oct 17, 2022
nikurt pushed a commit that referenced this pull request Oct 17, 2022
nikurt pushed a commit that referenced this pull request Nov 9, 2022
nikurt pushed a commit that referenced this pull request Nov 9, 2022
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