Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [genesis]

Questions related to the genesis block or file used in the initialization of a blockchain.

0
votes
0answers
12 views

Generate & Export JSON from Puppeth in 1 command?

Currently, when using Puppeth, the process to create and export a new Genesis is as follows: 1) puppeth or puppeth --network = ANewUnusedName 2) If you haven't entered the network name already, ...
1
vote
1answer
46 views

How to burn ether securely? [duplicate]

If I want to burn ether, is it safe to send it to 0x0000000000000000000000000000000000000000 - safe in the sense that there is provably no way (other than cracking encryption or bruteforce) that this ...
3
votes
0answers
22 views

Retrieve CHAIN_ID of the executing chain from a Solidity contract

Is there a way to directly be able to retrieve CHAIN_ID information about the executing chain from a smart contract? I know that for any chain that has EIP-155 implemented, CHAIN_IDs are retrievable ...
0
votes
1answer
25 views

Why I need the genesis file to join a network?

I created a private ethereuem network using geth, and now I want other machine to join my network, I try this command : geth --datadir node1/ --syncmode 'full' --port 30304 --rpc --rpcaddr '...
0
votes
2answers
34 views

Change in genesis file without creating chain from the start

We're working with private Blockchain(PoA, 2 consensus node) and we've already created few blocks. Now we'd like to add some change in genesis file. So, basically question is, how can we support ...
1
vote
1answer
99 views

Geth parameter “networkid” vs. Genesis block “chainId” config?

I have set up a private Ethereum network with a custom chainId (for example 67890) specified in the config part of the genesis.json file, did geth init genesis.json, and got the private net up and ...
0
votes
1answer
90 views

oversized data during truffle migrate

In Quorum, while deploying a 54KB smart contract via truffle migrate, I am getting the error "oversized data" Tried adding maxCodeSize to genesis.json but did not work
2
votes
2answers
89 views

Does the Genesis Block get the block reward of 5 ether?

Getting mixed information. According to https://etherscan.io/block/0) it does and was mined by 0x0000000000000000000000000000000000000000 on July 30th but according to the Parity (archival mode) it ...
1
vote
1answer
33 views

“Difficulty” opcode pushes always 0x0 to stack

Currently, I do some experiments with Geth-EVM and opcode execution. During the experiments, I observed that the DIFFICULTY opcode always pushs 0x0 to the EVM stack regardless of how I set the ...
1
vote
0answers
151 views

Best Method to Increase TPS on PoA Blockchain

In creating a PoA blockchain where a high TPS is needed, how will you define the genesis.json configuration? There will be sealer nodes on opposite ends of the globe with ~ 0.1-0.2 second latency. ...
4
votes
2answers
311 views

Who has access to ethereum 0x0000000000000000000000000000000000000000 address?

Who own ethereum 0x0000000000000000000000000000000000000000 address? I have received some 0Chain token from this address. I know this is a genesis address but who can access it?
0
votes
1answer
81 views

How to configure extraData field in genesis file

I am in the process of setting up a private, permissioned Quorum blockchain with Istanbul consensus for simple use cases. When I specify the number of validators when generating the genesis file it ...
1
vote
1answer
199 views

Clique: Genesis File

What are the mandatory parameters of genesis.json File in PoA? and what are their expected values? for ex. values of byzantiumBlock epi155Block DAOForkBlock EIP150Block EIP158Block epoch nonce ...
0
votes
0answers
33 views

What is a genesis block mismatch (when just one genesis.json exists)?

I am testing a PoA Ethereum network and there are messages in the logs which are not really exaplainable - EBUG[06-03|01:37:09] Ethereum handshake failed id=02d1d9b6c3c90d9e conn=inbound err="...
0
votes
0answers
49 views

Updating the genesis.json file

