Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use startimestamp #1386

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Use startimestamp #1386

merged 2 commits into from
Nov 14, 2024

Conversation

ceyonur
Copy link
Collaborator

@ceyonur ceyonur commented Nov 14, 2024

Why this should be merged

This pull request introduces several changes to the plugin/evm package, primarily focusing on adding support for retrieving current validators and modifying the structure of the CurrentValidator type. The key changes are grouped into two themes: adding functionality and modifying data structures.

How this works

Adding Functionality:

  • Added the GetCurrentValidators method to the Client interface and its implementation in the client struct in plugin/evm/client.go. This method allows fetching the current validators. [1] [2]

Modifying Data Structures:

  • Updated the CurrentValidator struct in plugin/evm/service.go to replace StartTime with StartTimestamp as a uint64. This change reflects a shift from using time.Time to a simpler timestamp format. [1] [2]
  • Removed the GetCurrentValidatorsRequest struct from plugin/evm/service.go as it was not being used.

How this was tested

locally

Need to be documented?

yes along with other changes

Need to update RELEASES.md?

related changes are not captured yet

@ceyonur ceyonur requested review from darioush and a team as code owners November 14, 2024 11:13
@ceyonur ceyonur merged commit f4e6b05 into master Nov 14, 2024
14 checks passed
@ceyonur ceyonur deleted the use-startimestamp branch November 14, 2024 21:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants