2

If I wanted to create a PoW alrorithm to replace ethash on a private blockchain, how would I tell Parity to use it?

1 Answer 1

2

You can use Parity's Pluggable Consensus feature.

There is a list of provided engines to choose from, which require you to edit the chain specification files associated with the nodes in your network.

If you want to use your own bespoke engine, you'll have to write it yourself, then edit the chain specification files to point to it.

Parity comes bundled with a number of consensus engines. While the most widely used is the Ethash proof of work Engine, there are others which can be used for proof of authority or stake chains. The Engine is chosen by placing an appropriate entry in the "engine" field of the spec and providing the correct "seal" under "genesis" field, as described on the Chain specification page.

1
  • @Richard_Horrocks Yes I know about the Pluggable Consensus. But my question is about a custom algorithm. You said "then edit the chain specification files to point to it" and the question that I am asking in this post is "how would I tell Parity to use it"? Saying "edit the chain specification files to point to it" is vague. Can you be specific? Does it require changing Parity source code itself and including the engine in Parity?
    – stone.212
    Commented May 11, 2018 at 9:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.