Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 951 Bytes

genesis-blocks.rst

File metadata and controls

19 lines (13 loc) · 951 Bytes

Genesis Blocks

Chanterelle supports generating genesis blocks for use with custom blockchains which depend on externally deployed libraries on other chains. It utilizes the libraries field in the chanterelle.json <chanterelle-json>.

The genesis generator takes the path to a geth-compatible genesis block as input (relative to the project root or absolute), and writes the filled-in block to the output path specified, overwriting it if it exists.

As was seen in the compilation example, the genesis generator is invoked with runGeneratorMain, customarialy as part of your compilation phase.

As will be noted in the libraries <libraries> chapter, the genesis generator is unable to run if any Fixed libraries are specified in the project spec.

We typically recommend using the genesis generator in conjunction with Cliquebait.