Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Edited for easier reading
Source Link
Ismael
  • 30.3k
  • 23
  • 54
  • 97

a A problem in building a private network using Ethereum

There is a problem in in building a private network using Ethereum.

Geth version : 1.8.3 stable OS & Version : windows 10

Geth version : 1.8.3 stable
OS & Version : windows 10

myMy scenario is as follows.:

  1. the genesis block is as follows

    The genesis block is as follows

     {
         "config": {
             "chainId"       : 7686,
             "homesteadBlock": 0,
             "eip155Block"   : 0,
             "eip158Block"   : 0
         },
         "nonce"     : "0x0000000000000042",
         "timestamp" : "0x00",
         "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
         "extraData" : "0x00",
         "gasLimit"  : "0x4c4b40",
         "difficulty": "0x400000",
         "mixhash"   : "0x0000000000000000000000000000000000000000000000000000000000000000",
         "coinbase"  : "0x0000000000000000000000000000000000000000",
         "alloc": {
         }
     }
    
  2. On the first PC(windows10, 192.168.0.7), the following commands is executed

    bootnode --nodekey=bootnode.key <=== started botstrap node

    geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" init genesis_block.json

    geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" --rpc --rpcapi "db,eth,net,web3" --rpccorsdomain "*" --nat "none" --netrestrict "192.168.0.0/16" --syncmode "full" --mine --gasprice 1 --etherbase "0x554C2C877aFc8A8EA0cDD2eA97ea5b5B9A7960e2" --bootnodes "enode://342a241c8baab9e6ff69a6df015a8dc37df2b477e43338f2e7d98078a115f6b1282e280ed444719d8c5d2bac89837693149771ed10b7bf1e9c1cd13930a270a5@127.0.0.1:30301"

  3. On the second PC, the following commands is executed

    geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" init genesis_block.json

    geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" --rpc --rpcapi "db,eth,net,web3" --rpccorsdomain "*" --nat "none" --netrestrict "192.168.0.0/16" --syncmode "full" --bootnodes "enode://342a241c8baab9e6ff69a6df015a8dc37df2b477e43338f2e7d98078a115f6b1282e280ed444719d8c5d2bac89837693149771ed10b7bf1e9c1cd13930a270a5@192.168.0.7:30301"

  4. The first PC(windows10) is no problem, on the second PC, however, the following error message is displayed

     ERROR[04-17|19:26:01]
     ########## BAD BLOCK #########
     Chain config: {ChainID: 7686 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: <nil> EIP155: 0 EIP158: 0 Byzantium: <nil> Constantinople: <nil> Engine: unknown}
    
     Number: 1
     Hash: 0xcc00615c7554b7c9d8813943e43216e7c4a8dcea6db6e262a8bc6c213d78733c
    
    
     Error: invalid mix digest
     ##############################
    
     WARN [04-17|19:26:01] Synchronisation failed, dropping peer    peer=cadcc80d87d6245a err="retrieved hash chain is invalid"
    

{ "config": { "chainId" : 7686, "homesteadBlock": 0, "eip155Block" : 0, "eip158Block" : 0 }, "nonce" : "0x0000000000000042", "timestamp" : "0x00", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "extraData" : "0x00", "gasLimit" : "0x4c4b40", "difficulty": "0x400000", "mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase" : "0x0000000000000000000000000000000000000000", "alloc": { } }

  1. on the first PC(windows10, 192.168.0.7), the following commands is executed

bootnode --nodekey=bootnode.key <=== started botstrap node

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" init genesis_block.json

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" --rpc --rpcapi "db,eth,net,web3" --rpccorsdomain "*" --nat "none" --netrestrict "192.168.0.0/16" --syncmode "full" --mine --gasprice 1 --etherbase "0x554C2C877aFc8A8EA0cDD2eA97ea5b5B9A7960e2" --bootnodes "enode://342a241c8baab9e6ff69a6df015a8dc37df2b477e43338f2e7d98078a115f6b1282e280ed444719d8c5d2bac89837693149771ed10b7bf1e9c1cd13930a270a5@127.0.0.1:30301"

  1. on the second PC, the following commands is executed

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" init genesis_block.json

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" --rpc --rpcapi "db,eth,net,web3" --rpccorsdomain "*" --nat "none" --netrestrict "192.168.0.0/16" --syncmode "full" --bootnodes "enode://342a241c8baab9e6ff69a6df015a8dc37df2b477e43338f2e7d98078a115f6b1282e280ed444719d8c5d2bac89837693149771ed10b7bf1e9c1cd13930a270a5@192.168.0.7:30301"

  1. the first PC(windows10) is no problem, on the second PC, however, the following error message is displayed

