-
Notifications
You must be signed in to change notification settings - Fork 628
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
Conversation
@@ -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> { |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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.
Can be implemented in the trait itself, its just a convenience fn at this point.
part of #6910, depends on #7716