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

Add a script to generate previous epochs #58

Closed
hsjoberg opened this issue May 13, 2021 · 6 comments
Closed

Add a script to generate previous epochs #58

hsjoberg opened this issue May 13, 2021 · 6 comments

Comments

@hsjoberg
Copy link
Owner

hsjoberg commented May 13, 2021

Some external tools are basing their data on the /blocks API call.
The application right now only saves the current difficulty period so we might want to provide a way to generate previous ones (perhaps even use it in this project (/?epoch=X)).

@AndrewLaganaro
Copy link

AndrewLaganaro commented May 13, 2021

I was just thinking about that, I need to see the last epoch to get its data but there's no option to that on the website ): Support this!

anyway if anyone is interested, I found on twitter the last epoch, but sadly there's no data available (like mining poll, time, etc) as it is just an image ): But anyway might be useful though:
(luckily there's all the blocks there, 56 x 36 = 2016, did the count myself)

https://twitter.com/hampus_s/status/1392766310648590337?s=20

@hsjoberg hsjoberg pinned this issue May 14, 2021
@AndrewLaganaro
Copy link

Any news on that one?

@hsjoberg
Copy link
Owner Author

@AndrewLaganaro Yes! I've implemented a script to generate periods.

The three periods of the Taproot Speedy Trial softfork are available here:

https://taproot.watch/blocks/338
https://taproot.watch/blocks/339
https://taproot.watch/blocks/340

I'll have the actual webpages restored eventually, but at least the data is available now.

@AndrewLaganaro
Copy link

ohhh huge thanks man! I really appreciate that as I'm going to use that data on a data analysis project of mine!

@hsjoberg
Copy link
Owner Author

hsjoberg commented Jun 17, 2021

@AndrewLaganaro Sounds great! 🚀

Closing this issue.
Implemented in b77db80, 95ef039 and d5666a2.

@hsjoberg
Copy link
Owner Author

@AndrewLaganaro FYI I moved the API call from /blocks/[period] to /period/[period]. So the URLs are:

https://taproot.watch/period/338
https://taproot.watch/period/339
https://taproot.watch/period/340

@hsjoberg hsjoberg unpinned this issue Nov 14, 2021
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

No branches or pull requests

2 participants