Closed chinmay241 closed 4 years ago
One possible way to understand this https://geth.ethereum.org/docs/interface/private-network
I have a hunch, that the values in genesis.json
and bc.dat
might not fit together, but unsure if this is the reason. Would be great to solve this before adding PR for https://github.com/hyperledger/caliper-benchmarks/issues/68.
bc.dat
indeed not fitting. Could be related to the fact, that when bc.dat
was created, instanbul-fork was not active yet, so really don't fit together.
Since we regenerate new private chain, it is possibly fine to just remove bc.dat
.
bc.dat
is indeed necessary. When omitted, the values in ethereum.json
don't seem to align anymore.
When running geth these are the initial configuration for those blocks
INFO [05-05|15:38:19.588] Initialised chain configuration config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: 7280000 Petersburg: 7280000 Istanbul: 9069000, Muir Glacier: 9200000, Engine: ethash}"
I could only find one reference https://github.com/ethereum/go-ethereum/blob/master/params/config.go
It also mentions the Jan'20 update of Muir Glacier.
I am pretty sure these values refer to the public Ethereum mainnet. They therefore don't relate to our setup, since we are spinning up a private network from scratch.
Need to still find a way around this, getting the blockchain import failure got to do with bc.dat
caliper | INFO [05-05|14:11:20.293] Disk storage enabled for ethash DAGs dir=/root/.ethash count=2
caliper | INFO [05-05|14:11:20.296] Loaded most recent local header number=0 hash=cbc198…847427 td=524288 age=1y4d17h
caliper | INFO [05-05|14:11:20.296] Loaded most recent local full block number=0 hash=cbc198…847427 td=524288 age=1y4d17h
caliper | INFO [05-05|14:11:20.296] Loaded most recent local fast block number=0 hash=cbc198…847427 td=524288 age=1y4d17h
caliper | INFO [05-05|14:11:20.296] Importing blockchain file=/root/bc.dat
caliper | ERROR[05-05|14:11:20.300]
caliper | ########## BAD BLOCK #########
caliper | Chain config: {ChainID: 21194 Homestead: 0 DAO:
caliper | ERROR[05-05|14:11:20.305] Import error err="invalid block 18: unknown ancestor"
Since this was fixed with https://github.com/hyperledger/caliper-benchmarks/pull/74
One Prominent error when you run
docker-compose build
in Ethereum 1node is.