Reader small image

You're reading from  Mastering Blockchain.. - Third Edition

Product typeBook
Published inAug 2020
Reading LevelBeginner
PublisherPackt
ISBN-139781839213199
Edition3rd Edition
Languages
Right arrow
Author (1)
Imran Bashir
Imran Bashir
author image
Imran Bashir

Imran Bashir has an M.Sc. in Information Security from Royal Holloway, University of London, and has a background in software development, solution architecture, infrastructure management, and IT service management. He is also a member of the Institute of Electrical and Electronics Engineers (IEEE) and the British Computer Society (BCS). Imran has extensive experience in both the public and financial sectors, having worked on large-scale IT projects in the public sector before moving to the financial services industry. Since then, he has worked in various technical roles for different financial companies in Europe's financial capital, London.
Read more about Imran Bashir

Right arrow

Starting up the private network

First, let's start up our private network and prepare it for use. The first step is to create a directory named etherprivate under the home directory of the user.

$ mkdir ~/etherprivate

This command will create the directory. Once the directory is created, place the privategenesis.json file shown earlier in The genesis file section. At this point, stored under the home directory of the user, we have a directory named ~/etherprivate, which contains the genesis file called privategenesis.json. We are ready to start our network. The initial command to start the private network is shown as follows:

$ geth init ~/etherprivate/privategenesis.json --datadir ~/etherprivate

This will produce an output similar to what is shown in the following screenshot:

Figure 13.3: Private network initialization

This output indicates that a genesis block has been created successfully. In order for geth to start, the following command can...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering Blockchain.. - Third Edition
Published in: Aug 2020Publisher: PacktISBN-13: 9781839213199

Author (1)

author image
Imran Bashir

Imran Bashir has an M.Sc. in Information Security from Royal Holloway, University of London, and has a background in software development, solution architecture, infrastructure management, and IT service management. He is also a member of the Institute of Electrical and Electronics Engineers (IEEE) and the British Computer Society (BCS). Imran has extensive experience in both the public and financial sectors, having worked on large-scale IT projects in the public sector before moving to the financial services industry. Since then, he has worked in various technical roles for different financial companies in Europe's financial capital, London.
Read more about Imran Bashir