ERROR[04-17|19:26:01] ########## BAD BLOCK ######### Chain config: {ChainID: 7686 Homestead: 0 DAO: DAOSupport: false EIP150: EIP155: 0 EIP158: 0 Byzantium: Constantinople: Engine: unknown}

Number: 1 Hash: 0xcc00615c7554b7c9d8813943e43216e7c4a8dcea6db6e262a8bc6c213d78733c

Error: invalid mix digest ##############################

WARN [04-17|19:26:01] Synchronisation failed, dropping peer peer=cadcc80d87d6245a err="retrieved hash chainWhat is invalid"the problem?

  1. what is the problem ?, thank u

a problem in building a private network using Ethereum

There is a problem in building a private network using Ethereum.

Geth version : 1.8.3 stable OS & Version : windows 10

my scenario is as follows.

  1. the genesis block is as follows

{ "config": { "chainId" : 7686, "homesteadBlock": 0, "eip155Block" : 0, "eip158Block" : 0 }, "nonce" : "0x0000000000000042", "timestamp" : "0x00", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "extraData" : "0x00", "gasLimit" : "0x4c4b40", "difficulty": "0x400000", "mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase" : "0x0000000000000000000000000000000000000000", "alloc": { } }

  1. on the first PC(windows10, 192.168.0.7), the following commands is executed

bootnode --nodekey=bootnode.key <=== started botstrap node

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" init genesis_block.json

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" --rpc --rpcapi "db,eth,net,web3" --rpccorsdomain "*" --nat "none" --netrestrict "192.168.0.0/16" --syncmode "full" --mine --gasprice 1 --etherbase "0x554C2C877aFc8A8EA0cDD2eA97ea5b5B9A7960e2" --bootnodes "enode://342a241c8baab9e6ff69a6df015a8dc37df2b477e43338f2e7d98078a115f6b1282e280ed444719d8c5d2bac89837693149771ed10b7bf1e9c1cd13930a270a5@127.0.0.1:30301"

  1. on the second PC, the following commands is executed

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" init genesis_block.json

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" --rpc --rpcapi "db,eth,net,web3" --rpccorsdomain "*" --nat "none" --netrestrict "192.168.0.0/16" --syncmode "full" --bootnodes "enode://342a241c8baab9e6ff69a6df015a8dc37df2b477e43338f2e7d98078a115f6b1282e280ed444719d8c5d2bac89837693149771ed10b7bf1e9c1cd13930a270a5@192.168.0.7:30301"

  1. the first PC(windows10) is no problem, on the second PC, however, the following error message is displayed

ERROR[04-17|19:26:01] ########## BAD BLOCK ######### Chain config: {ChainID: 7686 Homestead: 0 DAO: DAOSupport: false EIP150: EIP155: 0 EIP158: 0 Byzantium: Constantinople: Engine: unknown}

Number: 1 Hash: 0xcc00615c7554b7c9d8813943e43216e7c4a8dcea6db6e262a8bc6c213d78733c

Error: invalid mix digest ##############################

WARN [04-17|19:26:01] Synchronisation failed, dropping peer peer=cadcc80d87d6245a err="retrieved hash chain is invalid"

  1. what is the problem ?, thank u

A problem in building a private network using Ethereum

There is a problem in in building a private network using Ethereum.

Geth version : 1.8.3 stable
OS & Version : windows 10

