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

Lighthouse eth2 implementation #346

Merged
merged 22 commits into from
Dec 18, 2020
Merged

Conversation

BeroBurny
Copy link
Collaborator

@BeroBurny BeroBurny commented Dec 9, 2020

closes #337

@BeroBurny BeroBurny self-assigned this Dec 9, 2020
@codecov
Copy link

codecov bot commented Dec 9, 2020

Codecov Report

Merging #346 (6956e52) into master (9da6df2) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #346   +/-   ##
=======================================
  Coverage   54.24%   54.24%           
=======================================
  Files          61       61           
  Lines         955      955           
  Branches      112      112           
=======================================
  Hits          518      518           
  Misses        415      415           
  Partials       22       22           
Flag Coverage Δ
unit 54.24% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/renderer/services/eth2/networks/local.ts 100.00% <100.00%> (ø)
src/renderer/services/eth2/networks/pyrmont.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9da6df2...6956e52. Read the comment docs.

Copy link
Member

@mpetrunic mpetrunic left a comment

Choose a reason for hiding this comment

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

Did you try it against lighthouse node. Do they work?

@BeroBurny BeroBurny marked this pull request as ready for review December 16, 2020 09:29
@BeroBurny BeroBurny requested a review from mpetrunic December 17, 2020 12:11
}
};

public getChainHead = async (): Promise<BeaconBlock> => {
Copy link
Member

Choose a reason for hiding this comment

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

can you move this inside CgEth2BeaconBlocksApi

Copy link
Member

Choose a reason for hiding this comment

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

@BeroBurny I don't see this resolved!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

there is no point for holding this method if is not used by any code from the validator

Copy link
Member

Choose a reason for hiding this comment

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

It's not used by validator but it's used by chainguardian


// eslint-disable-next-line @typescript-eslint/no-unused-vars
public onNewChainHead = (callback: (head: IEth2ChainHead) => void): NodeJS.Timeout => {
throw new Error("Method 'onNewChainHead' not implemented.");
Copy link
Member

Choose a reason for hiding this comment

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

implement using events api

Copy link
Member

Choose a reason for hiding this comment

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

@BeroBurny I don't see this implemented anywhere?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is not used by any part of the code, if will be required it will be implemented correctly

Copy link
Member

Choose a reason for hiding this comment

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

It's not used by validator but it's used by chainguardian. It's used to display beacon node current slot when syncing. You always used synced node so that part of code wasn't executed

# Conflicts:
#	src/renderer/services/eth2/networks/local.ts
@BeroBurny BeroBurny requested a review from mpetrunic December 17, 2020 13:30
@BeroBurny BeroBurny linked an issue Dec 18, 2020 that may be closed by this pull request
@BeroBurny BeroBurny merged commit 4acd22f into master Dec 18, 2020
@BeroBurny BeroBurny deleted the lighthouse-eth2-implementation branch December 18, 2020 12:32
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.

implement validator graffiti Lighthouse eth2 implementation
2 participants