Giter VIP home page Giter VIP logo

Comments (13)

garyng2000 avatar garyng2000 commented on June 28, 2024

I tried to clone the source and open it in vscode and it seems that eth2-client package in go changed the interface for all the calls, I don't know if that is the reason. say this call in chainInfo.go

// Obtain validators.
validatorsResponse, err := consensusClient.(consensusclient.ValidatorsProvider).Validators(ctx, &api.ValidatorsOpts{State: "head"})

it now is a 3 value return (*apiResponse, validators, err) instead of 2

from ethdo.

garyng2000 avatar garyng2000 commented on June 28, 2024

I downloaded 1.29 and it works so something has changed starting 1.30

from ethdo.

mcdee avatar mcdee commented on June 28, 2024

What happens if you run

curl -s http://localhost:3501/eth/v2/debug/beacon/states/head

from ethdo.

garyng2000 avatar garyng2000 commented on June 28, 2024

404 so need to enable prysm support for v2 ? not sure if they have that

from ethdo.

garyng2000 avatar garyng2000 commented on June 28, 2024

I am looking at this,

https://ethereum.github.io/beacon-APIs/#/Beacon

where is that /eth/v2 defined ?

from ethdo.

mcdee avatar mcdee commented on June 28, 2024

The relevant endpoint is https://ethereum.github.io/beacon-APIs/#/Debug/getStateV2 please could you raise an issue with prysm for them to support it?

Alternatively, you may need to add a flag to the beacon node to enable this as it is a debug endpoint.

from ethdo.

garyng2000 avatar garyng2000 commented on June 28, 2024

I would try. Though I have created a free account on quicknode which provide beacon api support and it seems they also only support the official 'v1' version only

from ethdo.

ank-everstake avatar ank-everstake commented on June 28, 2024

Same here, It would be helpful to have a flag --use-api= v1 | v2 or similar.

from ethdo.

mcdee avatar mcdee commented on June 28, 2024

The V2 version of the endpoint has been in the beacon API spec for over 2 years, and the V1 version deprecated for the same amount of time. It isn't practical to continue to support older versions, especially as each endpoint is individually versioned and commonly return different information for different versions.

from ethdo.

YuXiaoCoder avatar YuXiaoCoder commented on June 28, 2024

Can you tell me how to fix this, I'm having the same problem!

from ethdo.

mcdee avatar mcdee commented on June 28, 2024

Can you tell me how to fix this, I'm having the same problem!

Use a beacon node that supports the standard endpoint. Lighthouse, nimbus and Teku all provide support.

from ethdo.

YuXiaoCoder avatar YuXiaoCoder commented on June 28, 2024

Can you tell me how to fix this, I'm having the same problem!

Use a beacon node that supports the standard endpoint. Lighthouse, nimbus and Teku all provide support.

We're using Prysm as a validator now, and the dependencies are heavy and not easy to replace, I've rolled back ethdo to 1.29.2 for now, so I'll just have to follow up with the prysm team to see if they can fix it!

from ethdo.

mcdee avatar mcdee commented on June 28, 2024

This can be fixed by adding --enable-debug-rpc-endpoints to the prysm startup parameters.

from ethdo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.