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

Switch to official doppelganger detection implementation. #4381

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

cheatfate
Copy link
Contributor

Switch VC to use /eth/v1/validator/liveness/{epoch} endpoint instead of nimbus one.

Switch VC to use /eth/v1/validator/liveness/{epoch} endpoint instead of nimbus one.
@github-actions
Copy link

github-actions bot commented Dec 1, 2022

Unit Test Results

         9 files  ±0       873 suites  ±0   26m 8s ⏱️ + 1m 37s
  2 704 tests ±0    2 511 ✔️ ±0  193 💤 ±0  0 ±0 
11 783 runs  ±0  11 564 ✔️ ±0  219 💤 ±0  0 ±0 

Results for commit 5bd7e2e. ± Comparison against base commit 7c78364.

return RestApiResponse.jsonError(Http400, InvalidEpochValueError,
"Requested epoch is more than one epoch from current epoch")
res
indexList =
Copy link
Member

Choose a reason for hiding this comment

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

reading the index list should really be a function, given how we read the same list in several places (attestations etc)

var index: Option[ValidatorIndex]
var isLive: Option[bool]

for fieldName in readObjectFields(reader):
Copy link
Member

Choose a reason for hiding this comment

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

why does this need a custom reader? isn't it simple enough?

@arnetheduck arnetheduck merged commit a311f04 into unstable Dec 6, 2022
@arnetheduck arnetheduck deleted the official-liveness branch December 6, 2022 11:29
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.

None yet

2 participants