Polkadot-Blockchain-Academy / Academy-PoW

PoW blockchain node to gain hands-on experience starting a real network together
The Unlicense
21 stars 42 forks source link

Automate forking workflow for testing and local development #52

Closed JoshOrndorff closed 6 months ago

JoshOrndorff commented 6 months ago

This PR adds a chain spec extension that allows the user to configure the block heights at which various forks will take place manually.

The dev chain now has a fork happen automatically every 10 blocks until block 30 when we are done.

There is also a manual mode that we will use in class when we run the workshop live so that students can hard code their forking logic.

As a side effect, this PR also breaks instant seal. That's okay because we decided in #45 that we want to take a different "easy pow" approach instead.

JoshOrndorff commented 6 months ago

I'm going to merge this because I want the docker image.