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

create EphemerySlotValidationService and test #8759

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gconnect
Copy link
Contributor

@gconnect gconnect commented Oct 21, 2024

PR Description

  • Create EphemerySlotValidationService to throw the appropriate exception on Ephemery
  • Create EphemerySlotValidationServiceTest

Todo

  • check if network is Ephemery

Fixed Issue(s)

fixes #8589

@gconnect
Copy link
Contributor Author

@rolfyone please review

Comment on lines +34 to +37
final UInt64 currentSlot =
recentChainData
.getCurrentSlot()
.orElseThrow(() -> new IllegalStateException("Current slot not available"));
Copy link
Contributor

Choose a reason for hiding this comment

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

the slot comes into the function, you can just use that..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what you meant

Copy link
Contributor

Choose a reason for hiding this comment

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

onSlot(final UInt slot) {
The slot is the slot we're entering... we don't need to grab it from recentChainData, it's passed in.

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.

Add automatic reset for Ephemery Network
2 participants