my question was about updating the genesis.json file. I am on a CentOS 7 and I was trying to run a private network after I have followed these steps: Golang (installation and build) Geth (...
0
votes
0answers
79 views

Can I edit genesis.json file of ganache

I want to configure ganache for using proof of authorisation consensus mechanism instead of using proof of work. I want to edit genesis.json file for the same. I want to know where ganache stores its ...
0
votes
1answer
349 views

Private chain Ethereum handshake failed Genesis block mismatch

I'm setting up a private chain between two VMs. The first node started mining successfully, and the connetion between the two VMs has no problem. But when I try to connect the second node to the ...
0
votes
0answers
25 views

minGasLimit vs. minimum cost of a transaction (21000)

What is the relationship between the "minimum cost of a transaction" which is 21000 and the minGasLimit parameter in a chain specification? Is 21000 sort of the default minimum minGasLimit? Meaning ...
0
votes
2answers
113 views

Invalid genesis file:cannot unmarshal number into Go struct field Genesis.alloc of type *math.HexOrDecimal256

Here is my genesis.json file { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "gasLimit": "21000000", "difficulty": "20000", ...
0
votes
2answers
340 views

Ethereum private network without new coin mining

I managed to create a private Ethereum network using the following genesis.json { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": ...
0
votes
0answers
65 views

How to read genesis transactions and block reward through web3js

I know similar question has been asked before How to read block data from chaindata Is it possible to obtain GENESIS transactions through RPC API? Unfortunately, there isn't any satisfactory ...
0
votes
0answers
20 views

Eth command not found in debian strech 64 bit

I installed cpp-ethereum client in debian strach 64 bit but when i want to create genesisblock it says Eth or eth command not found while ./eth is working and generating json rpc Admin session key but ...
0
votes
0answers
102 views

Fatal: invalid genesis file: missing required field 'balance' for GenesisAccount

This is my Genesis file: { "alloc": { "0x0000000000000000000000000000000000000020": { "code": "60606040521abc78899e89181900360200190a16100f656 //code goes on", "storage": {...
0
votes
1answer
92 views

Error creating CustomGenesis

I am attempting to deploy on my local Ethereum testnet. My new testnet address needs a balance. So I try to create a Genesis File: geth init Fatal: Must supply path to genesis JSON file ~/geth init ...
0
votes
1answer
54 views

Connect geth on different machines

I am running a private node on my machine using geth. Everything is perfect. Even my friend is doing the same on his machine. Is there any way in which I can connect the node on my machine with my ...
1
vote
0answers
144 views

In a private chain, is it possible to pre-mine a certain amount of ethers at a certain difficulty and then increase the difficulty level ?

I want to run a private ethereum blockchain. What I want is I want to distribute certain number of premined ethers (say 20 million) among some accounts. If I initially keep the difficulty high, It ...
0
votes
1answer
648 views

Error: Error: Exceeds block gas limit TestRPC

I'm new to eth and dapp development and I'm running my own private test chain for development/ testing purposes and keep running into the above error when running truffle test. Is there a way to ...
1
vote
1answer
2k views

How can I get the genesis block info

I am playing around with a private blockchain, and I realize that I do not know how to get the "genesis block" info. The eth.getBlock(0) does not show the Genesis information, for example, pre-fund by ...
0
votes
1answer
53 views

Error when writing --datadir in terminal

I'm trying to follow this tutorial : https://hackernoon.com/heres-how-i-built-a-private-blockchain-network-and-you-can-too-62ca7db556c0?lipi=urn%3Ali%3Apage%3Ad_flagship3_messaging%3B0b%2F8A0z8RdyP%...
0
votes
1answer
152 views

Major conceptual misunderstandings about genesis.json

I am having a hugely difficult time understanding the genesis.json file. Assumption: it seems to me that it serves to both initialize the first block, and also set configuration parameters for the ...
1
vote
1answer
179 views

Why is there a nonce and mixHash value in the genesis file?

I may not fully understand the genesis file. Why is there a nonce and mixHash value in the file if nothing is being mined? It was my impression the genesis file is used to bootstrap block 0, then ...
1
vote
1answer
193 views

What do Ethhash and CliqueConfig refer to in the genesis config?

I don't see any real documentaiton on what these are or to what they refer. Here is the structure in the config file: // Various consensus engines Ethash *EthashConfig `json:"ethash,omitempty"` ...
0
votes
1answer
90 views

How do transactions know how to behave based on the genesis block?

Say I am a miner, and my genesis block on the mainnet has configuration X. A transaction comes in for me to mine. How does my Ethereum client confirm that transaction adheres to all the standards set ...
8
votes
3answers
4k views

What is a chainID in Ethereum, how is it different than NetworkID, and how is it used?

Here it's described in Ethereum's go implementation. type ChainConfig struct { ChainId *big.Int `json:"chainId"` // Chain id identifies the current chain and is used for replay protection A few ...
2
votes
0answers
191 views

Implementing validator contract on existing PoA chain

I'm running a private PoA chain with a height of around 700,000 blocks. I initialised the chain with two signer addresses included in the genesis file to get things started. Since then we've added ...
0
votes
1answer
40 views

Can one genesis block have multiple network identifiers?

Can one genesis block have multiple network identifiers? I am new to Ethereum. So pardon me if it is a silly question.
1
vote
1answer
398 views

Difficulty level in private network

This article has a good description on how Ethereum calculates a difficulty level. And, this article mentions that the difficulty is adjusted such that, one block is generated every 12 seconds. The ...
0
votes
1answer
148 views

Gas minimal limit on private blockchain

I'm trying to set a PoA private BlockChain. I have a problem with the gas limit : Actually, as there's not enough transactions, the gas limit is decreasing continuously . Is there any way I can set in ...
0
votes
1answer
97 views

Test Network - Understanding how Ether is Generated

I have a test network set up (mostly for learning purposes) using a unique network ID and seed node. After calling 'geth init' and not pre-allocating anything to any wallets, the network has no ether ...
2
votes
2answers
372 views

minimum and maximum block time

If you've ever seen the ethereum blocktime chart, you've noticed that always it's between 10-19 and when ever it comes bigger than, network will set difficulty lower than before and again the block ...
0
votes
0answers
52 views

How to share the same custom genesis between geth and eth

I am trying to create a private chain with 1 geth client 1 cpp client (eth) I have created a custom genesis file for the geth, following instructions here. However, eth appears to use a different ...
0
votes
1answer
50 views

When starting a new public ethereum blockchain can I disclose the genesis file?

I am using the ethereum codebase to create a new ethereum based blockchain. I don't want to call it a private blockchain because it will be public. I have been able to set it up, created my own ...
1
vote
1answer
511 views

Issue in truffle migration with Quorum

I am following this tutorial http://truffleframework.com/tutorials/building-dapps-for-quorum-private-enterprise-blockchains for Quorum installation.. I have successfully installed vargrant(Installed ...
0
votes
1answer
11 views

Define “difficultyHardforkBoundDivisor” parameter?

Does anyone know what the "difficultyHardforkBoundDivisor" parameter refers to? I don't find it in any of the glossaries I know.
0
votes
1answer
16 views

Define “difficultyHardforkTransition” parameter?

I have looked through all of the glossaries I know of for genesis/chain spec files but I don't see this one. Can anyone tell me what "difficultyHardforkTransition" means?
1
vote
1answer
76 views

Setting start date parameter on private blockchain?

I have a private blockchian and I am using Parity's chain spec to create it. The first block always gets labeled as 01/01/70 and I wonder what I must change in order to set it to today's date?
0
votes
1answer
594 views

How does the genesis.json file define the initial state of the blockchain?

I understand that the state of Ethereum is its set of accounts, either EOA's or contracts. But the genesis.json specifies no accounts; instead it defines, e.g., difficulty and gas-limit (block). So, ...
1
vote
1answer
32 views

Why are some EIPs specified in “params” and others in “engine”-->"params

I see that in the main net Parity chain spec file (https://github.com/paritytech/parity/blob/master/ethcore/res/ethereum/foundation.json) some eipTransitions are specified in the engine-->Ethash-->...
1
vote
2answers
206 views

How to specify eip100 in Parity chain spec?

In a Parity chain spec file, how can I include EIP100? I do not see it in the default file here to copy: https://github.com/paritytech/parity/blob/master/ethcore/res/ethereum/foundation.json I think ...
2
votes
1answer
89 views

Parity chain spec parameter: durationLimit

What is the definition of the Parity chain spec parameter "durationLimit"?