GithubHelp home page GithubHelp logo

Comments (5)

nisdas avatar nisdas commented on June 23, 2024

This sounds like a bug, cc @rkapka

from prysm.

zhy827827 avatar zhy827827 commented on June 23, 2024

time curl --request POST --url http://127.0.0.1:3500/eth/v1/validator/duties/attester/250170 --header 'Content-Type: application/json' --data-raw '["943310", "977217", "968519", "1003006"]'

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1221 100 1180 0 41 8 0 0:02:27 0:02:27 --:--:-- 308
{"dependent_root":"0x27dc287358e3eab436efc4b3601aaee0ebf6637c422939af3f8c30ce0b5080c9","execution_optimistic":false,"data":[{"pubkey":"0xb2d342804a006b372f2d5885dabb38c3a3c78e600d1522134cf33daa98faed9700f62291a9495729b278076d3aeecd23","validator_index":"943310","committee_index":"55","committee_length":"435","committees_at_slot":"64","validator_committee_index":"369","slot":"8005463"},{"pubkey":"0xacd43e7f7e403c99c9299e187f885bb2029a8fe886dec591bd6c4fa6f6a042c773da1fb2f8f3f9ac4370dab6529715b9","validator_index":"977217","committee_index":"2","committee_length":"435","committees_at_slot":"64","validator_committee_index":"334","slot":"8005464"},{"pubkey":"0xa5d0bdddd535c4aa667b1022a7881e48565c426b1e682ff012362ee752a78773e6ed3f28ae600966344b37d881e9ceb0","validator_index":"968519","committee_index":"21","committee_length":"435","committees_at_slot":"64","validator_committee_index":"91","slot":"8005451"},{"pubkey":"0x84f674ca43562926f748393b8ba9ed39e6fb1a5101e31008243e0b20cb09b7e204fe622efef021680bcc3194796cbac0","validator_index":"1003006","committee_index":"6","committee_length":"435","committees_at_slot":"64","validator_committee_index":"214","slot":"8005454"}]}: command not found

real 2m27.239s
user 0m0.056s
sys 0m0.043s`

from prysm.

rkapka avatar rkapka commented on June 23, 2024

Hi @zhy827827 , was the epoch that you asked for an epoch in the past (even 1 epoch in the past)? If yes, then the answer is pretty clear: we save past states every 2048 slots by default and because of this we had to replay states from the latest saved one to the requested one, which currently takes a lot of time.

from prysm.

potuz avatar potuz commented on June 23, 2024

Hi @zhy827827 , was the epoch that you asked for an epoch in the past (even 1 epoch in the past)? If yes, then the answer is pretty clear: we save past states every 2048 slots by default and because of this we had to replay states from the latest saved one to the requested one, which currently takes a lot of time.

you shouldn't need to replay that long as you have the finalized state in memory. Over two epochs in the past is more arguable, but still we keep several checkpoint states in the cache for a while

from prysm.

zhy827827 avatar zhy827827 commented on June 23, 2024

@rkapka @potuz Thank you!!Wishing you a pleasant work experience

from prysm.

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.