My scenario is as follows:

  1. The genesis block is as follows

     {
         "config": {
             "chainId"       : 7686,
             "homesteadBlock": 0,
             "eip155Block"   : 0,
             "eip158Block"   : 0
         },
         "nonce"     : "0x0000000000000042",
         "timestamp" : "0x00",
         "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
         "extraData" : "0x00",
         "gasLimit"  : "0x4c4b40",
         "difficulty": "0x400000",
         "mixhash"   : "0x0000000000000000000000000000000000000000000000000000000000000000",
         "coinbase"  : "0x0000000000000000000000000000000000000000",
         "alloc": {
         }
     }
    
  2. On the first PC(windows10, 192.168.0.7), the following commands is executed

    bootnode --nodekey=bootnode.key <=== started botstrap node

    geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" init genesis_block.json

    geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" --rpc --rpcapi "db,eth,net,web3" --rpccorsdomain "*" --nat "none" --netrestrict "192.168.0.0/16" --syncmode "full" --mine --gasprice 1 --etherbase "0x554C2C877aFc8A8EA0cDD2eA97ea5b5B9A7960e2" --bootnodes "enode://342a241c8baab9e6ff69a6df015a8dc37df2b477e43338f2e7d98078a115f6b1282e280ed444719d8c5d2bac89837693149771ed10b7bf1e9c1cd13930a270a5@127.0.0.1:30301"

  3. On the second PC, the following commands is executed

    geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" init genesis_block.json

    geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" --rpc --rpcapi "db,eth,net,web3" --rpccorsdomain "*" --nat "none" --netrestrict "192.168.0.0/16" --syncmode "full" --bootnodes "enode://342a241c8baab9e6ff69a6df015a8dc37df2b477e43338f2e7d98078a115f6b1282e280ed444719d8c5d2bac89837693149771ed10b7bf1e9c1cd13930a270a5@192.168.0.7:30301"

  4. The first PC(windows10) is no problem, on the second PC, however, the following error message is displayed

     ERROR[04-17|19:26:01]
     ########## BAD BLOCK #########
     Chain config: {ChainID: 7686 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: <nil> EIP155: 0 EIP158: 0 Byzantium: <nil> Constantinople: <nil> Engine: unknown}
    
     Number: 1
     Hash: 0xcc00615c7554b7c9d8813943e43216e7c4a8dcea6db6e262a8bc6c213d78733c
    
    
     Error: invalid mix digest
     ##############################
    
     WARN [04-17|19:26:01] Synchronisation failed, dropping peer    peer=cadcc80d87d6245a err="retrieved hash chain is invalid"
    

What is the problem?

Bumped by Community user
Source Link

a problem in building a private network using Ethereum

There is a problem in building a private network using Ethereum.

Geth version : 1.8.3 stable OS & Version : windows 10

my scenario is as follows.

  1. the genesis block is as follows

{ "config": { "chainId" : 7686, "homesteadBlock": 0, "eip155Block" : 0, "eip158Block" : 0 }, "nonce" : "0x0000000000000042", "timestamp" : "0x00", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "extraData" : "0x00", "gasLimit" : "0x4c4b40", "difficulty": "0x400000", "mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase" : "0x0000000000000000000000000000000000000000", "alloc": { } }

  1. on the first PC(windows10, 192.168.0.7), the following commands is executed

bootnode --nodekey=bootnode.key <=== started botstrap node

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" init genesis_block.json

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" --rpc --rpcapi "db,eth,net,web3" --rpccorsdomain "*" --nat "none" --netrestrict "192.168.0.0/16" --syncmode "full" --mine --gasprice 1 --etherbase "0x554C2C877aFc8A8EA0cDD2eA97ea5b5B9A7960e2" --bootnodes "enode://342a241c8baab9e6ff69a6df015a8dc37df2b477e43338f2e7d98078a115f6b1282e280ed444719d8c5d2bac89837693149771ed10b7bf1e9c1cd13930a270a5@127.0.0.1:30301"

  1. on the second PC, the following commands is executed

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" init genesis_block.json

geth --networkid 7686 --datadir "C:\EPN" --ethash.dagdir "C:\EPN" --rpc --rpcapi "db,eth,net,web3" --rpccorsdomain "*" --nat "none" --netrestrict "192.168.0.0/16" --syncmode "full" --bootnodes "enode://342a241c8baab9e6ff69a6df015a8dc37df2b477e43338f2e7d98078a115f6b1282e280ed444719d8c5d2bac89837693149771ed10b7bf1e9c1cd13930a270a5@192.168.0.7:30301"

  1. the first PC(windows10) is no problem, on the second PC, however, the following error message is displayed

ERROR[04-17|19:26:01] ########## BAD BLOCK ######### Chain config: {ChainID: 7686 Homestead: 0 DAO: DAOSupport: false EIP150: EIP155: 0 EIP158: 0 Byzantium: Constantinople: Engine: unknown}

Number: 1 Hash: 0xcc00615c7554b7c9d8813943e43216e7c4a8dcea6db6e262a8bc6c213d78733c

Error: invalid mix digest ##############################

WARN [04-17|19:26:01] Synchronisation failed, dropping peer peer=cadcc80d87d6245a err="retrieved hash chain is invalid"

  1. what is the problem ?, thank u