January 2019
Beginner to intermediate
372 pages
11h 17m
English
Once a node has been set up, it can either join an existing network by connecting to a chain, or it can create its own chain. multichain-util is used to create a new chain, as follows:
$ multichain-util create chain1
This creates a new local blockchain. The node then has to start a process by using multichaind to connect to the chain created. Multiple chains can be initialized on a single machine by starting multiple multichaind daemon processes. A multichaind process is created as follows:
$ multichaind chain1 -daemon
The preceding line instantiates a process and starts the server. The genesis block is then mined by the node for the created chain. This code will yield an address, which can then be used by other nodes ...