Nice. I have created something similar at work with blockheight start/end for each epoch, and also for difficulty epochs. It was fun coding Bitcoin protocol rules in SQL 🤣

Reply to this note

Please Login to reply.

Discussion

nice, can you share??

The implementation is in our data warehouse, but I could probably share the SQL code if you’re interested. Could be translated to Postgres or whatever FOSS DB you prefer